21 #ifndef AVCODEC_DCADEC_H
22 #define AVCODEC_DCADEC_H
37 #define DCA_PACKET_CORE 0x01
38 #define DCA_PACKET_EXSS 0x02
39 #define DCA_PACKET_XLL 0x04
40 #define DCA_PACKET_LBR 0x08
41 #define DCA_PACKET_MASK 0x0f
43 #define DCA_PACKET_RECOVERY 0x10
44 #define DCA_PACKET_RESIDUAL 0x20
71 int *coeff_l,
int nsamples,
int ch_mask);
73 int *coeff_l,
int nsamples,
int ch_mask);
82 if (((p1 | p2) & 7) || p1 < 0 || p2 > s->
size_in_bits || p2 - p1 < 16)
static int ff_dca_seek_bits(GetBitContext *s, int p)
DCACoreDecoder core
Core decoder context.
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
int core_only
Core only decoding flag.
uint8_t * buffer
Packet buffer.
Public header for CRC hash function implementation.
static int ff_dca_check_crc(AVCodecContext *avctx, GetBitContext *s, int p1, int p2)
void ff_dca_downmix_to_stereo_float(AVFloatDSPContext *fdsp, float **samples, int *coeff_l, int nsamples, int ch_mask)
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
DCALbrDecoder lbr
LBR decoder context.
DCAExssParser exss
EXSS parser context.
void ff_dca_downmix_to_stereo_fixed(DCADSPContext *dcadsp, int32_t **samples, int *coeff_l, int nsamples, int ch_mask)
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.
DCAXllDecoder xll
XLL decoder context.
int ff_dca_set_channel_layout(AVCodecContext *avctx, int *ch_remap, int dca_mask)
Libavcodec external API header.
main external API structure.
#define AV_EF_CAREFUL
consider things that violate the spec, are fast to calculate and have not been seen in the wild as er...
Describe the class of an AVClass context structure.
#define AV_EF_CRCCHECK
Verify checksums embedded in the bitstream (could be of either encoded or decoded data...
common internal and external API header
int request_channel_layout
Converted from avctx.request_channel_layout.