21#ifndef _MP3_INTERNALS_HH
22#define _MP3_INTERNALS_HH
64#define MAX_MP3_FRAME_SIZE 2500
90 unsigned totNumBytes) {
91 bv.
setup((
unsigned char*)restOfFrame, 0, 8*totNumBytes);
126 unsigned char layer);
129 unsigned totFrameSize,
130 unsigned& hdr,
unsigned& frameSize,
132 unsigned& backpointer,
unsigned& aduSize);
135 unsigned newBackpointer);
139 unsigned char* toPtr,
unsigned toMaxSize,
140 unsigned& availableBytesForBackpointer);
unsigned TranscodeMP3ADU(unsigned char const *fromPtr, unsigned fromSize, unsigned toBitrate, unsigned char *toPtr, unsigned toMaxSize, unsigned &availableBytesForBackpointer)
#define MAX_MP3_FRAME_SIZE
struct MP3SideInfo MP3SideInfo_t
Boolean GetADUInfoFromMP3Frame(unsigned char const *framePtr, unsigned totFrameSize, unsigned &hdr, unsigned &frameSize, MP3SideInfo &sideInfo, unsigned &sideInfoSize, unsigned &backpointer, unsigned &aduSize)
Boolean ZeroOutMP3SideInfo(unsigned char *framePtr, unsigned totFrameSize, unsigned newBackpointer)
unsigned ComputeFrameSize(unsigned bitrate, unsigned samplingFreq, Boolean usePadding, Boolean isMPEG2, unsigned char layer)
void setup(unsigned char *baseBytePtr, unsigned baseBitOffset, unsigned totNumBits)
unsigned getBits(unsigned numBits)
unsigned computeSideInfoSize()
unsigned char frameBytes[MAX_MP3_FRAME_SIZE]
unsigned samplingFreqIndex
unsigned getBits(unsigned numBits)
void getSideInfo(MP3SideInfo &si)
void setBytePointer(unsigned char const *restOfFrame, unsigned totNumBytes)
void setParamsFromHeader()
unsigned subblock_gain[3]
unsigned mixed_block_flag
unsigned scalefac_compress
unsigned window_switching_flag
unsigned count1table_select
struct MP3SideInfo::@4 ch[2]
struct MP3SideInfo::gr_info_s gr_info_s_t