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)
84 if (
av_crc(dca->
crctab, 0xffff,
s->buffer + p1 / 8, (p2 - p1) / 8))
Libavcodec external API header.
#define AV_EF_CRCCHECK
Verify checksums embedded in the bitstream (could be of either encoded or decoded data,...
#define AV_EF_CAREFUL
consider things that violate the spec, are fast to calculate and have not been seen in the wild as er...
common internal and external API header
Public header for CRC hash function implementation.
void ff_dca_downmix_to_stereo_float(AVFloatDSPContext *fdsp, float **samples, int *coeff_l, int nsamples, int ch_mask)
static int ff_dca_check_crc(AVCodecContext *avctx, GetBitContext *s, int p1, int p2)
static int ff_dca_seek_bits(GetBitContext *s, int p)
int ff_dca_set_channel_layout(AVCodecContext *avctx, int *ch_remap, int dca_mask)
void ff_dca_downmix_to_stereo_fixed(DCADSPContext *dcadsp, int32_t **samples, int *coeff_l, int nsamples, int ch_mask)
bitstream reader API header.
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
static int get_bits_count(const GetBitContext *s)
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.
Describe the class of an AVClass context structure.
main external API structure.
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
DCACoreDecoder core
Core decoder context.
int core_only
Core only decoding flag.
DCAXllDecoder xll
XLL decoder context.
DCAExssParser exss
EXSS parser context.
DCALbrDecoder lbr
LBR decoder context.
int request_channel_layout
Converted from avctx.request_channel_layout.
uint8_t * buffer
Packet buffer.