109 int spkr_mask_nbits = 0;
110 int spkr_remap_nsets;
122 spkr_mask_nbits = (
get_bits(&s->
gb, 2) + 1) << 2;
129 if ((spkr_remap_nsets =
get_bits(&s->
gb, 3)) && !spkr_mask_nbits) {
136 for (i = 0; i < spkr_remap_nsets; i++)
139 for (i = 0; i < spkr_remap_nsets; i++) {
143 for (j = 0; j < nspeakers[i]; j++) {
220 for (j = 0; j < nchannels_dmix; j++) {
380 int i, ret,
offset, wide_hdr, header_size;
398 header_size =
get_bits(&s->
gb, 8 + 4 * wide_hdr) + 1;
418 int active_exss_mask[8];
463 spkr_mask_nbits = (
get_bits(&s->
gb, 2) + 1) << 2;
478 offset = header_size;
479 for (i = 0; i < s->
nassets; i++) {
491 for (i = 0; i < s->
nassets; i++) {
static int ff_dca_seek_bits(GetBitContext *s, int p)
int nmixoutchs[4]
Speaker layout mask for mixer output channels.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static void parse_lbr_parameters(DCAExssParser *s, DCAExssAsset *asset)
ptrdiff_t const GLvoid * data
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void skip_bits_long(GetBitContext *s, int n)
int exss_size
Number of bytes of extension substream.
int asset_index
Audio asset identifier.
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
int nmixoutconfigs
Number of mixing configurations.
int exss_index
Extension substream index.
int extension_mask
Coding components used in asset.
static int ff_dca_check_crc(AVCodecContext *avctx, GetBitContext *s, int p1, int p2)
static int get_bits_count(const GetBitContext *s)
int hd_stream_id
DTS-HD stream ID.
static int get_bits_left(GetBitContext *gb)
int xxch_offset
Offset to XXCH extension from start of substream.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int representation_type
Representation type.
static int set_exss_offsets(DCAExssAsset *asset)
int exss_size_nbits
Number of bits for extension substream size.
int embedded_6ch
Embedded 6 channels flag.
const uint32_t ff_dca_sampling_freqs[16]
int nassets
Number of audio assets in extension substream.
int lbr_offset
Offset to LBR component from start of substream.
static const uint8_t offset[127][2]
int xbr_offset
Offset to XBR extension from start of substream.
int mix_metadata_enabled
Mixing metadata enable flag.
int xll_offset
Offset to XLL data from start of substream.
int coding_mode
Coding mode for the asset.
int xll_delay_nframes
Initial XLL decoding delay in frames.
int static_fields_present
Per stream static fields presence flag.
DCAExssAsset assets[1]
Audio asset descriptors.
int xll_size
Size of XLL data in extension substream.
int one_to_one_map_ch_to_spkr
One to one channel to speaker mapping flag.
int max_sample_rate
Maximum sample rate.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
int core_size
Size of core component in extension substream.
int pcm_bit_res
PCM bit resolution.
int asset_size
Size of encoded asset data.
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
int lbr_size
Size of LBR component in extension substream.
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
int x96_size
Size of X96 extension in extension substream.
int embedded_stereo
Embedded stereo flag.
int spkr_mask_enabled
Speaker mask enabled flag.
int nchannels_total
Total number of channels.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int ff_dca_count_chs_for_mask(unsigned int mask)
Return number of individual channels in DCASpeakerPair mask.
int xbr_size
Size of XBR extension in extension substream.
int asset_offset
Offset to asset data from start of substream.
int xll_sync_present
XLL sync word present flag.
static void parse_xll_parameters(DCAExssParser *s, DCAExssAsset *asset)
int xxch_size
Size of XXCH extension in extension substream.
int x96_offset
Offset to X96 extension from start of substream.
int ff_dca_exss_parse(DCAExssParser *s, const uint8_t *data, int size)
int spkr_mask
Loudspeaker activity mask.
int npresents
Number of defined audio presentations.
int core_offset
Offset to core component from start of substream.
int xll_sync_offset
Number of bytes offset to XLL sync.
static int parse_descriptor(DCAExssParser *s, DCAExssAsset *asset)