37 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,
38 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,
42 0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
46 16, 16, 20, 20, 0, 24, 24, 0
56 if ((
unsigned) src_size > (
unsigned) max_size)
63 memcpy(
dst,
src, src_size);
66 for (
i = 0;
i < (src_size + 1) >> 1;
i++) {
75 for (
i = 0;
i < (src_size + 1) >> 1;
i++,
src += 2) {
102 if (
h->frame_size < 96)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
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.
const uint32_t ff_dca_sample_rates[16]
@ 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 void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
static int put_bytes_output(const PutBitContext *s)