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

#include <dca_lbr.h>

Data Fields

AVCodecContextavctx
 
GetBitContext gb
 
int sample_rate
 Sample rate of LBR audio. More...
 
int ch_mask
 LBR speaker mask. More...
 
int flags
 Flags for LBR decoder initialization. More...
 
int bit_rate_orig
 Original bit rate. More...
 
int bit_rate_scaled
 Scaled bit rate. More...
 
int nchannels
 Number of fullband channels to decode. More...
 
int nchannels_total
 Total number of fullband channels. More...
 
int freq_range
 Frequency range of LBR audio. More...
 
int band_limit
 Band limit factor. More...
 
int limited_rate
 Band limited sample rate. More...
 
int limited_range
 Band limited frequency range. More...
 
int res_profile
 Resolution profile. More...
 
int nsubbands
 Number of encoded subbands. More...
 
int g3_avg_only_start_sb
 Subband index where grid 3 scale factors end. More...
 
int min_mono_subband
 Subband index where mono encoding starts. More...
 
int max_mono_subband
 Subband index where mono encoding ends. More...
 
int framenum
 Lower 5 bits of current frame number. More...
 
int lbr_rand
 Seed for subband randomization. More...
 
int warned
 Flags for warning suppression. More...
 
uint8_t quant_levels [DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]
 Quantization levels. More...
 
uint8_t sb_indices [DCA_LBR_SUBBANDS]
 Subband reordering indices. More...
 
uint8_t sec_ch_sbms [DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]
 Right channel inversion or mid/side decoding flags. More...
 
uint8_t sec_ch_lrms [DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]
 Flags indicating if left/right channel are swapped. More...
 
uint32_t ch_pres [DCA_LBR_CHANNELS]
 Subband allocation flags. More...
 
uint8_t grid_1_scf [DCA_LBR_CHANNELS][12][8]
 Grid 1 scale factors. More...
 
uint8_t grid_2_scf [DCA_LBR_CHANNELS][3][64]
 Grid 2 scale factors. More...
 
int8_t grid_3_avg [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS-4]
 Grid 3 average values. More...
 
int8_t grid_3_scf [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS-4][8]
 Grid 3 scale factors. More...
 
uint32_t grid_3_pres [DCA_LBR_CHANNELS]
 Grid 3 scale factors presence flags. More...
 
uint8_t high_res_scf [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS][8]
 High-frequency resolution scale factors. More...
 
uint8_t part_stereo [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS/4][5]
 Partial stereo coefficients. More...
 
uint8_t part_stereo_pres
 Partial stereo coefficients presence flags. More...
 
float lpc_coeff [2][DCA_LBR_CHANNELS][3][2][8]
 Predictor coefficients. More...
 
float sb_scf [DCA_LBR_SUBBANDS]
 Subband randomization scale factors. More...
 
float * time_samples [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS]
 Time samples. More...
 
float * ts_buffer
 Time sample buffer base. More...
 
unsigned int ts_size
 Time sample buffer size. More...
 
float history [DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS *4]
 IMDCT history. More...
 
float window [DCA_LBR_SUBBANDS *4]
 Long window for IMDCT. More...
 
float lfe_data [64]
 Decimated LFE samples. More...
 
float lfe_history [5][2]
 LFE IIR filter history. More...
 
float lfe_scale
 Scale factor of LFE samples before IIR filter. More...
 
uint8_t tonal_scf [6]
 Tonal scale factors. More...
 
uint16_t tonal_bounds [5][32][2]
 Per-group per-subframe start/end positions of tones. More...
 
DCALbrTone tones [DCA_LBR_TONES]
 Circular buffer of tones. More...
 
int ntones
 Circular buffer head position. More...
 
FFTContext imdct
 
AVFloatDSPContextfdsp
 
DCADSPContextdcadsp
 

Detailed Description

Definition at line 58 of file dca_lbr.h.

Field Documentation

AVCodecContext* DCALbrDecoder::avctx
GetBitContext DCALbrDecoder::gb
int DCALbrDecoder::sample_rate

Sample rate of LBR audio.

Definition at line 62 of file dca_lbr.h.

Referenced by ff_dca_lbr_close(), ff_dca_lbr_filter_frame(), ff_dca_lbr_flush(), ff_dca_lbr_parse(), and parse_decoder_init().

int DCALbrDecoder::ch_mask

LBR speaker mask.

Definition at line 63 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), and parse_decoder_init().

int DCALbrDecoder::flags

Flags for LBR decoder initialization.

Definition at line 64 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), parse_decoder_init(), and parse_lfe_chunk().

int DCALbrDecoder::bit_rate_orig

Original bit rate.

Definition at line 65 of file dca_lbr.h.

Referenced by parse_decoder_init().

int DCALbrDecoder::bit_rate_scaled

Scaled bit rate.

