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

#include <dca.h>

Data Fields

const AVClassclass
 class for AVOptions
 
AVCodecContextavctx
 
int frame_type
 type of the current frame
 
int samples_deficit
 deficit sample count
 
int crc_present
 crc is present in the bitstream
 
int sample_blocks
 number of PCM sample blocks
 
int frame_size
 primary frame byte size
 
int amode
 audio channels arrangement
 
int sample_rate
 audio sampling rate
 
int bit_rate
 transmission bit rate
 
int bit_rate_index
 transmission bit rate index
 
int dynrange
 embedded dynamic range flag
 
int timestamp
 embedded time stamp flag
 
int aux_data
 auxiliary data flag
 
int hdcd
 source material is mastered in HDCD
 
int ext_descr
 extension audio descriptor flag
 
int ext_coding
 extended coding flag
 
int aspf
 audio sync word insertion flag
 
int lfe
 low frequency effects flag
 
int predictor_history
 predictor history flag
 
int header_crc
 header crc check bytes
 
int multirate_inter
 multirate interpolator switch
 
int version
 encoder software revision
 
int copy_history
 copy history
 
int source_pcm_res
 source pcm resolution
 
int front_sum
 front sum/difference flag
 
int surround_sum
 surround sum/difference flag
 
int dialog_norm
 dialog normalisation parameter
 
int subframes
 number of subframes
 
int total_channels
 number of channels including extensions
 
int prim_channels
 number of primary audio channels
 
int subband_activity [DCA_PRIM_CHANNELS_MAX]
 subband activity count
 
int vq_start_subband [DCA_PRIM_CHANNELS_MAX]
 high frequency vq start subband
 
int joint_intensity [DCA_PRIM_CHANNELS_MAX]
 joint intensity coding index
 
int transient_huffman [DCA_PRIM_CHANNELS_MAX]
 transient mode code book
 
int scalefactor_huffman [DCA_PRIM_CHANNELS_MAX]
 scale factor code book
 
int bitalloc_huffman [DCA_PRIM_CHANNELS_MAX]
 bit allocation quantizer select
 
int quant_index_huffman [DCA_PRIM_CHANNELS_MAX][DCA_ABITS_MAX]
 quantization index codebook select
 
float scalefactor_adj [DCA_PRIM_CHANNELS_MAX][DCA_ABITS_MAX]
 scale factor adjustment
 
int subsubframes [DCA_SUBFRAMES_MAX]
 number of subsubframes
 
int partial_samples [DCA_SUBFRAMES_MAX]
 partial subsubframe samples count
 
