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) {
107 if (
h->frame_size < 96)
const uint32_t avpriv_dca_sample_rates[16]
int ff_dca_parse_core_frame_header(DCACoreFrameHeader *h, GetBitContext *gb)
Parse and validate core frame header.
const uint8_t ff_dca_freq_ranges[16]
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]
const uint8_t ff_dca_bits_per_sample[8]
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.
@ DCA_PARSE_ERROR_RESERVED_BIT
@ DCA_PARSE_ERROR_SAMPLE_RATE
@ DCA_PARSE_ERROR_PCM_BLOCKS
@ DCA_PARSE_ERROR_LFE_FLAG
@ DCA_PARSE_ERROR_FRAME_SIZE
@ DCA_PARSE_ERROR_PCM_RES
@ DCA_PARSE_ERROR_DEFICIT_SAMPLES
@ DCA_PARSE_ERROR_SYNC_WORD
#define DCA_PCMBLOCK_SAMPLES
#define DCA_SUBBAND_SAMPLES
#define DCA_SYNCWORD_SUBSTREAM
#define DCA_SYNCWORD_CORE_14B_BE
#define DCA_SYNCWORD_CORE_LE
#define DCA_SYNCWORD_CORE_BE
#define DCA_SYNCWORD_CORE_14B_LE
bitstream reader API header.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 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 void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
static int put_bits_count(PutBitContext *s)
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.