FFmpeg
Data Fields
DCACoreDecoder Struct Reference

#include <dca_core.h>

Data Fields

AVCodecContextavctx
 
GetBitContext gb
 
GetBitContext gb_in
 
int crc_present
 CRC present flag. More...
 
int npcmblocks
 Number of PCM sample blocks. More...
 
int frame_size
 Primary frame byte size. More...
 
int audio_mode
 Audio channel arrangement. More...
 
int sample_rate
 Core audio sampling frequency. More...
 
int bit_rate
 Transmission bit rate. More...
 
int drc_present
 Embedded dynamic range flag. More...
 
int ts_present
 Embedded time stamp flag. More...
 
int aux_present
 Auxiliary data flag. More...
 
int ext_audio_type
 Extension audio descriptor flag. More...
 
int ext_audio_present
 Extended coding flag. More...
 
int sync_ssf
 Audio sync word insertion flag. More...
 
int lfe_present
 Low frequency effects flag. More...
 
int predictor_history
 Predictor history flag switch. More...
 
int filter_perfect
 Multirate interpolator switch. More...
 
int source_pcm_res
 Source PCM resolution. More...
 
int es_format
 Extended surround (ES) mastering flag. More...
 
int sumdiff_front
 Front sum/difference flag. More...
 
int sumdiff_surround
 Surround sum/difference flag. More...
 
int nsubframes
 Number of subframes. More...
 
int nchannels
 Number of primary audio channels (incl. extension channels) More...
 
int ch_mask
 Speaker layout mask (incl. LFE and extension channels) More...
 
int8_t nsubbands [DCA_CHANNELS]
 Subband activity count. More...
 
int8_t subband_vq_start [DCA_CHANNELS]
 High frequency VQ start subband. More...
 
int8_t joint_intensity_index [DCA_CHANNELS]
 Joint intensity coding index. More...
 
int8_t transition_mode_sel [DCA_CHANNELS]
 Transient mode code book. More...
 
int8_t scale_factor_sel [DCA_CHANNELS]
 Scale factor code book. More...
 
int8_t bit_allocation_sel [DCA_CHANNELS]
 Bit allocation quantizer select. More...
 
int8_t quant_index_sel [DCA_CHANNELS][DCA_CODE_BOOKS]
 Quantization index codebook select. More...
 
int32_t scale_factor_adj [DCA_CHANNELS][DCA_CODE_BOOKS]
 Scale factor adjustment. More...
 
int8_t nsubsubframes [DCA_SUBFRAMES]
 Subsubframe count for each subframe. More...
 
int8_t prediction_mode [DCA_CHANNELS][DCA_SUBBANDS_X96]
 Prediction mode. More...
 
int16_t prediction_vq_index [DCA_CHANNELS][DCA_SUBBANDS_X96]
 Prediction coefficients VQ address. More...
 
int8_t bit_allocation [DCA_CHANNELS][DCA_SUBBANDS_X96]
 Bit allocation index. More...
 
int8_t transition_mode [DCA_SUBFRAMES][DCA_CHANNELS][DCA_SUBBANDS]
 Transition mode. More...
 
int32_t scale_factors [DCA_CHANNELS][DCA_SUBBANDS][2]
 Scale factors (2x for transients and X96) More...
 
int8_t joint_scale_sel [DCA_CHANNELS]
 Joint subband codebook select. More...
 
int32_t joint_scale_factors [DCA_CHANNELS][DCA_SUBBANDS_X96]
 Scale factors for joint subband coding. More...
 
int prim_dmix_embedded
 Auxiliary dynamic downmix flag. More...
 
int prim_dmix_type
 Auxiliary primary channel downmix type. More...
 
int prim_dmix_coeff [DCA_DMIX_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]
 Dynamic downmix code coefficients. More...
 
int ext_audio_mask
 Bit mask of fully decoded core extensions. More...
 
int xch_pos
 Bit position of XCH frame in core substream. More...
 
int xxch_crc_present
 CRC presence flag for XXCH channel set header. More...
 
int xxch_mask_nbits
 Number of bits for loudspeaker mask. More...
 
int xxch_core_mask
 Core loudspeaker activity mask. More...
 
int xxch_spkr_mask
 Loudspeaker layout mask. More...
 