int prediction_mode [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 prediction mode (ADPCM used or not)
 
int prediction_vq [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 prediction VQ coefs
 
int bitalloc [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 bit allocation index
 
int transition_mode [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 transition mode (transients)
 
int32_t scale_factor [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][2]
 scale factors (2 if transient)
 
int joint_huff [DCA_PRIM_CHANNELS_MAX]
 joint subband scale factors codebook
 
int joint_scale_factor [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 joint subband scale factors
 
float downmix_coef [DCA_PRIM_CHANNELS_MAX+1][2]
 stereo downmix coefficients
 
int dynrange_coef
 dynamic range coefficient
 
uint8_t core_downmix
 embedded downmix coefficients available
 
uint8_t core_downmix_amode
 audio channel arrangement of embedded downmix
 
uint16_t core_downmix_codes [DCA_PRIM_CHANNELS_MAX+1][4]
 embedded downmix coefficients (9-bit codes)
 
int32_t high_freq_vq [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]
 VQ encoded high frequency subbands.
 
float lfe_data [2 *DCA_LFE_MAX *(DCA_BLOCKS_MAX+4)]
 Low frequency effect data.
 
int lfe_scale_factor
 
float subband_samples_hist [DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][4]
 
float subband_fir_hist [DCA_PRIM_CHANNELS_MAX][512]
 
float subband_fir_noidea [DCA_PRIM_CHANNELS_MAX][32]
 
int hist_index [DCA_PRIM_CHANNELS_MAX]
 
float raXin [32]
 
int output
 type of output
 
float subband_samples [DCA_BLOCKS_MAX][DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][8]
 
float * samples_chanptr [DCA_PRIM_CHANNELS_MAX+1]
 
float * extra_channels [DCA_PRIM_CHANNELS_MAX+1]
 
uint8_textra_channels_buffer
 
unsigned int extra_channels_buffer_size
 
uint8_t dca_buffer [DCA_MAX_FRAME_SIZE+DCA_MAX_EXSS_HEADER_SIZE+DCA_BUFFER_PADDING_SIZE]
 
int dca_buffer_size
 how much data is in the dca_buffer
 
const int8_t * channel_order_tab
 channel reordering table, lfe and non lfe
 
GetBitContext gb
 
int current_subframe
 
int current_subsubframe
 
int core_ext_mask
 present extensions in the core substream
 
int xch_present
 XCh extension present and valid.
 
int xch_base_channel
 index of first (only) channel containing XCH data
 
int xch_disable
 whether the XCh extension should be decoded or not
 
int xxch_chset
 
int xxch_nbits_spk_mask
 
uint32_t xxch_core_spkmask
 
uint32_t xxch_spk_masks [4]
 
int xxch_chset_nch [4]
 
float xxch_dmix_sf [DCA_CHSETS_MAX]
 
uint32_t xxch_dmix_embedded
 
float xxch_dmix_coeff [DCA_PRIM_CHANNELS_MAX][32]
 
int8_t xxch_order_tab [32]
 
int8_t lfe_index
 
int static_fields
 static fields present
 
int mix_metadata
 mixing metadata present
 
int num_mix_configs
 number of mix out configurations
 
int mix_config_num_ch [4]
 number of channels in each mix out configuration
 
int profile
 
int debug_flag
 used for suppressing repeated error messages output
 
AVFloatDSPContextfdsp
 
FFTContext imdct
 
SynthFilterContext synth
 
DCADSPContext dcadsp
 
FmtConvertContext fmt_conv
 

Detailed Description

Definition at line 65 of file dca.h.

Field Documentation

const AVClass* DCAContext::class

class for AVOptions

Definition at line 66 of file dca.h.

AVCodecContext* DCAContext::avctx
int DCAContext::frame_type

type of the current frame

Definition at line 69 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::samples_deficit

deficit sample count

Definition at line 70 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::crc_present

crc is present in the bitstream

Definition at line 71 of file dca.h.

Referenced by dca_parse_audio_coding_header(), dca_parse_frame_header(), dca_subframe_footer(), and dca_subframe_header().

int DCAContext::sample_blocks

number of PCM sample blocks

Definition at line 72 of file dca.h.

Referenced by dca_decode_frame(), dca_parse_frame_header(), ff_dca_xbr_parse_frame(), and ff_dca_xxch_decode_frame().

int DCAContext::frame_size

primary frame byte size

Definition at line 73 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::amode

audio channels arrangement

Definition at line 74 of file dca.h.

Referenced by dca_decode_frame(), dca_filter_channels(), and dca_parse_frame_header().

int DCAContext::sample_rate

audio sampling rate

Definition at line 75 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::bit_rate

transmission bit rate

Definition at line 76 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::bit_rate_index

transmission bit rate index

Definition at line 77 of file dca.h.

Referenced by dca_parse_frame_header(), and dca_subsubframe().

int DCAContext::dynrange

embedded dynamic range flag

Definition at line 79 of file dca.h.

Referenced by dca_parse_frame_header(), dca_subframe_footer(), and dca_subframe_header().

int DCAContext::timestamp

embedded time stamp flag

Definition at line 80 of file dca.h.

Referenced by dca_parse_frame_header(), and dca_subframe_footer().

int DCAContext::aux_data

auxiliary data flag

Definition at line 81 of file dca.h.

Referenced by dca_parse_frame_header(), and dca_subframe_footer().

int DCAContext::hdcd

source material is mastered in HDCD

Definition at line 82 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::ext_descr

extension audio descriptor flag

Definition at line 83 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::ext_coding

extended coding flag

Definition at line 84 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::aspf

audio sync word insertion flag

Definition at line 85 of file dca.h.

Referenced by dca_parse_frame_header(), dca_subsubframe(), and ff_dca_xbr_parse_frame().

int DCAContext::lfe

low frequency effects flag

Definition at line 86 of file dca.h.

Referenced by dca_decode_frame(), dca_filter_channels(), dca_parse_frame_header(), dca_subframe_footer(), and dca_subframe_header().

int DCAContext::predictor_history

predictor history flag

Definition at line 87 of file dca.h.

Referenced by dca_parse_frame_header(), and dca_subsubframe().

int DCAContext::header_crc

header crc check bytes

Definition at line 88 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::multirate_inter

multirate interpolator switch

Definition at line 89 of file dca.h.

Referenced by dca_parse_frame_header(), and qmf_32_subbands().

int DCAContext::version

encoder software revision

Definition at line 90 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::copy_history

copy history

Definition at line 91 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::source_pcm_res

source pcm resolution

Definition at line 92 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::front_sum

front sum/difference flag

Definition at line 93 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::surround_sum

surround sum/difference flag

Definition at line 94 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::dialog_norm

dialog normalisation parameter

Definition at line 95 of file dca.h.

Referenced by dca_parse_frame_header().

int DCAContext::subframes

number of subframes

Definition at line 98 of file dca.h.

Referenced by dca_decode_block(), and dca_parse_frame_header().

int DCAContext::total_channels

number of channels including extensions

Definition at line 99 of file dca.h.

Referenced by dca_parse_audio_coding_header().

int DCAContext::prim_channels
int DCAContext::subband_activity[DCA_PRIM_CHANNELS_MAX]

subband activity count

Definition at line 101 of file dca.h.

Referenced by dca_parse_audio_coding_header(), dca_subframe_header(), dca_subsubframe(), and qmf_32_subbands().

int DCAContext::vq_start_subband[DCA_PRIM_CHANNELS_MAX]

high frequency vq start subband

Definition at line 102 of file dca.h.

Referenced by dca_parse_audio_coding_header(), dca_subframe_header(), and dca_subsubframe().

int DCAContext::joint_intensity[DCA_PRIM_CHANNELS_MAX]

joint intensity coding index

Definition at line 103 of file dca.h.

Referenced by dca_parse_audio_coding_header(), and dca_subframe_header().

int DCAContext::transient_huffman[DCA_PRIM_CHANNELS_MAX]

transient mode code book

Definition at line 104 of file dca.h.

Referenced by dca_parse_audio_coding_header(), and dca_subframe_header().

int DCAContext::scalefactor_huffman[DCA_PRIM_CHANNELS_MAX]

scale factor code book

Definition at line 105 of file dca.h.

Referenced by dca_parse_audio_coding_header(), dca_subframe_header(), and ff_dca_xbr_parse_frame().

int DCAContext::bitalloc_huffman[DCA_PRIM_CHANNELS_MAX]

bit allocation quantizer select

Definition at line 106 of file dca.h.

Referenced by dca_parse_audio_coding_header(), and dca_subframe_header().

int DCAContext::quant_index_huffman[DCA_PRIM_CHANNELS_MAX][DCA_ABITS_MAX]

quantization index codebook select

Definition at line 107 of file dca.h.

Referenced by dca_parse_audio_coding_header(), and dca_subsubframe().

float DCAContext::scalefactor_adj[DCA_PRIM_CHANNELS_MAX][DCA_ABITS_MAX]

scale factor adjustment

Definition at line 108 of file dca.h.

Referenced by dca_parse_audio_coding_header(), and dca_subsubframe().

int DCAContext::subsubframes[DCA_SUBFRAMES_MAX]

number of subsubframes

Definition at line 111 of file dca.h.

Referenced by dca_decode_block(), dca_subframe_header(), dca_subsubframe(), and ff_dca_xbr_parse_frame().

int DCAContext::partial_samples[DCA_SUBFRAMES_MAX]

partial subsubframe samples count

Definition at line 112 of file dca.h.

Referenced by dca_subframe_header().

int DCAContext::prediction_mode[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

prediction mode (ADPCM used or not)

Definition at line 113 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

int DCAContext::prediction_vq[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

prediction VQ coefs

Definition at line 114 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

int DCAContext::bitalloc[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

bit allocation index

Definition at line 115 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

int DCAContext::transition_mode[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

transition mode (transients)

Definition at line 116 of file dca.h.

Referenced by dca_subframe_header(), dca_subsubframe(), and ff_dca_xbr_parse_frame().

int32_t DCAContext::scale_factor[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][2]

scale factors (2 if transient)

Definition at line 117 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

int DCAContext::joint_huff[DCA_PRIM_CHANNELS_MAX]

joint subband scale factors codebook

Definition at line 118 of file dca.h.

Referenced by dca_subframe_header().

int DCAContext::joint_scale_factor[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

joint subband scale factors

Definition at line 119 of file dca.h.

Referenced by dca_subframe_header().

float DCAContext::downmix_coef[DCA_PRIM_CHANNELS_MAX+1][2]

stereo downmix coefficients

Definition at line 120 of file dca.h.

Referenced by dca_decode_frame(), and dca_filter_channels().

int DCAContext::dynrange_coef

dynamic range coefficient

Definition at line 121 of file dca.h.

Referenced by dca_subframe_header().

uint8_t DCAContext::core_downmix

embedded downmix coefficients available

Definition at line 126 of file dca.h.

Referenced by dca_decode_frame(), and dca_subframe_footer().

uint8_t DCAContext::core_downmix_amode

audio channel arrangement of embedded downmix

Definition at line 127 of file dca.h.

Referenced by dca_decode_frame(), and dca_subframe_footer().

uint16_t DCAContext::core_downmix_codes[DCA_PRIM_CHANNELS_MAX+1][4]

embedded downmix coefficients (9-bit codes)

Definition at line 128 of file dca.h.

Referenced by dca_decode_frame(), and dca_subframe_footer().

int32_t DCAContext::high_freq_vq[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS]

VQ encoded high frequency subbands.

Definition at line 130 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

float DCAContext::lfe_data[2 *DCA_LFE_MAX *(DCA_BLOCKS_MAX+4)]

Low frequency effect data.

Definition at line 132 of file dca.h.

Referenced by dca_decode_frame(), dca_filter_channels(), and dca_subframe_header().

int DCAContext::lfe_scale_factor

Definition at line 133 of file dca.h.

Referenced by dca_subframe_header().

float DCAContext::subband_samples_hist[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][4]

Definition at line 136 of file dca.h.

Referenced by dca_subsubframe().

float DCAContext::subband_fir_hist[DCA_PRIM_CHANNELS_MAX][512]

Definition at line 137 of file dca.h.

Referenced by qmf_32_subbands().

float DCAContext::subband_fir_noidea[DCA_PRIM_CHANNELS_MAX][32]

Definition at line 138 of file dca.h.

Referenced by qmf_32_subbands().

int DCAContext::hist_index[DCA_PRIM_CHANNELS_MAX]

Definition at line 139 of file dca.h.

Referenced by qmf_32_subbands().

float DCAContext::raXin[32]

Definition at line 140 of file dca.h.

Referenced by qmf_32_subbands().

int DCAContext::output

type of output

Definition at line 142 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

float DCAContext::subband_samples[DCA_BLOCKS_MAX][DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][8]

Definition at line 144 of file dca.h.

Referenced by dca_filter_channels(), dca_subsubframe(), and ff_dca_xbr_parse_frame().

float* DCAContext::samples_chanptr[DCA_PRIM_CHANNELS_MAX+1]

Definition at line 145 of file dca.h.

Referenced by dca_decode_frame(), and dca_filter_channels().

float* DCAContext::extra_channels[DCA_PRIM_CHANNELS_MAX+1]

Definition at line 146 of file dca.h.

Referenced by dca_decode_frame().

uint8_t* DCAContext::extra_channels_buffer

Definition at line 147 of file dca.h.

Referenced by dca_decode_end(), and dca_decode_frame().

unsigned int DCAContext::extra_channels_buffer_size

Definition at line 148 of file dca.h.

Referenced by dca_decode_frame().

Definition at line 150 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

int DCAContext::dca_buffer_size

how much data is in the dca_buffer

Definition at line 151 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_frame_header().

const int8_t* DCAContext::channel_order_tab

channel reordering table, lfe and non lfe

Definition at line 153 of file dca.h.

Referenced by dca_decode_frame(), and dca_filter_channels().

GetBitContext DCAContext::gb
int DCAContext::current_subframe
int DCAContext::current_subsubframe

Definition at line 157 of file dca.h.

Referenced by dca_decode_block(), dca_parse_audio_coding_header(), and dca_subsubframe().

int DCAContext::core_ext_mask

present extensions in the core substream

Definition at line 159 of file dca.h.

Referenced by dca_decode_frame(), dca_exss_parse_asset_header(), and ff_dca_exss_parse_header().

int DCAContext::xch_present

XCh extension present and valid.

Definition at line 162 of file dca.h.

Referenced by dca_decode_frame().

int DCAContext::xch_base_channel

index of first (only) channel containing XCH data

Definition at line 163 of file dca.h.

Referenced by dca_decode_frame().

int DCAContext::xch_disable

whether the XCh extension should be decoded or not

Definition at line 164 of file dca.h.

Referenced by dca_decode_frame().

int DCAContext::xxch_chset
int DCAContext::xxch_nbits_spk_mask
uint32_t DCAContext::xxch_core_spkmask
uint32_t DCAContext::xxch_spk_masks[4]

Definition at line 170 of file dca.h.

Referenced by dca_decode_frame(), dca_parse_audio_coding_header(), and dca_xxch2index().

int DCAContext::xxch_chset_nch[4]

Definition at line 171 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_audio_coding_header().

float DCAContext::xxch_dmix_sf[DCA_CHSETS_MAX]

Definition at line 172 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_audio_coding_header().

uint32_t DCAContext::xxch_dmix_embedded
float DCAContext::xxch_dmix_coeff[DCA_PRIM_CHANNELS_MAX][32]

Definition at line 175 of file dca.h.

Referenced by dca_decode_frame(), and dca_parse_audio_coding_header().

int8_t DCAContext::xxch_order_tab[32]

Definition at line 177 of file dca.h.

Referenced by dca_decode_frame().

int8_t DCAContext::lfe_index

Definition at line 178 of file dca.h.

Referenced by dca_decode_frame(), and dca_filter_channels().

int DCAContext::static_fields

static fields present

Definition at line 181 of file dca.h.

Referenced by dca_exss_parse_asset_header(), and ff_dca_exss_parse_header().

int DCAContext::mix_metadata

mixing metadata present

Definition at line 182 of file dca.h.

Referenced by dca_exss_parse_asset_header(), and ff_dca_exss_parse_header().

int DCAContext::num_mix_configs

number of mix out configurations

Definition at line 183 of file dca.h.

Referenced by dca_exss_parse_asset_header(), and ff_dca_exss_parse_header().

int DCAContext::mix_config_num_ch[4]

number of channels in each mix out configuration

Definition at line 184 of file dca.h.

Referenced by dca_exss_parse_asset_header(), and ff_dca_exss_parse_header().

int DCAContext::profile

Definition at line 186 of file dca.h.

Referenced by dca_decode_frame(), and dca_exss_parse_asset_header().

int DCAContext::debug_flag

used for suppressing repeated error messages output

Definition at line 188 of file dca.h.

Referenced by dca_subframe_header(), and dca_subsubframe().

AVFloatDSPContext* DCAContext::fdsp

Definition at line 189 of file dca.h.

Referenced by dca_decode_end(), dca_decode_frame(), and dca_decode_init().

FFTContext DCAContext::imdct

Definition at line 190 of file dca.h.

Referenced by dca_decode_end(), dca_decode_init(), and qmf_32_subbands().

SynthFilterContext DCAContext::synth

Definition at line 191 of file dca.h.

Referenced by dca_decode_init(), and qmf_32_subbands().

DCADSPContext DCAContext::dcadsp

Definition at line 192 of file dca.h.

Referenced by dca_decode_init(), dca_subsubframe(), lfe_interpolation_fir(), and qmf_32_subbands().

FmtConvertContext DCAContext::fmt_conv

Definition at line 193 of file dca.h.

Referenced by dca_decode_init(), and dca_subsubframe().


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