Definition at line 66 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), init_sample_rate(), and parse_decoder_init().

int DCALbrDecoder::nchannels

Number of fullband channels to decode.

Definition at line 68 of file dca_lbr.h.

Referenced by alloc_sample_buffer(), ff_dca_lbr_filter_frame(), ff_dca_lbr_flush(), ff_dca_lbr_parse(), parse_decoder_init(), and parse_tonal().

int DCALbrDecoder::nchannels_total

Total number of fullband channels.

Definition at line 69 of file dca_lbr.h.

Referenced by init_sample_rate(), parse_decoder_init(), and parse_tonal().

int DCALbrDecoder::freq_range

Frequency range of LBR audio.

Definition at line 70 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), init_sample_rate(), parse_decoder_init(), and transform_channel().

int DCALbrDecoder::band_limit

Band limit factor.

Definition at line 71 of file dca_lbr.h.

Referenced by parse_decoder_init().

int DCALbrDecoder::limited_rate

Band limited sample rate.

Definition at line 72 of file dca_lbr.h.

Referenced by parse_decoder_init(), and parse_high_res_grid().

int DCALbrDecoder::limited_range

Band limited frequency range.

Definition at line 73 of file dca_lbr.h.

Referenced by init_sample_rate(), parse_decoder_init(), parse_tonal(), and parse_ts().

int DCALbrDecoder::res_profile

Resolution profile.

Definition at line 74 of file dca_lbr.h.

Referenced by parse_decoder_init().

int DCALbrDecoder::nsubbands
int DCALbrDecoder::g3_avg_only_start_sb

Subband index where grid 3 scale factors end.

Definition at line 76 of file dca_lbr.h.

Referenced by parse_decoder_init(), and parse_ts().

int DCALbrDecoder::min_mono_subband

Subband index where mono encoding starts.

Definition at line 77 of file dca_lbr.h.

Referenced by decode_part_stereo(), filter_ts(), parse_decoder_init(), parse_grid_1_chunk(), parse_grid_1_sec_ch(), parse_grid_2(), parse_grid_3(), parse_ts(), and parse_ts2_chunk().

int DCALbrDecoder::max_mono_subband

Subband index where mono encoding ends.

Definition at line 78 of file dca_lbr.h.

Referenced by parse_decoder_init(), parse_ts(), and parse_ts2_chunk().

int DCALbrDecoder::framenum

Lower 5 bits of current frame number.

Definition at line 80 of file dca_lbr.h.

Referenced by base_func_synth(), ff_dca_lbr_flush(), ff_dca_lbr_parse(), parse_lpc(), parse_tonal(), and synth_lpc().

int DCALbrDecoder::lbr_rand

Seed for subband randomization.

Definition at line 81 of file dca_lbr.h.

Referenced by ff_dca_lbr_init(), and lbr_rand().

int DCALbrDecoder::warned

Flags for warning suppression.

Definition at line 82 of file dca_lbr.h.

Referenced by parse_decoder_init().

uint8_t DCALbrDecoder::quant_levels[DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]

Quantization levels.

Definition at line 84 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), parse_high_res_grid(), and parse_ts().

uint8_t DCALbrDecoder::sb_indices[DCA_LBR_SUBBANDS]

Subband reordering indices.

Definition at line 85 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), and parse_ts().

uint8_t DCALbrDecoder::sec_ch_sbms[DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]

Right channel inversion or mid/side decoding flags.

Definition at line 87 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), filter_ts(), and parse_ts().

uint8_t DCALbrDecoder::sec_ch_lrms[DCA_LBR_CHANNELS/2][DCA_LBR_SUBBANDS]

Flags indicating if left/right channel are swapped.

Definition at line 88 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), filter_ts(), and parse_ts().

uint32_t DCALbrDecoder::ch_pres[DCA_LBR_CHANNELS]

Subband allocation flags.

Definition at line 89 of file dca_lbr.h.

Referenced by decode_part_stereo(), ff_dca_lbr_parse(), filter_ts(), parse_ch(), random_ts(), and synth_lpc().

uint8_t DCALbrDecoder::grid_1_scf[DCA_LBR_CHANNELS][12][8]

Grid 1 scale factors.

Definition at line 91 of file dca_lbr.h.

Referenced by decode_grid(), ff_dca_lbr_parse(), parse_grid_1_chunk(), parse_grid_1_sec_ch(), and parse_high_res_grid().

uint8_t DCALbrDecoder::grid_2_scf[DCA_LBR_CHANNELS][3][64]

Grid 2 scale factors.

Definition at line 92 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), filter_ts(), and parse_grid_2().

int8_t DCALbrDecoder::grid_3_avg[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS-4]

Grid 3 average values.

Definition at line 94 of file dca_lbr.h.

Referenced by decode_grid(), ff_dca_lbr_parse(), parse_grid_1_chunk(), and parse_grid_1_sec_ch().

