21#ifndef AVCODEC_DCADEC_H
22#define AVCODEC_DCADEC_H
39#define DCA_PACKET_CORE 0x01
40#define DCA_PACKET_EXSS 0x02
41#define DCA_PACKET_XLL 0x04
42#define DCA_PACKET_LBR 0x08
43#define DCA_PACKET_MASK 0x0f
45#define DCA_PACKET_RECOVERY 0x10
46#define DCA_PACKET_RESIDUAL 0x20
80 int *coeff_l,
int nsamples,
int ch_mask);
82 int *coeff_l,
int nsamples,
int ch_mask);
85 int output_mask,
const int *coeff_l);
94 if (((p1 | p2) & 7) || p1 < 0 || p2 >
s->size_in_bits || p2 - p1 < 16)
96 if (
av_crc(dca->
crctab, 0xffff,
s->buffer + p1 / 8, (p2 - p1) / 8))
Libavcodec 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)
int ff_dca_export_downmix_matrix(AVCodecContext *avctx, AVFrame *frame, enum DCADownMixType downmix_type, int output_mask, const int *coeff_l)
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)
#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...
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.
An AVChannelLayout holds information about the channel layout of audio data.
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.
This structure describes decoded (raw) audio or video data.
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.
AVChannelLayout downmix_layout
int request_channel_layout
Converted from avctx.request_channel_layout.
uint8_t * buffer
Packet buffer.