FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
DCACoreDecoder Struct Reference

#include <dca_core.h>

Data Fields

AVCodecContextavctx
 
GetBitContext gb
 
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
 
voidoutput_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 73 of file dca_core.h.

Field Documentation

AVCodecContext* DCACoreDecoder::avctx
GetBitContext DCACoreDecoder::gb
int DCACoreDecoder::crc_present
int DCACoreDecoder::npcmblocks
int DCACoreDecoder::frame_size

Primary frame byte size.

Definition at line 80 of file dca_core.h.

Referenced by dcadec_decode_frame(), ff_dca_core_parse(), parse_frame_header(), parse_optional_info(), parse_x96_frame(), and parse_xch_frame().

int DCACoreDecoder::audio_mode
int DCACoreDecoder::sample_rate

Core audio sampling frequency.

Definition at line 82 of file dca_core.h.

Referenced by dcadec_decode_frame(), ff_dca_core_filter_fixed(), filter_frame_float(), and parse_frame_header().

int DCACoreDecoder::bit_rate

Transmission bit rate.

Definition at line 83 of file dca_core.h.

Referenced by ff_dca_core_filter_frame(), parse_frame_header(), parse_subframe_audio(), and parse_x96_subframe_audio().

int DCACoreDecoder::drc_present

Embedded dynamic range flag.

Definition at line 84 of file dca_core.h.

Referenced by parse_frame_header(), and parse_subframe_header().

int DCACoreDecoder::ts_present

Embedded time stamp flag.

Definition at line 85 of file dca_core.h.

Referenced by parse_frame_header(), and parse_optional_info().

int DCACoreDecoder::aux_present

Auxiliary data flag.

Definition at line 86 of file dca_core.h.

Referenced by parse_frame_header(), and parse_optional_info().

int DCACoreDecoder::ext_audio_type

Extension audio descriptor flag.

Definition at line 87 of file dca_core.h.

Referenced by parse_frame_header(), and parse_optional_info().

int DCACoreDecoder::ext_audio_present

Extended coding flag.

Definition at line 88 of file dca_core.h.

Referenced by parse_frame_header(), and parse_optional_info().

int DCACoreDecoder::sync_ssf

Audio sync word insertion flag.

Definition at line 89 of file dca_core.h.

Referenced by parse_frame_header(), parse_subframe_audio(), parse_x96_subframe_audio(), and parse_xbr_subframe().

int DCACoreDecoder::lfe_present
int DCACoreDecoder::predictor_history

Predictor history flag switch.

Definition at line 91 of file dca_core.h.

Referenced by alloc_sample_buffer(), alloc_x96_sample_buffer(), and parse_frame_header().

int DCACoreDecoder::filter_perfect

Multirate interpolator switch.

Definition at line 92 of file dca_core.h.

Referenced by ff_dca_core_filter_fixed(), filter_frame_float(), and parse_frame_header().

int DCACoreDecoder::source_pcm_res

Source PCM resolution.

Definition at line 93 of file dca_core.h.

Referenced by parse_frame_header().

int DCACoreDecoder::es_format

Extended surround (ES) mastering flag.

Definition at line 94 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_frame_header().

int DCACoreDecoder::sumdiff_front

Front sum/difference flag.

Definition at line 95 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_frame_header().

int DCACoreDecoder::sumdiff_surround

Surround sum/difference flag.

Definition at line 96 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_frame_header().

int DCACoreDecoder::nsubframes

Number of subframes.

Definition at line 99 of file dca_core.h.

Referenced by parse_coding_header(), parse_frame_data(), parse_x96_frame_data(), and parse_xbr_frame().

int DCACoreDecoder::nchannels
int DCACoreDecoder::ch_mask
int8_t DCACoreDecoder::nsubbands[DCA_CHANNELS]
int8_t DCACoreDecoder::subband_vq_start[DCA_CHANNELS]

High frequency VQ start subband.

Definition at line 103 of file dca_core.h.

Referenced by parse_coding_header(), parse_subframe_audio(), and parse_subframe_header().

int8_t DCACoreDecoder::joint_intensity_index[DCA_CHANNELS]
int8_t DCACoreDecoder::transition_mode_sel[DCA_CHANNELS]

Transient mode code book.

Definition at line 105 of file dca_core.h.

Referenced by parse_coding_header(), and parse_subframe_header().

int8_t DCACoreDecoder::scale_factor_sel[DCA_CHANNELS]
int8_t DCACoreDecoder::bit_allocation_sel[DCA_CHANNELS]

Bit allocation quantizer select.

Definition at line 107 of file dca_core.h.

Referenced by parse_coding_header(), parse_subframe_header(), parse_x96_coding_header(), and parse_x96_subframe_header().

int8_t DCACoreDecoder::quant_index_sel[DCA_CHANNELS][DCA_CODE_BOOKS]

Quantization index codebook select.

Definition at line 108 of file dca_core.h.

Referenced by extract_audio(), parse_coding_header(), and parse_x96_coding_header().

int32_t DCACoreDecoder::scale_factor_adj[DCA_CHANNELS][DCA_CODE_BOOKS]

