58 96000, 88200, 64000, 48000, 44100, 32000,
59 24000, 22050, 16000, 12000, 11025, 8000, 7350
63 0, 1, 2, 3, 4, 5, 6, 8
77 return *index == 0x0f ?
get_bits(gb, 24) :
82 int bit_size,
int sync_extension)
85 int specific_config_bitindex, ret;
154 return specific_config_bitindex;
161 unsigned int el =
get_bits(gb, bits);
168 int five_bit_ch, four_bit_ch, comment_size,
bits;
184 for (bits = five_bit_ch*5+four_bit_ch*4; bits > 16; bits -= 16)
191 for (; comment_size > 0; comment_size--)
static unsigned int show_bits_long(GetBitContext *s, int n)
Show 0-32 bits.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
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 void skip_bits_long(GetBitContext *s, int n)
static int get_sample_rate(GetBitContext *gb, int *index)
void avpriv_align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c)
Parse MPEG-4 audio configuration for ALS object type.
static int get_bits_left(GetBitContext *gb)
static const uint8_t offset[127][2]
static int put_bits_count(PutBitContext *s)
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
#define FF_ARRAY_ELEMS(a)
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
N Error Resilient Bit-Sliced Arithmetic Coding.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int get_object_type(GetBitContext *gb)
const int avpriv_mpeg4audio_sample_rates[16]
Y Spectral Band Replication.
int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int bit_size, int sync_extension)
Parse MPEG-4 systems extradata to retrieve audio configuration.
#define MKBETAG(a, b, c, d)
const uint8_t ff_mpeg4audio_channels[8]
int avpriv_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
static const uint8_t * align_get_bits(GetBitContext *s)
static av_always_inline unsigned int copy_bits(PutBitContext *pb, GetBitContext *gb, int bits)
int sbr
-1 implicit, 1 presence
int ps
-1 implicit, 1 presence