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

Data Fields

AMRNBFrame frame
 decoded AMR parameters (lsf coefficients, codebook indexes, etc)
 
uint8_t bad_frame_indicator
 bad frame ? 1 : 0
 
enum Mode cur_frame_mode
 
int16_t prev_lsf_r [LP_FILTER_ORDER]
 residual LSF vector from previous subframe
 
double lsp [4][LP_FILTER_ORDER]
 lsp vectors from current frame
 
double prev_lsp_sub4 [LP_FILTER_ORDER]
 lsp vector for the 4th subframe of the previous frame
 
float lsf_q [4][LP_FILTER_ORDER]
 Interpolated LSF vector for fixed gain smoothing.
 
float lsf_avg [LP_FILTER_ORDER]
 vector of averaged lsf vector
 
float lpc [4][LP_FILTER_ORDER]
 lpc coefficient vectors for 4 subframes
 
uint8_t pitch_lag_int
 integer part of pitch lag from current subframe
 
float excitation_buf [PITCH_DELAY_MAX+LP_FILTER_ORDER+1+AMR_SUBFRAME_SIZE]
 current excitation and all necessary excitation history
 
float * excitation
 pointer to the current excitation vector in excitation_buf
 
float pitch_vector [AMR_SUBFRAME_SIZE]
 adaptive code book (pitch) vector
 
float fixed_vector [AMR_SUBFRAME_SIZE]
 algebraic codebook (fixed) vector (must be kept zero between frames)
 
float prediction_error [4]
 quantified prediction errors {20log10(^gamma_gc)} for previous four subframes
 
float pitch_gain [5]
 quantified pitch gains for the current and previous four subframes
 
float fixed_gain [5]
 quantified fixed gains for the current and previous four subframes
 
float beta
 previous pitch_gain, bounded by [0.0,SHARP_MAX]
 
uint8_t diff_count
 the number of subframes for which diff has been above 0.65
 
uint8_t hang_count
 the number of subframes since a hangover period started
 
float prev_sparse_fixed_gain
 previous fixed gain; used by anti-sparseness processing to determine "onset"
 
uint8_t prev_ir_filter_nr
 previous impulse response filter "impNr": 0 - strong, 1 - medium, 2 - none
 
uint8_t ir_filter_onset
 flag for impulse response filter strength
 
float postfilter_mem [10]
 previous intermediate values in the formant filter
 
float tilt_mem
 previous input to tilt compensation filter
 
float postfilter_agc
 previous factor used for adaptive gain control
 
float high_pass_mem [2]
 previous intermediate values in the high-pass filter
 
float samples_in [LP_FILTER_ORDER+AMR_SUBFRAME_SIZE]
 floating point samples
 
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_lsp [LP_FILTER_ORDER]
 comfort noise LSP vector of the last SID
 
float cn_lsp_old [LP_FILTER_ORDER]
 comfort noise LSP vector before the last SID
 
uint32_t cn_seed
 comfort noise generator shift register
 
float lsf_hist [DTX_HIST_SIZE][LP_FILTER_ORDER]
 LSF history used when a SID frame starts DTX.
 
float lsf_hist_mean [DTX_HIST_SIZE][LP_FILTER_ORDER]
 deviation from the mean of the LSF history
 
float log_en_hist [DTX_HIST_SIZE]
 energy history used when a SID frame starts DTX
 
int lsf_hist_ptr
 next position to write in the LSF history
 
int log_en_hist_ptr
 next position to write in the energy history
 
float log_en_adjust
 speech mode dependent level adjustment
 
float log_pg_mean
 smoothed logarithm of the prediction gain
 
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 prev_bf
 the previous frame could not be used
 
int bfh_state
 bad frame handling state (0..6)
 
uint32_t no_data_seed
 pseudo-random source for lost frames
 
float ec_gain_pbuf [5]
 
float ec_gain_past_pit
 
float ec_gain_prev_pit
 
float ec_gain_gbuf [5]
 
float ec_gain_past_code
 
float ec_gain_prev_code
 
FFRawDemuxerContext rawctx
 

Detailed Description

Definition at line 139 of file amrnbdec.c.

Field Documentation

◆ frame

AMRNBFrame AMRContext::frame

decoded AMR parameters (lsf coefficients, codebook indexes, etc)

Definition at line 140 of file amrnbdec.c.

◆ bad_frame_indicator

uint8_t AMRContext::bad_frame_indicator

bad frame ? 1 : 0

Definition at line 141 of file amrnbdec.c.

◆ cur_frame_mode

enum Mode AMRContext::cur_frame_mode

Definition at line 142 of file amrnbdec.c.

◆ prev_lsf_r

int16_t AMRContext::prev_lsf_r[LP_FILTER_ORDER]

residual LSF vector from previous subframe

