33 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
34 12000, 24000, 48000, 96000, 192000
42 const uint16_t *ssrc = (
const uint16_t *) src;
43 uint16_t *sdst = (uint16_t *) dst;
46 if ((
unsigned) src_size > (unsigned) max_size)
52 memcpy(dst, src, src_size);
55 for (i = 0; i < (src_size + 1) >> 1; i++)
61 for (i = 0; i < (src_size + 1) >> 1; i++, src += 2) {
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
av_export const uint32_t avpriv_dca_sample_rates[16]
#define DCA_MARKER_RAW_BE
DCA syncwords, also used for bitstream type detection.
static int put_bits_count(PutBitContext *s)
int ff_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.
#define DCA_MARKER_14B_BE
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
#define DCA_MARKER_14B_LE
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
#define DCA_MARKER_RAW_LE
#define AVERROR_INVALIDDATA