int xxch_dmix_embedded
 Downmix already performed by encoder. More...
 
int xxch_dmix_scale_inv
 Downmix scale factor. More...
 
int xxch_dmix_mask [DCA_XXCH_CHANNELS_MAX]
 Downmix channel mapping mask. More...
 
int xxch_dmix_coeff [DCA_XXCH_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]
 Downmix coefficients. More...
 
int xxch_pos
 Bit position of XXCH frame in core substream. More...
 
int x96_rev_no
 X96 revision number. More...
 
int x96_crc_present
 CRC presence flag for X96 channel set header. More...
 
int x96_nchannels
 Number of primary channels in X96 extension. More...
 
int x96_high_res
 X96 high resolution flag. More...
 
int x96_subband_start
 First encoded subband in X96 extension. More...
 
int x96_rand
 Random seed for generating samples for unallocated X96 subbands. More...
 
int x96_pos
 Bit position of X96 frame in core substream. More...
 
unsigned int x96_subband_size
 
int32_tx96_subband_buffer
 X96 subband sample buffer base. More...
 
int32_tx96_subband_samples [DCA_CHANNELS][DCA_SUBBANDS_X96]
 X96 subband samples. More...
 
unsigned int subband_size
 
int32_tsubband_buffer
 Subband sample buffer base. More...
 
int32_tsubband_samples [DCA_CHANNELS][DCA_SUBBANDS]
 Subband samples. More...
 
int32_tlfe_samples
 Decimated LFE samples. More...
 
DCADSPData dcadsp_data [DCA_CHANNELS]
 FIR history buffers. More...
 
DCADSPContextdcadsp
 
DCADCTContext dcadct
 
FFTContext imdct [2]
 
SynthFilterContext synth
 
AVFloatDSPContextfloat_dsp
 
AVFixedDSPContextfixed_dsp
 
unsigned int output_size
 
void * output_buffer
 PCM output buffer base. More...
 
int32_toutput_samples [DCA_SPEAKER_COUNT]
 PCM output for fixed point mode. More...
 
int32_t output_history_lfe_fixed
 LFE PCM history for X96 filter. More...
 
float output_history_lfe_float
 LFE PCM history for X96 filter. More...
 
int ch_remap [DCA_SPEAKER_COUNT]
 Channel to speaker map. More...
 
int request_mask
 Requested channel layout (for stereo downmix) More...
 
int npcmsamples
 Number of PCM samples per channel. More...
 
int output_rate
 Output sample rate (1x or 2x header rate) More...
 
int filter_mode
 Previous filtering mode for detecting changes. More...
 

Detailed Description

Definition at line 101 of file dca_core.h.

Field Documentation

◆ avctx

AVCodecContext* DCACoreDecoder::avctx

Definition at line 102 of file dca_core.h.

◆ gb

GetBitContext DCACoreDecoder::gb

Definition at line 103 of file dca_core.h.

◆ gb_in

GetBitContext DCACoreDecoder::gb_in

Definition at line 104 of file dca_core.h.

◆ crc_present

int DCACoreDecoder::crc_present

CRC present flag.

Definition at line 107 of file dca_core.h.

◆ npcmblocks

int DCACoreDecoder::npcmblocks

Number of PCM sample blocks.

Definition at line 108 of file dca_core.h.

◆ frame_size

int DCACoreDecoder::frame_size

Primary frame byte size.

Definition at line 109 of file dca_core.h.

◆ audio_mode

int DCACoreDecoder::audio_mode

Audio channel arrangement.

Definition at line 110 of file dca_core.h.

◆ sample_rate

int DCACoreDecoder::sample_rate

Core audio sampling frequency.

Definition at line 111 of file dca_core.h.

◆ bit_rate

int DCACoreDecoder::bit_rate

Transmission bit rate.

Definition at line 112 of file dca_core.h.

◆ drc_present

int DCACoreDecoder::drc_present

Embedded dynamic range flag.

Definition at line 113 of file dca_core.h.

◆ ts_present

int DCACoreDecoder::ts_present

Embedded time stamp flag.

Definition at line 114 of file dca_core.h.

◆ aux_present

int DCACoreDecoder::aux_present

Auxiliary data flag.

