36#define DCA_CORE_FRAME_HEADER_SIZE 18
121#define DCA_SPEAKER_LAYOUT_MONO (DCA_SPEAKER_MASK_C)
122#define DCA_SPEAKER_LAYOUT_STEREO (DCA_SPEAKER_MASK_L | DCA_SPEAKER_MASK_R)
123#define DCA_SPEAKER_LAYOUT_2POINT1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_LFE1)
124#define DCA_SPEAKER_LAYOUT_3_0 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_C)
125#define DCA_SPEAKER_LAYOUT_2_1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Cs)
126#define DCA_SPEAKER_LAYOUT_3_1 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Cs)
127#define DCA_SPEAKER_LAYOUT_2_2 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs)
128#define DCA_SPEAKER_LAYOUT_5POINT0 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs)
129#define DCA_SPEAKER_LAYOUT_5POINT1 (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_LFE1)
130#define DCA_SPEAKER_LAYOUT_7POINT0_WIDE (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_Lw | DCA_SPEAKER_MASK_Rw)
131#define DCA_SPEAKER_LAYOUT_7POINT1_WIDE (DCA_SPEAKER_LAYOUT_7POINT0_WIDE | DCA_SPEAKER_MASK_LFE1)
133#define DCA_HAS_STEREO(mask) \
134 ((mask & DCA_SPEAKER_LAYOUT_STEREO) == DCA_SPEAKER_LAYOUT_STEREO)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
common internal and external API header
const uint8_t ff_dca_freq_ranges[16]
const uint32_t ff_dca_sampling_freqs[16]
const uint8_t ff_dca_bits_per_sample[8]
int ff_dca_parse_core_frame_header(DCACoreFrameHeader *h, GetBitContext *gb)
Parse and validate core frame header.
int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
Parse and validate core frame header.
static int ff_dca_count_chs_for_mask(unsigned int mask)
Return number of individual channels in DCASpeakerPair mask.
const uint32_t ff_dca_sample_rates[16]
@ DCA_SPEAKER_PAIR_LsrRsr
@ DCA_SPEAKER_PAIR_LhrRhr
@ DCA_SPEAKER_PAIR_LssRss
@ DCA_SPEAKER_PAIR_LhsRhs
@ DCA_PARSE_ERROR_RESERVED_BIT
@ DCA_PARSE_ERROR_SAMPLE_RATE
@ DCA_PARSE_ERROR_PCM_BLOCKS
@ DCA_PARSE_ERROR_LFE_FLAG
@ DCA_PARSE_ERROR_FRAME_SIZE
@ DCA_PARSE_ERROR_PCM_RES
@ DCA_PARSE_ERROR_DEFICIT_SAMPLES
@ DCA_PARSE_ERROR_SYNC_WORD
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.
bitstream reader API header.
static const uint16_t mask[17]