SpectralBandReplication Struct Reference

Spectral Band Replication. More...

#include <sbr.h>


Public Member Functions

 DECLARE_ALIGNED (16, float, X)[2][32][64]
 QMF values of the reconstructed signal.
 DECLARE_ALIGNED (16, float, qmf_filter_scratch)[5][64]

Data Fields

int sample_rate
int start
int reset
SpectrumParameters spectrum_params
int bs_amp_res_header
unsigned bs_limiter_bands
unsigned bs_limiter_gains
unsigned bs_interpol_freq
unsigned bs_smoothing_mode
unsigned bs_coupling
unsigned k [5]
 k0, k1, k2
unsigned kx [2]
 kx', and kx respectively, kx is the first QMF subband where SBR is used.
unsigned m [2]
 M' and M respectively, M is the number of QMF subbands that use SBR.
unsigned n_master
 The number of frequency bands in f_master.
SBRData data [2]
unsigned n [2]
 N_Low and N_High respectively, the number of frequency bands for low and high resolution.
unsigned n_q
 Number of noise floor bands.
unsigned n_lim
 Number of limiter bands.
uint16_t f_master [49]
 The master QMF frequency grouping.
uint16_t f_tablelow [25]
 Frequency borders for low resolution SBR.
uint16_t f_tablehigh [49]
 Frequency borders for high resolution SBR.
uint16_t f_tablenoise [6]
 Frequency borders for noise floors.
uint16_t f_tablelim [29]
 Frequency borders for the limiter.
unsigned num_patches
uint8_t patch_num_subbands [6]
uint8_t patch_start_subband [6]
float X_low [32][40][2]
 QMF low frequency input to the HF generator.
float X_high [64][40][2]
 QMF output of the HF generator.
float alpha0 [64][2]
 Zeroth coefficient used to filter the subband signals.
float alpha1 [64][2]
 First coefficient used to filter the subband signals.
float e_origmapped [7][48]
 Dequantized envelope scalefactors, remapped.
float q_mapped [7][48]
 Dequantized noise scalefactors, remapped.
uint8_t s_mapped [7][48]
 Sinusoidal presence, remapped.
float e_curr [7][48]
 Estimated envelope.
float q_m [7][48]
 Amplitude adjusted noise scalefactors.
float s_m [7][48]
 Sinusoidal levels.
float gain [7][48]
RDFTContext rdft
FFTContext mdct


Detailed Description

Spectral Band Replication.

Definition at line 111 of file sbr.h.


Member Function Documentation

SpectralBandReplication::DECLARE_ALIGNED ( 16  ,
float  ,
 
)

QMF values of the reconstructed signal.

SpectralBandReplication::DECLARE_ALIGNED ( 16  ,
float  ,
qmf_filter_scratch   
)


Field Documentation

Definition at line 114 of file sbr.h.

Referenced by ff_decode_sbr_extension(), read_sbr_header(), and sbr_hf_assemble().

Definition at line 115 of file sbr.h.

Referenced by read_sbr_header(), sbr_make_f_derived(), sbr_make_f_master(), and sbr_reset().

Definition at line 116 of file sbr.h.

Referenced by read_sbr_grid(), and read_sbr_header().

k0, k1, k2

Definition at line 127 of file sbr.h.

Referenced by ff_sbr_apply(), sbr_hf_calc_npatches(), sbr_make_f_derived(), and sbr_make_f_master().

kx', and kx respectively, kx is the first QMF subband where SBR is used.

kx' is its value from the previous frame

Definition at line 130 of file sbr.h.

Referenced by ff_aac_sbr_ctx_init(), ff_decode_sbr_extension(), sbr_env_estimate(), sbr_gain_calc(), sbr_hf_assemble(), sbr_hf_calc_npatches(), sbr_hf_gen(), sbr_lf_gen(), sbr_make_f_derived(), sbr_make_f_tablelim(), sbr_mapping(), and sbr_x_gen().

M' and M respectively, M is the number of QMF subbands that use SBR.