int8_t DCALbrDecoder::grid_3_scf[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS-4][8]

Grid 3 scale factors.

Definition at line 95 of file dca_lbr.h.

Referenced by decode_grid(), ff_dca_lbr_parse(), and parse_grid_3().

uint32_t DCALbrDecoder::grid_3_pres[DCA_LBR_CHANNELS]

Grid 3 scale factors presence flags.

Definition at line 96 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), and parse_grid_3().

uint8_t DCALbrDecoder::high_res_scf[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS][8]

High-frequency resolution scale factors.

Definition at line 98 of file dca_lbr.h.

Referenced by decode_grid(), and filter_ts().

uint8_t DCALbrDecoder::part_stereo[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS/4][5]

Partial stereo coefficients.

Definition at line 100 of file dca_lbr.h.

Referenced by decode_part_stereo(), ff_dca_lbr_flush(), ff_dca_lbr_parse(), and parse_grid_1_chunk().

uint8_t DCALbrDecoder::part_stereo_pres

Partial stereo coefficients presence flags.

Definition at line 101 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), ff_dca_lbr_parse(), filter_ts(), and parse_grid_1_chunk().

float DCALbrDecoder::lpc_coeff[2][DCA_LBR_CHANNELS][3][2][8]

Predictor coefficients.

Definition at line 103 of file dca_lbr.h.

Referenced by ff_dca_lbr_flush(), ff_dca_lbr_parse(), parse_lpc(), and synth_lpc().

float DCALbrDecoder::sb_scf[DCA_LBR_SUBBANDS]

Subband randomization scale factors.

Definition at line 105 of file dca_lbr.h.

Referenced by init_sample_rate(), and lbr_rand().

float* DCALbrDecoder::time_samples[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS]
float* DCALbrDecoder::ts_buffer

Time sample buffer base.

Definition at line 109 of file dca_lbr.h.

Referenced by alloc_sample_buffer(), and ff_dca_lbr_close().

unsigned int DCALbrDecoder::ts_size

Time sample buffer size.

Definition at line 110 of file dca_lbr.h.

Referenced by alloc_sample_buffer(), and ff_dca_lbr_close().

float DCALbrDecoder::history[DCA_LBR_CHANNELS][DCA_LBR_SUBBANDS *4]

IMDCT history.

Definition at line 112 of file dca_lbr.h.

Referenced by ff_dca_lbr_flush(), and transform_channel().

float DCALbrDecoder::window[DCA_LBR_SUBBANDS *4]

Long window for IMDCT.

Definition at line 113 of file dca_lbr.h.

Referenced by init_sample_rate(), and transform_channel().

float DCALbrDecoder::lfe_data[64]

Decimated LFE samples.

Definition at line 115 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), ff_dca_lbr_parse(), parse_lfe_16(), and parse_lfe_24().

float DCALbrDecoder::lfe_history[5][2]

LFE IIR filter history.

Definition at line 116 of file dca_lbr.h.

Referenced by ff_dca_lbr_filter_frame(), and ff_dca_lbr_flush().

float DCALbrDecoder::lfe_scale

Scale factor of LFE samples before IIR filter.

Definition at line 117 of file dca_lbr.h.

Referenced by init_sample_rate(), parse_lfe_16(), and parse_lfe_24().

uint8_t DCALbrDecoder::tonal_scf[6]

Tonal scale factors.

Definition at line 119 of file dca_lbr.h.

Referenced by ff_dca_lbr_parse(), parse_tonal(), and parse_tonal_chunk().

uint16_t DCALbrDecoder::tonal_bounds[5][32][2]

Per-group per-subframe start/end positions of tones.

Definition at line 120 of file dca_lbr.h.

Referenced by ff_dca_lbr_flush(), ff_dca_lbr_parse(), parse_tonal(), and synth_tones().

DCALbrTone DCALbrDecoder::tones[DCA_LBR_TONES]

Circular buffer of tones.

Definition at line 121 of file dca_lbr.h.

Referenced by parse_tonal(), and synth_tones().

int DCALbrDecoder::ntones

Circular buffer head position.

Definition at line 122 of file dca_lbr.h.

Referenced by ff_dca_lbr_flush(), ff_dca_lbr_parse(), and parse_tonal().

FFTContext DCALbrDecoder::imdct

Definition at line 124 of file dca_lbr.h.

Referenced by ff_dca_lbr_close(), init_sample_rate(), and transform_channel().

AVFloatDSPContext* DCALbrDecoder::fdsp

Definition at line 125 of file dca_lbr.h.

Referenced by ff_dca_lbr_close(), ff_dca_lbr_init(), and transform_channel().

DCADSPContext* DCALbrDecoder::dcadsp

Definition at line 126 of file dca_lbr.h.

Referenced by dcadec_init(), ff_dca_lbr_filter_frame(), and transform_channel().


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