Go to the documentation of this file.
22 #ifndef AVCODEC_MPEG4AUDIO_H
23 #define AVCODEC_MPEG4AUDIO_H
70 int bit_size,
int sync_extension);
119 #define MAX_PCE_SIZE 320
133 int five_bit_ch, four_bit_ch, comment_size,
bits;
149 for (
bits = five_bit_ch*5+four_bit_ch*4;
bits > 16;
bits -= 16)
156 for (; comment_size > 0; comment_size--)
#define av_export_avcodec
@ AOT_PS
N Parametric Stereo.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
@ AOT_ER_AAC_LTP
N Error Resilient Long Term Prediction.
@ AOT_SLS_NON_CORE
N Scalable LosslesS (non core)
@ AOT_SAFX
N Algorithmic Synthesis and Audio Effects.
@ AOT_SURROUND
N MPEG Surround.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
@ AOT_CELP
N Code Excited Linear Prediction.
@ AOT_ER_PARAM
N Error Resilient Parametric.
@ AOT_ESCAPE
Y Escape Value.
@ AOT_USAC_NOSBR
N Unified Speech and Audio Coding (no SBR)
@ AOT_SMR_MAIN
N Symbolic Music Representation Main.
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.
@ AOT_ER_AAC_LC
N Error Resilient Low Complexity.
@ AOT_ER_AAC_LD
N Error Resilient Low Delay.
@ AOT_SLS
N Scalable LosslesS.
@ AOT_MIDI
N General MIDI.
@ AOT_ER_HILN
N Error Resilient Harmonic and Individual Lines plus Noise.
@ AOT_TTSI
N Text-To-Speech Interface.
@ AOT_ER_TWINVQ
N Error Resilient Twin Vector Quantizer.
@ AOT_USAC
N Unified Speech and Audio Coding.
@ AOT_MAINSYNTH
N Main Synthesis.
static av_always_inline unsigned int ff_pce_copy_bits(PutBitContext *pb, GetBitContext *gb, int bits)
int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb, int sync_extension)
Parse MPEG-4 systems extradata from a potentially unaligned GetBitContext to retrieve audio configura...
static int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
@ AOT_LD_SURROUND
N Low Delay MPEG Surround.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
const uint8_t ff_mpeg4audio_channels[8]
void avpriv_align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
@ AOT_HVXC
N Harmonic Vector eXcitation Coding.
@ AOT_ER_AAC_SCALABLE
N Error Resilient Scalable.
@ AOT_AAC_SCALABLE
N Scalable.
@ AOT_DST
N Direct Stream Transfer.
@ AOT_WAVESYNTH
N Wavetable Synthesis.
@ AOT_ER_CELP
N Error Resilient Code Excited Linear Prediction.
const av_export_avcodec int avpriv_mpeg4audio_sample_rates[16]
@ AOT_ER_HVXC
N Error Resilient Harmonic Vector eXcitation Coding.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
@ AOT_AAC_SSR
N (code in SoC repo) Scalable Sample Rate.
static int put_bits_count(PutBitContext *s)
@ AOT_ER_AAC_ELD
N Error Resilient Enhanced Low Delay.
@ AOT_ER_BSAC
N Error Resilient Bit-Sliced Arithmetic Coding.
static const uint8_t * align_get_bits(GetBitContext *s)
int ps
-1 implicit, 1 presence
@ AOT_TWINVQ
N Twin Vector Quantizer.
@ AOT_SBR
Y Spectral Band Replication.
@ AOT_SSC
N SinuSoidal Coding.
int sbr
-1 implicit, 1 presence
@ AOT_ALS
Y Audio LosslesS.
@ AOT_AAC_LC
Y Low Complexity.
@ AOT_AAC_LTP
Y Long Term Prediction.
@ AOT_SAOC
N Spatial Audio Object Coding.
@ AOT_SMR_SIMPLE
N Symbolic Music Representation Simple.