Definition at line 144 of file amrnbdec.c.

◆ lsp

double AMRContext::lsp[4][LP_FILTER_ORDER]

lsp vectors from current frame

Definition at line 145 of file amrnbdec.c.

◆ prev_lsp_sub4

double AMRContext::prev_lsp_sub4[LP_FILTER_ORDER]

lsp vector for the 4th subframe of the previous frame

Definition at line 146 of file amrnbdec.c.

◆ lsf_q

float AMRContext::lsf_q[4][LP_FILTER_ORDER]

Interpolated LSF vector for fixed gain smoothing.

Definition at line 148 of file amrnbdec.c.

◆ lsf_avg

float AMRContext::lsf_avg[LP_FILTER_ORDER]

vector of averaged lsf vector

Definition at line 149 of file amrnbdec.c.

◆ lpc

float AMRContext::lpc[4][LP_FILTER_ORDER]

lpc coefficient vectors for 4 subframes

Definition at line 151 of file amrnbdec.c.

◆ pitch_lag_int

uint8_t AMRContext::pitch_lag_int

integer part of pitch lag from current subframe

Definition at line 153 of file amrnbdec.c.

◆ excitation_buf

float AMRContext::excitation_buf[PITCH_DELAY_MAX+LP_FILTER_ORDER+1+AMR_SUBFRAME_SIZE]

current excitation and all necessary excitation history

Definition at line 155 of file amrnbdec.c.

◆ excitation

float* AMRContext::excitation

pointer to the current excitation vector in excitation_buf

Definition at line 156 of file amrnbdec.c.

◆ pitch_vector

float AMRContext::pitch_vector[AMR_SUBFRAME_SIZE]

adaptive code book (pitch) vector

Definition at line 158 of file amrnbdec.c.

◆ fixed_vector

float AMRContext::fixed_vector[AMR_SUBFRAME_SIZE]

algebraic codebook (fixed) vector (must be kept zero between frames)

Definition at line 159 of file amrnbdec.c.

◆ prediction_error

float AMRContext::prediction_error[4]

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

Definition at line 161 of file amrnbdec.c.

◆ pitch_gain

float AMRContext::pitch_gain[5]

quantified pitch gains for the current and previous four subframes

Definition at line 162 of file amrnbdec.c.

◆ fixed_gain

float AMRContext::fixed_gain[5]

quantified fixed gains for the current and previous four subframes

Definition at line 163 of file amrnbdec.c.

◆ beta

float AMRContext::beta

previous pitch_gain, bounded by [0.0,SHARP_MAX]

Definition at line 165 of file amrnbdec.c.

◆ diff_count

uint8_t AMRContext::diff_count

the number of subframes for which diff has been above 0.65

Definition at line 166 of file amrnbdec.c.

◆ hang_count

uint8_t AMRContext::hang_count

the number of subframes since a hangover period started

Definition at line 167 of file amrnbdec.c.

◆ prev_sparse_fixed_gain

float AMRContext::prev_sparse_fixed_gain

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

Definition at line 169 of file amrnbdec.c.

◆ prev_ir_filter_nr

uint8_t AMRContext::prev_ir_filter_nr

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

Definition at line 170 of file amrnbdec.c.

◆ ir_filter_onset

uint8_t AMRContext::ir_filter_onset

flag for impulse response filter strength

Definition at line 171 of file amrnbdec.c.

◆ postfilter_mem

float AMRContext::postfilter_mem[10]

previous intermediate values in the formant filter

Definition at line 173 of file amrnbdec.c.

◆ tilt_mem

float AMRContext::tilt_mem

previous input to tilt compensation filter

Definition at line 174 of file amrnbdec.c.

◆ postfilter_agc

float AMRContext::postfilter_agc

previous factor used for adaptive gain control

Definition at line 175 of file amrnbdec.c.

◆ high_pass_mem

float AMRContext::high_pass_mem[2]

previous intermediate values in the high-pass filter

Definition at line 176 of file amrnbdec.c.

◆ samples_in

float AMRContext::samples_in[LP_FILTER_ORDER+AMR_SUBFRAME_SIZE]

floating point samples

Definition at line 178 of file amrnbdec.c.

◆ acelpf_ctx

ACELPFContext AMRContext::acelpf_ctx

context for filters for ACELP-based codecs

Definition at line 180 of file amrnbdec.c.

◆ acelpv_ctx

ACELPVContext AMRContext::acelpv_ctx

context for vector operations for ACELP-based codecs

Definition at line 181 of file amrnbdec.c.

◆ celpf_ctx

CELPFContext AMRContext::celpf_ctx

context for filters for CELP-based codecs

Definition at line 182 of file amrnbdec.c.

◆ celpm_ctx

CELPMContext AMRContext::celpm_ctx

context for fixed point math operations