Definition at line 132 of file sbr.h.

Referenced by ff_decode_sbr_extension(), sbr_env_estimate(), sbr_hf_assemble(), sbr_hf_calc_npatches(), sbr_hf_gen(), sbr_make_f_derived(), and sbr_x_gen().

The number of frequency bands in f_master.

Definition at line 134 of file sbr.h.

Referenced by sbr_hf_calc_npatches(), sbr_make_f_derived(), and sbr_make_f_master().

N_Low and N_High respectively, the number of frequency bands for low and high resolution.

Definition at line 137 of file sbr.h.

Referenced by read_sbr_channel_pair_element(), read_sbr_envelope(), read_sbr_single_channel_element(), sbr_dequant(), sbr_env_estimate(), sbr_make_f_derived(), sbr_make_f_tablelim(), and sbr_mapping().

Number of noise floor bands.

Definition at line 139 of file sbr.h.

Referenced by read_sbr_invf(), read_sbr_noise(), sbr_chirp(), sbr_dequant(), sbr_make_f_derived(), and sbr_mapping().

Number of limiter bands.

Definition at line 141 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_make_f_tablelim().

The master QMF frequency grouping.

Definition at line 143 of file sbr.h.

Referenced by sbr_hf_calc_npatches(), sbr_make_f_derived(), and sbr_make_f_master().

Frequency borders for low resolution SBR.

Definition at line 145 of file sbr.h.

Referenced by sbr_env_estimate(), sbr_make_f_derived(), sbr_make_f_tablelim(), and sbr_mapping().

Frequency borders for high resolution SBR.

Definition at line 147 of file sbr.h.

Referenced by sbr_env_estimate(), sbr_make_f_derived(), and sbr_mapping().

Frequency borders for noise floors.

Definition at line 149 of file sbr.h.

Referenced by sbr_hf_gen(), sbr_make_f_derived(), and sbr_mapping().

Frequency borders for the limiter.

Definition at line 151 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_make_f_tablelim().

Definition at line 152 of file sbr.h.

Referenced by sbr_hf_calc_npatches(), sbr_hf_gen(), and sbr_make_f_tablelim().

Definition at line 153 of file sbr.h.

Referenced by sbr_hf_calc_npatches(), sbr_hf_gen(), and sbr_make_f_tablelim().

Definition at line 154 of file sbr.h.

Referenced by sbr_hf_calc_npatches(), and sbr_hf_gen().

QMF low frequency input to the HF generator.

Definition at line 156 of file sbr.h.

Referenced by ff_sbr_apply().

QMF output of the HF generator.

Definition at line 158 of file sbr.h.

Referenced by ff_sbr_apply().

Zeroth coefficient used to filter the subband signals.

Definition at line 162 of file sbr.h.

Referenced by ff_sbr_apply().

First coefficient used to filter the subband signals.

Definition at line 164 of file sbr.h.

Referenced by ff_sbr_apply().

Dequantized envelope scalefactors, remapped.

Definition at line 166 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_mapping().

Dequantized noise scalefactors, remapped.

Definition at line 168 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_mapping().

Sinusoidal presence, remapped.

Definition at line 170 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_mapping().

Estimated envelope.

Definition at line 172 of file sbr.h.

Referenced by ff_sbr_apply(), and sbr_gain_calc().

Amplitude adjusted noise scalefactors.

Definition at line 174 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_hf_assemble().

Sinusoidal levels.

Definition at line 176 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_hf_assemble().

Definition at line 177 of file sbr.h.

Referenced by sbr_gain_calc(), and sbr_hf_assemble().

Definition at line 179 of file sbr.h.

Referenced by ff_aac_sbr_ctx_close(), ff_aac_sbr_ctx_init(), and ff_sbr_apply().

Definition at line 180 of file sbr.h.

Referenced by ff_aac_sbr_ctx_close(), ff_aac_sbr_ctx_init(), and ff_sbr_apply().


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

Generated on Tue Apr 20 17:40:12 2010 for FFmpeg by  doxygen 1.5.6