FFmpeg
Loading...
Searching...
No Matches
AMRWBContext Struct Reference

Data Fields

AMRWBFrame frame
 AMRWB parameters decoded from bitstream.
 
enum Mode fr_cur_mode
 mode index of current frame
 
uint8_t fr_quality
 frame quality index (FQI)
 
float isf_cur [LP_ORDER]
 working ISF vector from current frame
 
float isf_q_past [LP_ORDER]
 quantized ISF vector of the previous frame
 
float isf_past_final [LP_ORDER]
 final processed ISF vector of the previous frame
 
double isp [4][LP_ORDER]
 ISP vectors from current frame.
 
double isp_sub4_past [LP_ORDER]
 ISP vector for the 4th subframe of the previous frame.
 
float lp_coef [4][LP_ORDER]
 Linear Prediction Coefficients from ISP vector.
 
uint8_t base_pitch_lag
 integer part of pitch lag for the next relative subframe
 
uint8_t pitch_lag_int
 integer part of pitch lag of the previous subframe
 
float excitation_buf [AMRWB_P_DELAY_MAX+LP_ORDER+2+AMRWB_SFR_SIZE]
 current excitation and all necessary excitation history
 
float * excitation
 points to current excitation in excitation_buf[]
 
float pitch_vector [AMRWB_SFR_SIZE]
 adaptive codebook (pitch) vector for current subframe
 
float fixed_vector [AMRWB_SFR_SIZE]
 algebraic codebook (fixed) vector for current subframe
 
float prediction_error [4]
 quantified prediction errors {20log10(^gamma_gc)} for previous four subframes
 
float pitch_gain [6]
 quantified pitch gains for the current and previous five subframes
 
float fixed_gain [2]
 quantified fixed gains for the current and previous subframes
 
float tilt_coef
 {beta_1} related to the voicing of the previous subframe
 
float prev_sparse_fixed_gain
 previous fixed gain; used by anti-sparseness to determine "onset"
 
uint8_t prev_ir_filter_nr
 previous impulse response filter "impNr": 0 - strong, 1 - medium, 2 - none
 
float prev_tr_gain
 previous initial gain used by noise enhancer for threshold
 
float samples_az [LP_ORDER+AMRWB_SFR_SIZE]
 low-band samples and memory from synthesis at 12.8kHz
 
float samples_up [UPS_MEM_SIZE+AMRWB_SFR_SIZE]
 low-band samples and memory processed for upsampling
 
float samples_hb [LP_ORDER_16k+AMRWB_SFR_SIZE_16k]
 high-band samples and memory from synthesis at 16kHz
 
float hpf_31_mem [2]
 
float hpf_400_mem [2]
 previous values in the high pass filters
 
float demph_mem [1]
 previous value in the de-emphasis filter
 
float bpf_6_7_mem [HB_FIR_SIZE]
 previous values in the high-band band pass filter
 
float lpf_7_mem [HB_FIR_SIZE]
 previous values in the high-band low pass filter
 
AVLFG prng
 random number generator for white noise excitation
 
uint8_t first_frame
 flag active during decoding of the first frame
 
ACELPFContext acelpf_ctx
 context for filters for ACELP-based codecs
 
ACELPVContext acelpv_ctx
 context for vector operations for ACELP-based codecs
 
CELPFContext celpf_ctx
 context for filters for CELP-based codecs
 
CELPMContext celpm_ctx
 context for fixed point math operations
 
int dtx_state
 current DTX state (SPEECH, DTX or DTX_MUTE)
 
int since_last_sid
 frames since the last SID update
 
float sid_period_inv
 inverse of the SID update period
 
float cn_log_en
 comfort noise log2 energy of the last SID
 
float cn_log_en_old
 comfort noise log2 energy before the last SID
 
float cn_isf [LP_ORDER]
 comfort noise ISF vector of the last SID
 
float cn_isf_old [LP_ORDER]
 comfort noise ISF vector before the last SID
 
int16_t cn_seed
 comfort noise generator seed
 
int16_t cn_dither_seed
 comfort noise dithering seed
 
int cn_dith
 comfort noise dithering flag from the last SID
 
float isf_hist [DTX_HIST_SIZE][LP_ORDER]
 ISF history used when a SID frame starts DTX.
 
float log_en_hist [DTX_HIST_SIZE]
 energy history used when a SID frame starts DTX
 
int hist_ptr
 next position to write in the DTX history
 
int hangover_count
 remaining DTX hangover frames
 
int dec_ana_elapsed
 frames since the last DTX hangover
 
int hangover_added
 a DTX hangover was assumed for this frame
 
int sid_frame
 the current frame carries CN parameters
 
int valid_data
 the CN parameters of this frame may be used
 
int data_updated
 CN parameters have been renewed at least once.
 
int vad_hist
 consecutive frames without voice activity
 
AVClass * av_class
 
void * state
 
int mode
 
int last_bitrate
 
int allow_dtx
 

Detailed Description

Definition at line 82 of file amrwbdec.c.

Field Documentation

◆ frame

AMRWBFrame AMRWBContext::frame

