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 141 unsigned int el =
get_bits(gb, bits);
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--)
static void align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static av_always_inline unsigned int ff_pce_copy_bits(PutBitContext *pb, GetBitContext *gb, int bits)
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. ...
Macro definitions for various function/variable attributes.
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. ...
N Scalable LosslesS (non core)
N Code Excited Linear Prediction.
N Error Resilient Parametric.
N Error Resilient Long Term Prediction.
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
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
N Error Resilient Low Delay.
N Algorithmic Synthesis and Audio Effects.
N Error Resilient Harmonic and Individual Lines plus Noise.
bitstream reader API header.
N Error Resilient Low Complexity.
N Unified Speech and Audio Coding (no SBR)
N Symbolic Music Representation Main.
#define av_export_avcodec
N Error Resilient Twin Vector Quantizer.
N Text-To-Speech Interface.
N Low Delay MPEG Surround.
av_export_avcodec const int avpriv_mpeg4audio_sample_rates[16]
static int put_bits_count(PutBitContext *s)
N Error Resilient Scalable.
N Unified Speech and Audio Coding.
N Harmonic Vector eXcitation Coding.
N Error Resilient Harmonic Vector eXcitation Coding.
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...
const uint8_t ff_mpeg4audio_channels[14]
N (code in SoC repo) Scalable Sample Rate.
N Direct Stream Transfer.
N Error Resilient Code Excited Linear Prediction.
static int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
N Error Resilient Bit-Sliced Arithmetic Coding.
N Error Resilient Enhanced Low Delay.
Y Spectral Band Replication.
common internal api header.
static const uint8_t * align_get_bits(GetBitContext *s)
N Symbolic Music Representation Simple.
int sbr
-1 implicit, 1 presence
int ps
-1 implicit, 1 presence
N Spatial Audio Object Coding.