#include "Boolean.hh"
#include "BitVector.hh"
Go to the source code of this file.
|
unsigned | ComputeFrameSize (unsigned bitrate, unsigned samplingFreq, Boolean usePadding, Boolean isMPEG2, unsigned char layer) |
|
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 | TranscodeMP3ADU (unsigned char const *fromPtr, unsigned fromSize, unsigned toBitrate, unsigned char *toPtr, unsigned toMaxSize, unsigned &availableBytesForBackpointer) |
|
◆ MAX_MP3_FRAME_SIZE
#define MAX_MP3_FRAME_SIZE 2500 /* also big enough for an 'ADU'ized frame */ |
◆ SBLIMIT
◆ MP3SideInfo_t
◆ ComputeFrameSize()
unsigned ComputeFrameSize |
( |
unsigned |
bitrate, |
|
|
unsigned |
samplingFreq, |
|
|
Boolean |
usePadding, |
|
|
Boolean |
isMPEG2, |
|
|
unsigned char |
layer |
|
) |
| |
◆ GetADUInfoFromMP3Frame()
Boolean GetADUInfoFromMP3Frame |
( |
unsigned char const * |
framePtr, |
|
|
unsigned |
totFrameSize, |
|
|
unsigned & |
hdr, |
|
|
unsigned & |
frameSize, |
|
|
MP3SideInfo & |
sideInfo, |
|
|
unsigned & |
sideInfoSize, |
|
|
unsigned & |
backpointer, |
|
|
unsigned & |
aduSize |
|
) |
| |
◆ TranscodeMP3ADU()
unsigned TranscodeMP3ADU |
( |
unsigned char const * |
fromPtr, |
|
|
unsigned |
fromSize, |
|
|
unsigned |
toBitrate, |
|
|
unsigned char * |
toPtr, |
|
|
unsigned |
toMaxSize, |
|
|
unsigned & |
availableBytesForBackpointer |
|
) |
| |
◆ ZeroOutMP3SideInfo()
Boolean ZeroOutMP3SideInfo |
( |
unsigned char * |
framePtr, |
|
|
unsigned |
totFrameSize, |
|
|
unsigned |
newBackpointer |
|
) |
| |