AMRWB parameters decoded from bitstream.

Definition at line 83 of file amrwbdec.c.

◆ fr_cur_mode

enum Mode AMRWBContext::fr_cur_mode

mode index of current frame

Definition at line 84 of file amrwbdec.c.

◆ fr_quality

uint8_t AMRWBContext::fr_quality

frame quality index (FQI)

Definition at line 85 of file amrwbdec.c.

◆ isf_cur

float AMRWBContext::isf_cur[LP_ORDER]

working ISF vector from current frame

Definition at line 86 of file amrwbdec.c.

◆ isf_q_past

float AMRWBContext::isf_q_past[LP_ORDER]

quantized ISF vector of the previous frame

Definition at line 87 of file amrwbdec.c.

◆ isf_past_final

float AMRWBContext::isf_past_final[LP_ORDER]

final processed ISF vector of the previous frame

Definition at line 88 of file amrwbdec.c.

◆ isp

double AMRWBContext::isp[4][LP_ORDER]

ISP vectors from current frame.

Definition at line 89 of file amrwbdec.c.

◆ isp_sub4_past

double AMRWBContext::isp_sub4_past[LP_ORDER]

ISP vector for the 4th subframe of the previous frame.

Definition at line 90 of file amrwbdec.c.

◆ lp_coef

float AMRWBContext::lp_coef[4][LP_ORDER]

Linear Prediction Coefficients from ISP vector.

Definition at line 92 of file amrwbdec.c.

◆ base_pitch_lag

uint8_t AMRWBContext::base_pitch_lag

integer part of pitch lag for the next relative subframe

Definition at line 94 of file amrwbdec.c.

◆ pitch_lag_int

uint8_t AMRWBContext::pitch_lag_int

integer part of pitch lag of the previous subframe

Definition at line 95 of file amrwbdec.c.

◆ excitation_buf

float AMRWBContext::excitation_buf[AMRWB_P_DELAY_MAX+LP_ORDER+2+AMRWB_SFR_SIZE]

current excitation and all necessary excitation history

Definition at line 97 of file amrwbdec.c.

◆ excitation

float* AMRWBContext::excitation

points to current excitation in excitation_buf[]

Definition at line 98 of file amrwbdec.c.

◆ pitch_vector

float AMRWBContext::pitch_vector[AMRWB_SFR_SIZE]

adaptive codebook (pitch) vector for current subframe

Definition at line 100 of file amrwbdec.c.

◆ fixed_vector

float AMRWBContext::fixed_vector[AMRWB_SFR_SIZE]

algebraic codebook (fixed) vector for current subframe

Definition at line 101 of file amrwbdec.c.

◆ prediction_error

float AMRWBContext::prediction_error[4]

quantified prediction errors {20log10(^gamma_gc)} for previous four subframes

Definition at line 103 of file amrwbdec.c.

◆ pitch_gain

float AMRWBContext::pitch_gain[6]

quantified pitch gains for the current and previous five subframes

Definition at line 104 of file amrwbdec.c.

◆ fixed_gain

float AMRWBContext::fixed_gain[2]

quantified fixed gains for the current and previous subframes

Definition at line 105 of file amrwbdec.c.

◆ tilt_coef

float AMRWBContext::tilt_coef

{beta_1} related to the voicing of the previous subframe

Definition at line 107 of file amrwbdec.c.

◆ prev_sparse_fixed_gain

float AMRWBContext::prev_sparse_fixed_gain

previous fixed gain; used by anti-sparseness to determine "onset"

Definition at line 109 of file amrwbdec.c.

◆ prev_ir_filter_nr

uint8_t AMRWBContext::prev_ir_filter_nr

previous impulse response filter "impNr": 0 - strong, 1 - medium, 2 - none

Definition at line 110 of file amrwbdec.c.

◆ prev_tr_gain

float AMRWBContext::prev_tr_gain

previous initial gain used by noise enhancer for threshold

Definition at line 111 of file amrwbdec.c.

◆ samples_az

float AMRWBContext::samples_az[LP_ORDER+AMRWB_SFR_SIZE]

low-band samples and memory from synthesis at 12.8kHz

Definition at line 113 of file amrwbdec.c.

◆ samples_up

float AMRWBContext::samples_up[UPS_MEM_SIZE+AMRWB_SFR_SIZE]

low-band samples and memory processed for upsampling

Definition at line 114 of file amrwbdec.c.

◆ samples_hb

float AMRWBContext::samples_hb[LP_ORDER_16k+AMRWB_SFR_SIZE_16k]

high-band samples and memory from synthesis at 16kHz

Definition at line 115 of file amrwbdec.c.

◆ hpf_31_mem

float AMRWBContext::hpf_31_mem[2]

Definition at line 117 of file amrwbdec.c.

◆ hpf_400_mem

float AMRWBContext::hpf_400_mem[2]

previous values in the high pass filters

Definition at line 117 of file amrwbdec.c.

◆ demph_mem

float AMRWBContext::demph_mem[1]

previous value in the de-emphasis filter

Definition at line 118 of file amrwbdec.c.

◆ bpf_6_7_mem

