35 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
36 12000, 24000, 48000, 96000, 192000
40 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,
41 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,
45 0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
55 if ((
unsigned) src_size > (
unsigned) max_size)
62 memcpy(dst, src, src_size);
65 for (i = 0; i < (src_size + 1) >> 1; i++) {
74 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
const uint8_t ff_dca_freq_ranges[16]
#define DCA_SYNCWORD_CORE_14B_BE
#define DCA_SYNCWORD_CORE_BE
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]
#define DCA_SYNCWORD_CORE_LE
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.
#define DCA_SYNCWORD_SUBSTREAM