Definition at line 183 of file amrnbdec.c.

◆ dtx_state

int AMRContext::dtx_state

current DTX state (SPEECH, DTX or DTX_MUTE)

Definition at line 186 of file amrnbdec.c.

◆ since_last_sid

int AMRContext::since_last_sid

frames since the last SID update

Definition at line 187 of file amrnbdec.c.

◆ sid_period_inv

float AMRContext::sid_period_inv

inverse of the SID update period

Definition at line 188 of file amrnbdec.c.

◆ cn_log_en

float AMRContext::cn_log_en

comfort noise log2 energy of the last SID

Definition at line 189 of file amrnbdec.c.

◆ cn_log_en_old

float AMRContext::cn_log_en_old

comfort noise log2 energy before the last SID

Definition at line 190 of file amrnbdec.c.

◆ cn_lsp

float AMRContext::cn_lsp[LP_FILTER_ORDER]

comfort noise LSP vector of the last SID

Definition at line 191 of file amrnbdec.c.

◆ cn_lsp_old

float AMRContext::cn_lsp_old[LP_FILTER_ORDER]

comfort noise LSP vector before the last SID

Definition at line 192 of file amrnbdec.c.

◆ cn_seed

uint32_t AMRContext::cn_seed

comfort noise generator shift register

Definition at line 193 of file amrnbdec.c.

◆ lsf_hist

float AMRContext::lsf_hist[DTX_HIST_SIZE][LP_FILTER_ORDER]

LSF history used when a SID frame starts DTX.

Definition at line 194 of file amrnbdec.c.

◆ lsf_hist_mean

float AMRContext::lsf_hist_mean[DTX_HIST_SIZE][LP_FILTER_ORDER]

deviation from the mean of the LSF history

Definition at line 195 of file amrnbdec.c.

◆ log_en_hist

float AMRContext::log_en_hist[DTX_HIST_SIZE]

energy history used when a SID frame starts DTX

Definition at line 196 of file amrnbdec.c.

◆ lsf_hist_ptr

int AMRContext::lsf_hist_ptr

next position to write in the LSF history

Definition at line 197 of file amrnbdec.c.

◆ log_en_hist_ptr

int AMRContext::log_en_hist_ptr

next position to write in the energy history

Definition at line 198 of file amrnbdec.c.

◆ log_en_adjust

float AMRContext::log_en_adjust

speech mode dependent level adjustment

Definition at line 199 of file amrnbdec.c.

◆ log_pg_mean

float AMRContext::log_pg_mean

smoothed logarithm of the prediction gain

Definition at line 200 of file amrnbdec.c.

◆ hangover_count

int AMRContext::hangover_count

remaining DTX hangover frames

Definition at line 201 of file amrnbdec.c.

◆ dec_ana_elapsed

int AMRContext::dec_ana_elapsed

frames since the last DTX hangover

Definition at line 202 of file amrnbdec.c.

◆ hangover_added

int AMRContext::hangover_added

a DTX hangover was assumed for this frame

Definition at line 203 of file amrnbdec.c.

◆ sid_frame

int AMRContext::sid_frame

the current frame carries CN parameters

Definition at line 204 of file amrnbdec.c.

◆ valid_data

int AMRContext::valid_data

the CN parameters of this frame may be used

Definition at line 205 of file amrnbdec.c.

◆ data_updated

int AMRContext::data_updated

CN parameters have been renewed at least once.

Definition at line 206 of file amrnbdec.c.

◆ prev_bf

int AMRContext::prev_bf

the previous frame could not be used

Definition at line 207 of file amrnbdec.c.

◆ bfh_state

int AMRContext::bfh_state

bad frame handling state (0..6)

Definition at line 210 of file amrnbdec.c.

◆ no_data_seed

uint32_t AMRContext::no_data_seed

pseudo-random source for lost frames

Definition at line 211 of file amrnbdec.c.

◆ ec_gain_pbuf

float AMRContext::ec_gain_pbuf[5]

Definition at line 212 of file amrnbdec.c.

◆ ec_gain_past_pit

float AMRContext::ec_gain_past_pit

Definition at line 212 of file amrnbdec.c.

◆ ec_gain_prev_pit

float AMRContext::ec_gain_prev_pit

Definition at line 212 of file amrnbdec.c.

◆ ec_gain_gbuf

float AMRContext::ec_gain_gbuf[5]

Definition at line 213 of file amrnbdec.c.

◆ ec_gain_past_code

float AMRContext::ec_gain_past_code

Definition at line 213 of file amrnbdec.c.

◆ ec_gain_prev_code

float AMRContext::ec_gain_prev_code

Definition at line 213 of file amrnbdec.c.

◆ rawctx

FFRawDemuxerContext AMRContext::rawctx

Definition at line 40 of file amr.c.


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