float AMRWBContext::bpf_6_7_mem[HB_FIR_SIZE]

previous values in the high-band band pass filter

Definition at line 119 of file amrwbdec.c.

◆ lpf_7_mem

float AMRWBContext::lpf_7_mem[HB_FIR_SIZE]

previous values in the high-band low pass filter

Definition at line 120 of file amrwbdec.c.

◆ prng

AVLFG AMRWBContext::prng

random number generator for white noise excitation

Definition at line 122 of file amrwbdec.c.

◆ first_frame

uint8_t AMRWBContext::first_frame

flag active during decoding of the first frame

Definition at line 123 of file amrwbdec.c.

◆ acelpf_ctx

ACELPFContext AMRWBContext::acelpf_ctx

context for filters for ACELP-based codecs

Definition at line 124 of file amrwbdec.c.

◆ acelpv_ctx

ACELPVContext AMRWBContext::acelpv_ctx

context for vector operations for ACELP-based codecs

Definition at line 125 of file amrwbdec.c.

◆ celpf_ctx

CELPFContext AMRWBContext::celpf_ctx

context for filters for CELP-based codecs

Definition at line 126 of file amrwbdec.c.

◆ celpm_ctx

CELPMContext AMRWBContext::celpm_ctx

context for fixed point math operations

Definition at line 127 of file amrwbdec.c.

◆ dtx_state

int AMRWBContext::dtx_state

current DTX state (SPEECH, DTX or DTX_MUTE)

Definition at line 130 of file amrwbdec.c.

◆ since_last_sid

int AMRWBContext::since_last_sid

frames since the last SID update

Definition at line 131 of file amrwbdec.c.

◆ sid_period_inv

float AMRWBContext::sid_period_inv

inverse of the SID update period

Definition at line 132 of file amrwbdec.c.

◆ cn_log_en

float AMRWBContext::cn_log_en

comfort noise log2 energy of the last SID

Definition at line 133 of file amrwbdec.c.

◆ cn_log_en_old

float AMRWBContext::cn_log_en_old

comfort noise log2 energy before the last SID

Definition at line 134 of file amrwbdec.c.

◆ cn_isf

float AMRWBContext::cn_isf[LP_ORDER]

comfort noise ISF vector of the last SID

Definition at line 135 of file amrwbdec.c.

◆ cn_isf_old

float AMRWBContext::cn_isf_old[LP_ORDER]

comfort noise ISF vector before the last SID

Definition at line 136 of file amrwbdec.c.

◆ cn_seed

int16_t AMRWBContext::cn_seed

comfort noise generator seed

Definition at line 137 of file amrwbdec.c.

◆ cn_dither_seed

int16_t AMRWBContext::cn_dither_seed

comfort noise dithering seed

Definition at line 138 of file amrwbdec.c.

◆ cn_dith

int AMRWBContext::cn_dith

comfort noise dithering flag from the last SID

Definition at line 139 of file amrwbdec.c.

◆ isf_hist

float AMRWBContext::isf_hist[DTX_HIST_SIZE][LP_ORDER]

ISF history used when a SID frame starts DTX.

Definition at line 140 of file amrwbdec.c.

◆ log_en_hist

float AMRWBContext::log_en_hist[DTX_HIST_SIZE]

energy history used when a SID frame starts DTX

Definition at line 141 of file amrwbdec.c.

◆ hist_ptr

int AMRWBContext::hist_ptr

next position to write in the DTX history

Definition at line 142 of file amrwbdec.c.

◆ hangover_count

int AMRWBContext::hangover_count

remaining DTX hangover frames

Definition at line 143 of file amrwbdec.c.

◆ dec_ana_elapsed

int AMRWBContext::dec_ana_elapsed

frames since the last DTX hangover

Definition at line 144 of file amrwbdec.c.

◆ hangover_added

int AMRWBContext::hangover_added

a DTX hangover was assumed for this frame

Definition at line 145 of file amrwbdec.c.

◆ sid_frame

int AMRWBContext::sid_frame

the current frame carries CN parameters

Definition at line 146 of file amrwbdec.c.

◆ valid_data

int AMRWBContext::valid_data

the CN parameters of this frame may be used

Definition at line 147 of file amrwbdec.c.

◆ data_updated

int AMRWBContext::data_updated

CN parameters have been renewed at least once.

Definition at line 148 of file amrwbdec.c.

◆ vad_hist

int AMRWBContext::vad_hist

consecutive frames without voice activity

Definition at line 149 of file amrwbdec.c.

◆ av_class

AVClass* AMRWBContext::av_class

Definition at line 36 of file libvo-amrwbenc.c.

◆ state

void* AMRWBContext::state

Definition at line 37 of file libvo-amrwbenc.c.

◆ mode

int AMRWBContext::mode

Definition at line 38 of file libvo-amrwbenc.c.

◆ last_bitrate

int AMRWBContext::last_bitrate

Definition at line 39 of file libvo-amrwbenc.c.

◆ allow_dtx

int AMRWBContext::allow_dtx

Definition at line 40 of file libvo-amrwbenc.c.


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