Definition at line 115 of file dca_core.h.

◆ ext_audio_type

int DCACoreDecoder::ext_audio_type

Extension audio descriptor flag.

Definition at line 116 of file dca_core.h.

◆ ext_audio_present

int DCACoreDecoder::ext_audio_present

Extended coding flag.

Definition at line 117 of file dca_core.h.

◆ sync_ssf

int DCACoreDecoder::sync_ssf

Audio sync word insertion flag.

Definition at line 118 of file dca_core.h.

◆ lfe_present

int DCACoreDecoder::lfe_present

Low frequency effects flag.

Definition at line 119 of file dca_core.h.

◆ predictor_history

int DCACoreDecoder::predictor_history

Predictor history flag switch.

Definition at line 120 of file dca_core.h.

◆ filter_perfect

int DCACoreDecoder::filter_perfect

Multirate interpolator switch.

Definition at line 121 of file dca_core.h.

◆ source_pcm_res

int DCACoreDecoder::source_pcm_res

Source PCM resolution.

Definition at line 122 of file dca_core.h.

◆ es_format

int DCACoreDecoder::es_format

Extended surround (ES) mastering flag.

Definition at line 123 of file dca_core.h.

◆ sumdiff_front

int DCACoreDecoder::sumdiff_front

Front sum/difference flag.

Definition at line 124 of file dca_core.h.

◆ sumdiff_surround

int DCACoreDecoder::sumdiff_surround

Surround sum/difference flag.

Definition at line 125 of file dca_core.h.

◆ nsubframes

int DCACoreDecoder::nsubframes

Number of subframes.

Definition at line 128 of file dca_core.h.

◆ nchannels

int DCACoreDecoder::nchannels

Number of primary audio channels (incl. extension channels)

Definition at line 129 of file dca_core.h.

◆ ch_mask

int DCACoreDecoder::ch_mask

Speaker layout mask (incl. LFE and extension channels)

Definition at line 130 of file dca_core.h.

Referenced by ff_dca_core_map_spkr().

◆ nsubbands

int8_t DCACoreDecoder::nsubbands[DCA_CHANNELS]

Subband activity count.

Definition at line 131 of file dca_core.h.

◆ subband_vq_start

int8_t DCACoreDecoder::subband_vq_start[DCA_CHANNELS]

High frequency VQ start subband.

Definition at line 132 of file dca_core.h.

◆ joint_intensity_index

int8_t DCACoreDecoder::joint_intensity_index[DCA_CHANNELS]

Joint intensity coding index.

Definition at line 133 of file dca_core.h.

◆ transition_mode_sel

int8_t DCACoreDecoder::transition_mode_sel[DCA_CHANNELS]

Transient mode code book.

Definition at line 134 of file dca_core.h.

◆ scale_factor_sel

int8_t DCACoreDecoder::scale_factor_sel[DCA_CHANNELS]

Scale factor code book.

Definition at line 135 of file dca_core.h.

◆ bit_allocation_sel

int8_t DCACoreDecoder::bit_allocation_sel[DCA_CHANNELS]

Bit allocation quantizer select.

Definition at line 136 of file dca_core.h.

◆ quant_index_sel

int8_t DCACoreDecoder::quant_index_sel[DCA_CHANNELS][DCA_CODE_BOOKS]

Quantization index codebook select.

Definition at line 137 of file dca_core.h.

◆ scale_factor_adj

int32_t DCACoreDecoder::scale_factor_adj[DCA_CHANNELS][DCA_CODE_BOOKS]

Scale factor adjustment.

Definition at line 138 of file dca_core.h.

◆ nsubsubframes

int8_t DCACoreDecoder::nsubsubframes[DCA_SUBFRAMES]

Subsubframe count for each subframe.

Definition at line 141 of file dca_core.h.

◆ prediction_mode

int8_t DCACoreDecoder::prediction_mode[DCA_CHANNELS][DCA_SUBBANDS_X96]

Prediction mode.

Definition at line 142 of file dca_core.h.

◆ prediction_vq_index

int16_t DCACoreDecoder::prediction_vq_index[DCA_CHANNELS][DCA_SUBBANDS_X96]

Prediction coefficients VQ address.

Definition at line 143 of file dca_core.h.

◆ bit_allocation

