22 #ifndef AVCODEC_MPEG4AUDIO_H
23 #define AVCODEC_MPEG4AUDIO_H
60 int sync_extension,
void *logctx);
62 #if LIBAVCODEC_VERSION_MAJOR < 59
72 int bit_size,
int sync_extension);
85 int size,
int sync_extension,
void *logctx);
134 #define MAX_PCE_SIZE 320
148 int five_bit_ch, four_bit_ch, comment_size,
bits;
164 for (
bits = five_bit_ch*5+four_bit_ch*4;
bits > 16;
bits -= 16)
171 for (; comment_size > 0; comment_size--)
Macro definitions for various function/variable attributes.
bitstream reader API header.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static const uint8_t * align_get_bits(GetBitContext *s)
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
#define av_export_avcodec
common internal API header
static int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
av_export_avcodec const int avpriv_mpeg4audio_sample_rates[16]
@ AOT_SLS
N Scalable LosslesS.
@ AOT_ALS
Y Audio LosslesS.
@ AOT_AAC_LTP
Y Long Term Prediction.
@ AOT_ESCAPE
Y Escape Value.
@ AOT_ER_AAC_LD
N Error Resilient Low Delay.
@ AOT_ER_CELP
N Error Resilient Code Excited Linear Prediction.
@ AOT_SAOC
N Spatial Audio Object Coding.
@ AOT_SMR_MAIN
N Symbolic Music Representation Main.
@ AOT_USAC_NOSBR
N Unified Speech and Audio Coding (no SBR)
@ AOT_TTSI
N Text-To-Speech Interface.
@ AOT_HVXC
N Harmonic Vector eXcitation Coding.
@ AOT_ER_AAC_ELD
N Error Resilient Enhanced Low Delay.
@ AOT_ER_AAC_LC
N Error Resilient Low Complexity.
@ AOT_DST
N Direct Stream Transfer.
@ AOT_SLS_NON_CORE
N Scalable LosslesS (non core)
@ AOT_SAFX
N Algorithmic Synthesis and Audio Effects.
@ AOT_MIDI
N General MIDI.
@ AOT_MAINSYNTH
N Main Synthesis.
@ AOT_SSC
N SinuSoidal Coding.
@ AOT_ER_HVXC
N Error Resilient Harmonic Vector eXcitation Coding.
@ AOT_ER_TWINVQ
N Error Resilient Twin Vector Quantizer.
@ AOT_USAC
N Unified Speech and Audio Coding.
@ AOT_SURROUND
N MPEG Surround.
@ AOT_WAVESYNTH
N Wavetable Synthesis.
@ AOT_AAC_SCALABLE
N Scalable.
@ AOT_SBR
Y Spectral Band Replication.
@ AOT_TWINVQ
N Twin Vector Quantizer.
@ AOT_ER_PARAM
N Error Resilient Parametric.
@ AOT_LD_SURROUND
N Low Delay MPEG Surround.
@ AOT_SMR_SIMPLE
N Symbolic Music Representation Simple.
@ AOT_CELP
N Code Excited Linear Prediction.
@ AOT_ER_BSAC
N Error Resilient Bit-Sliced Arithmetic Coding.
@ AOT_AAC_SSR
N (code in SoC repo) Scalable Sample Rate.
@ AOT_AAC_LC
Y Low Complexity.
@ AOT_ER_AAC_LTP
N Error Resilient Long Term Prediction.
@ AOT_ER_AAC_SCALABLE
N Error Resilient Scalable.
@ AOT_ER_HILN
N Error Resilient Harmonic and Individual Lines plus Noise.
@ AOT_PS
N Parametric Stereo.
int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int bit_size, int sync_extension)
Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration.
int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb, int sync_extension, void *logctx)
Parse MPEG-4 systems extradata from a potentially unaligned GetBitContext to retrieve audio configura...
static av_always_inline unsigned int ff_pce_copy_bits(PutBitContext *pb, GetBitContext *gb, int bits)
const uint8_t ff_mpeg4audio_channels[14]
int avpriv_mpeg4audio_get_config2(MPEG4AudioConfig *c, const uint8_t *buf, int size, int sync_extension, void *logctx)
Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration.
static int put_bits_count(PutBitContext *s)
static void align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
int sbr
-1 implicit, 1 presence
int ps
-1 implicit, 1 presence
static const uint8_t offset[127][2]