Scale factor adjustment.

Definition at line 109 of file dca_core.h.

Referenced by parse_coding_header(), and parse_subframe_audio().

int8_t DCACoreDecoder::nsubsubframes[DCA_SUBFRAMES]

Subsubframe count for each subframe.

Definition at line 112 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_xbr_subframe().

int8_t DCACoreDecoder::prediction_mode[DCA_CHANNELS][DCA_SUBBANDS_X96]

Prediction mode.

Definition at line 113 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

int16_t DCACoreDecoder::prediction_vq_index[DCA_CHANNELS][DCA_SUBBANDS_X96]

Prediction coefficients VQ address.

Definition at line 114 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

int8_t DCACoreDecoder::bit_allocation[DCA_CHANNELS][DCA_SUBBANDS_X96]

Bit allocation index.

Definition at line 115 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

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

Transition mode.

Definition at line 116 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), and parse_xbr_subframe().

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

Scale factors (2x for transients and X96)

Definition at line 117 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

int8_t DCACoreDecoder::joint_scale_sel[DCA_CHANNELS]

Joint subband codebook select.

Definition at line 118 of file dca_core.h.

Referenced by parse_subframe_header(), and parse_x96_subframe_header().

int32_t DCACoreDecoder::joint_scale_factors[DCA_CHANNELS][DCA_SUBBANDS_X96]

Scale factors for joint subband coding.

Definition at line 119 of file dca_core.h.

Referenced by parse_subframe_audio(), parse_subframe_header(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

int DCACoreDecoder::prim_dmix_embedded

Auxiliary dynamic downmix flag.

Definition at line 122 of file dca_core.h.

Referenced by ff_dca_core_filter_frame(), parse_aux_data(), and parse_optional_info().

int DCACoreDecoder::prim_dmix_type

Auxiliary primary channel downmix type.

Definition at line 123 of file dca_core.h.

Referenced by ff_dca_core_filter_frame(), and parse_aux_data().

int DCACoreDecoder::prim_dmix_coeff[DCA_DMIX_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]

Dynamic downmix code coefficients.

Definition at line 124 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_aux_data().

int DCACoreDecoder::ext_audio_mask
int DCACoreDecoder::xch_pos

Bit position of XCH frame in core substream.

Definition at line 130 of file dca_core.h.

Referenced by ff_dca_core_parse(), ff_dca_core_parse_exss(), and parse_optional_info().

int DCACoreDecoder::xxch_crc_present

CRC presence flag for XXCH channel set header.

Definition at line 133 of file dca_core.h.

Referenced by parse_coding_header(), and parse_xxch_frame().

int DCACoreDecoder::xxch_mask_nbits

Number of bits for loudspeaker mask.

Definition at line 134 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), map_prm_ch_to_spkr(), parse_coding_header(), and parse_xxch_frame().

int DCACoreDecoder::xxch_core_mask

Core loudspeaker activity mask.

Definition at line 135 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), map_prm_ch_to_spkr(), parse_coding_header(), and parse_xxch_frame().

int DCACoreDecoder::xxch_spkr_mask

Loudspeaker layout mask.

Definition at line 136 of file dca_core.h.

Referenced by map_prm_ch_to_spkr(), and parse_coding_header().

int DCACoreDecoder::xxch_dmix_embedded

Downmix already performed by encoder.

Definition at line 137 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

int DCACoreDecoder::xxch_dmix_scale_inv

Downmix scale factor.

Definition at line 138 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

int DCACoreDecoder::xxch_dmix_mask[DCA_XXCH_CHANNELS_MAX]

Downmix channel mapping mask.

Definition at line 139 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

int DCACoreDecoder::xxch_dmix_coeff[DCA_XXCH_CHANNELS_MAX *DCA_CORE_CHANNELS_MAX]

Downmix coefficients.

Definition at line 140 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

int DCACoreDecoder::xxch_pos

Bit position of XXCH frame in core substream.

Definition at line 141 of file dca_core.h.

Referenced by ff_dca_core_parse(), ff_dca_core_parse_exss(), and parse_optional_info().

int DCACoreDecoder::x96_rev_no

X96 revision number.

Definition at line 144 of file dca_core.h.

Referenced by parse_x96_coding_header(), parse_x96_frame(), and parse_x96_frame_exss().

int DCACoreDecoder::x96_crc_present

CRC presence flag for X96 channel set header.

Definition at line 145 of file dca_core.h.

Referenced by parse_x96_coding_header(), parse_x96_frame(), and parse_x96_frame_exss().

int DCACoreDecoder::x96_nchannels
int DCACoreDecoder::x96_high_res

X96 high resolution flag.

Definition at line 147 of file dca_core.h.

Referenced by parse_x96_coding_header(), and parse_x96_subframe_header().

int DCACoreDecoder::x96_subband_start

First encoded subband in X96 extension.

Definition at line 148 of file dca_core.h.

Referenced by parse_x96_coding_header(), parse_x96_frame_data(), parse_x96_subframe_audio(), and parse_x96_subframe_header().

int DCACoreDecoder::x96_rand

Random seed for generating samples for unallocated X96 subbands.

