37 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
38 12000, 24000, 48000, 96000, 192000
42 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,
43 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,
47 0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
51 16, 16, 20, 20, 0, 24, 24, 0
61 if ((
unsigned) src_size > (
unsigned) max_size)
68 memcpy(dst, src, src_size);
71 for (i = 0; i < (src_size + 1) >> 1; i++) {
80 for (i = 0; i < (src_size + 1) >> 1; i++, src += 2) {
#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.
const uint8_t ff_dca_freq_ranges[16]
#define DCA_SYNCWORD_CORE_14B_BE
bitstream reader API header.
#define DCA_SYNCWORD_CORE_BE
const uint8_t ff_dca_bits_per_sample[8]
#define DCA_PCMBLOCK_SAMPLES
int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
Parse and validate core frame header.
const uint32_t ff_dca_sampling_freqs[16]
#define DCA_SYNCWORD_CORE_14B_LE
static int put_bits_count(PutBitContext *s)
int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, int max_size)
Convert bitstream to one representation based on sync marker.
const uint32_t avpriv_dca_sample_rates[16]
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
#define DCA_SYNCWORD_CORE_LE
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
int ff_dca_parse_core_frame_header(DCACoreFrameHeader *h, GetBitContext *gb)
Parse and validate core frame header.
#define DCA_SYNCWORD_SUBSTREAM
#define DCA_SUBBAND_SAMPLES