int8_t DCACoreDecoder::bit_allocation[DCA_CHANNELS][DCA_SUBBANDS_X96]

Bit allocation index.

Definition at line 144 of file dca_core.h.

◆ transition_mode

int8_t DCACoreDecoder::transition_mode[DCA_SUBFRAMES][DCA_CHANNELS][DCA_SUBBANDS]

Transition mode.

Definition at line 145 of file dca_core.h.

◆ scale_factors

int32_t DCACoreDecoder::scale_factors[DCA_CHANNELS][DCA_SUBBANDS][2]

Scale factors (2x for transients and X96)

Definition at line 146 of file dca_core.h.

◆ joint_scale_sel

int8_t DCACoreDecoder::joint_scale_sel[DCA_CHANNELS]

Joint subband codebook select.

Definition at line 147 of file dca_core.h.

◆ joint_scale_factors

int32_t DCACoreDecoder::joint_scale_factors[DCA_CHANNELS][DCA_SUBBANDS_X96]

Scale factors for joint subband coding.

Definition at line 148 of file dca_core.h.

◆ prim_dmix_embedded

int DCACoreDecoder::prim_dmix_embedded

Auxiliary dynamic downmix flag.

Definition at line 151 of file dca_core.h.

◆ prim_dmix_type

int DCACoreDecoder::prim_dmix_type

Auxiliary primary channel downmix type.

Definition at line 152 of file dca_core.h.

◆ prim_dmix_coeff

int DCACoreDecoder::prim_dmix_coeff[DCA_DMIX_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]

Dynamic downmix code coefficients.

Definition at line 153 of file dca_core.h.

◆ ext_audio_mask

int DCACoreDecoder::ext_audio_mask

Bit mask of fully decoded core extensions.

Definition at line 156 of file dca_core.h.

◆ xch_pos

int DCACoreDecoder::xch_pos

Bit position of XCH frame in core substream.

Definition at line 159 of file dca_core.h.

◆ xxch_crc_present

int DCACoreDecoder::xxch_crc_present

CRC presence flag for XXCH channel set header.

Definition at line 162 of file dca_core.h.

◆ xxch_mask_nbits

int DCACoreDecoder::xxch_mask_nbits

Number of bits for loudspeaker mask.

Definition at line 163 of file dca_core.h.

◆ xxch_core_mask

int DCACoreDecoder::xxch_core_mask

Core loudspeaker activity mask.

Definition at line 164 of file dca_core.h.

◆ xxch_spkr_mask

int DCACoreDecoder::xxch_spkr_mask

Loudspeaker layout mask.

Definition at line 165 of file dca_core.h.

◆ xxch_dmix_embedded

int DCACoreDecoder::xxch_dmix_embedded

Downmix already performed by encoder.

Definition at line 166 of file dca_core.h.

◆ xxch_dmix_scale_inv

int DCACoreDecoder::xxch_dmix_scale_inv

Downmix scale factor.

Definition at line 167 of file dca_core.h.

◆ xxch_dmix_mask

int DCACoreDecoder::xxch_dmix_mask[DCA_XXCH_CHANNELS_MAX]

Downmix channel mapping mask.

Definition at line 168 of file dca_core.h.

◆ xxch_dmix_coeff

int DCACoreDecoder::xxch_dmix_coeff[DCA_XXCH_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]

Downmix coefficients.

Definition at line 169 of file dca_core.h.

◆ xxch_pos

int DCACoreDecoder::xxch_pos

Bit position of XXCH frame in core substream.

Definition at line 170 of file dca_core.h.

◆ x96_rev_no

int DCACoreDecoder::x96_rev_no

X96 revision number.

Definition at line 173 of file dca_core.h.

◆ x96_crc_present

int DCACoreDecoder::x96_crc_present

CRC presence flag for X96 channel set header.

Definition at line 174 of file dca_core.h.

◆ x96_nchannels

int DCACoreDecoder::x96_nchannels

Number of primary channels in X96 extension.

Definition at line 175 of file dca_core.h.

◆ x96_high_res

int DCACoreDecoder::x96_high_res

X96 high resolution flag.

Definition at line 176 of file dca_core.h.

◆ x96_subband_start

int DCACoreDecoder::x96_subband_start