Definition at line 149 of file dca_core.h.

Referenced by ff_dca_core_init(), and rand_x96().

int DCACoreDecoder::x96_pos

Bit position of X96 frame in core substream.

Definition at line 150 of file dca_core.h.

Referenced by ff_dca_core_parse(), ff_dca_core_parse_exss(), and parse_optional_info().

unsigned int DCACoreDecoder::x96_subband_size

Definition at line 153 of file dca_core.h.

Referenced by alloc_x96_sample_buffer(), and ff_dca_core_close().

int32_t* DCACoreDecoder::x96_subband_buffer

X96 subband sample buffer base.

Definition at line 154 of file dca_core.h.

Referenced by alloc_x96_sample_buffer(), ff_dca_core_close(), and ff_dca_core_flush().

int32_t* DCACoreDecoder::x96_subband_samples[DCA_CHANNELS][DCA_SUBBANDS_X96]
unsigned int DCACoreDecoder::subband_size

Definition at line 157 of file dca_core.h.

Referenced by alloc_sample_buffer(), and ff_dca_core_close().

int32_t* DCACoreDecoder::subband_buffer

Subband sample buffer base.

Definition at line 158 of file dca_core.h.

Referenced by alloc_sample_buffer(), ff_dca_core_close(), and ff_dca_core_flush().

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

Decimated LFE samples.

Definition at line 160 of file dca_core.h.

Referenced by alloc_sample_buffer(), ff_dca_core_filter_fixed(), ff_dca_core_flush(), filter_frame_float(), and parse_subframe_audio().

DCADSPData DCACoreDecoder::dcadsp_data[DCA_CHANNELS]

FIR history buffers.

Definition at line 163 of file dca_core.h.

Referenced by erase_dsp_history(), ff_dca_core_filter_fixed(), and filter_frame_float().

DCADSPContext* DCACoreDecoder::dcadsp
DCADCTContext DCACoreDecoder::dcadct

Definition at line 165 of file dca_core.h.

Referenced by ff_dca_core_filter_fixed(), and ff_dca_core_init().

FFTContext DCACoreDecoder::imdct[2]

Definition at line 166 of file dca_core.h.

Referenced by ff_dca_core_close(), ff_dca_core_init(), and filter_frame_float().

SynthFilterContext DCACoreDecoder::synth

Definition at line 167 of file dca_core.h.

Referenced by ff_dca_core_filter_fixed(), ff_dca_core_init(), and filter_frame_float().

AVFloatDSPContext* DCACoreDecoder::float_dsp

Definition at line 168 of file dca_core.h.

Referenced by ff_dca_core_close(), ff_dca_core_init(), and filter_frame_float().

AVFixedDSPContext* DCACoreDecoder::fixed_dsp

Definition at line 169 of file dca_core.h.

Referenced by ff_dca_core_close(), ff_dca_core_init(), and filter_frame_fixed().

unsigned int DCACoreDecoder::output_size

Definition at line 172 of file dca_core.h.

Referenced by ff_dca_core_close(), ff_dca_core_filter_fixed(), and filter_frame_float().

void* DCACoreDecoder::output_buffer

PCM output buffer base.

Definition at line 173 of file dca_core.h.

Referenced by ff_dca_core_close(), ff_dca_core_filter_fixed(), and filter_frame_float().

int32_t* DCACoreDecoder::output_samples[DCA_SPEAKER_COUNT]

PCM output for fixed point mode.

Definition at line 174 of file dca_core.h.

Referenced by combine_residual_frame(), ff_dca_core_filter_fixed(), and filter_frame_fixed().

int32_t DCACoreDecoder::output_history_lfe_fixed

LFE PCM history for X96 filter.

Definition at line 175 of file dca_core.h.

Referenced by erase_dsp_history(), and ff_dca_core_filter_fixed().

float DCACoreDecoder::output_history_lfe_float

LFE PCM history for X96 filter.

Definition at line 176 of file dca_core.h.

Referenced by erase_dsp_history(), and filter_frame_float().

int DCACoreDecoder::ch_remap[DCA_SPEAKER_COUNT]

Channel to speaker map.

Definition at line 178 of file dca_core.h.

Referenced by ff_dca_core_filter_frame(), filter_frame_fixed(), and filter_frame_float().

int DCACoreDecoder::request_mask

Requested channel layout (for stereo downmix)

Definition at line 179 of file dca_core.h.

Referenced by ff_dca_core_filter_frame(), filter_frame_fixed(), and filter_frame_float().

int DCACoreDecoder::npcmsamples

Number of PCM samples per channel.

Definition at line 181 of file dca_core.h.

Referenced by combine_residual_frame(), ff_dca_core_filter_fixed(), and filter_frame_fixed().

int DCACoreDecoder::output_rate

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

Definition at line 182 of file dca_core.h.

Referenced by combine_residual_frame(), ff_dca_core_filter_fixed(), and filter_frame_fixed().

int DCACoreDecoder::filter_mode

Previous filtering mode for detecting changes.

Definition at line 184 of file dca_core.h.

Referenced by dcadec_decode_frame(), and set_filter_mode().


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