First encoded subband in X96 extension.

Definition at line 177 of file dca_core.h.

◆ x96_rand

int DCACoreDecoder::x96_rand

Random seed for generating samples for unallocated X96 subbands.

Definition at line 178 of file dca_core.h.

◆ x96_pos

int DCACoreDecoder::x96_pos

Bit position of X96 frame in core substream.

Definition at line 179 of file dca_core.h.

◆ x96_subband_size

unsigned int DCACoreDecoder::x96_subband_size

Definition at line 182 of file dca_core.h.

◆ x96_subband_buffer

int32_t* DCACoreDecoder::x96_subband_buffer

X96 subband sample buffer base.

Definition at line 183 of file dca_core.h.

◆ x96_subband_samples

int32_t* DCACoreDecoder::x96_subband_samples[DCA_CHANNELS][DCA_SUBBANDS_X96]

X96 subband samples.

Definition at line 184 of file dca_core.h.

◆ subband_size

unsigned int DCACoreDecoder::subband_size

Definition at line 186 of file dca_core.h.

◆ subband_buffer

int32_t* DCACoreDecoder::subband_buffer

Subband sample buffer base.

Definition at line 187 of file dca_core.h.

◆ subband_samples

int32_t* DCACoreDecoder::subband_samples[DCA_CHANNELS][DCA_SUBBANDS]

Subband samples.

Definition at line 188 of file dca_core.h.

◆ lfe_samples

int32_t* DCACoreDecoder::lfe_samples

Decimated LFE samples.

Definition at line 189 of file dca_core.h.

◆ dcadsp_data

DCADSPData DCACoreDecoder::dcadsp_data[DCA_CHANNELS]

FIR history buffers.

Definition at line 192 of file dca_core.h.

◆ dcadsp

DCADSPContext* DCACoreDecoder::dcadsp

Definition at line 193 of file dca_core.h.

◆ dcadct

DCADCTContext DCACoreDecoder::dcadct

Definition at line 194 of file dca_core.h.

◆ imdct

FFTContext DCACoreDecoder::imdct[2]

Definition at line 195 of file dca_core.h.

◆ synth

SynthFilterContext DCACoreDecoder::synth

Definition at line 196 of file dca_core.h.

◆ float_dsp

AVFloatDSPContext* DCACoreDecoder::float_dsp

Definition at line 197 of file dca_core.h.

◆ fixed_dsp

AVFixedDSPContext* DCACoreDecoder::fixed_dsp

Definition at line 198 of file dca_core.h.

◆ output_size

unsigned int DCACoreDecoder::output_size

Definition at line 201 of file dca_core.h.

◆ output_buffer

void* DCACoreDecoder::output_buffer

PCM output buffer base.

Definition at line 202 of file dca_core.h.

◆ output_samples

int32_t* DCACoreDecoder::output_samples[DCA_SPEAKER_COUNT]

PCM output for fixed point mode.

Definition at line 203 of file dca_core.h.

Referenced by combine_residual_frame().

◆ output_history_lfe_fixed

int32_t DCACoreDecoder::output_history_lfe_fixed

LFE PCM history for X96 filter.

Definition at line 204 of file dca_core.h.

◆ output_history_lfe_float

float DCACoreDecoder::output_history_lfe_float

LFE PCM history for X96 filter.

Definition at line 205 of file dca_core.h.

◆ ch_remap

int DCACoreDecoder::ch_remap[DCA_SPEAKER_COUNT]

Channel to speaker map.

Definition at line 207 of file dca_core.h.

◆ request_mask

int DCACoreDecoder::request_mask

Requested channel layout (for stereo downmix)

Definition at line 208 of file dca_core.h.

◆ npcmsamples

int DCACoreDecoder::npcmsamples

Number of PCM samples per channel.

Definition at line 210 of file dca_core.h.

Referenced by combine_residual_frame().

◆ output_rate

int DCACoreDecoder::output_rate

Output sample rate (1x or 2x header rate)

Definition at line 211 of file dca_core.h.

Referenced by combine_residual_frame().

◆ filter_mode

int DCACoreDecoder::filter_mode

Previous filtering mode for detecting changes.

Definition at line 213 of file dca_core.h.


The documentation for this struct was generated from the following file: