/third_party/ffmpeg/libavcodec/ |
H A D | sipr16k.c | 190 float *excitation = ctx->excitation + 292; in ff_sipr_decode_frame_16k() local 228 ff_acelp_interpolatef(&excitation[i_subfr], in ff_sipr_decode_frame_16k() 229 &excitation[i_subfr] - pitch_delay_int + 1, in ff_sipr_decode_frame_16k() 251 ff_weighted_vector_sumf(&excitation[i_subfr], &excitation[i_subfr], in ff_sipr_decode_frame_16k() 256 &excitation[i_subfr], L_SUBFR_16k, in ff_sipr_decode_frame_16k() 263 memmove(ctx->excitation, ctx->excitation + 2 * L_SUBFR_16k, in ff_sipr_decode_frame_16k()
|
H A D | cngdec.c | 40 float *excitation; member 51 av_freep(&p->excitation); in cng_decode_close() 71 p->excitation = av_calloc(avctx->frame_size, sizeof(*p->excitation)); in cng_decode_init() 73 !p->filter_out || !p->excitation) { in cng_decode_init() 146 p->excitation[i] = scaling * r; in cng_decode_frame() 149 p->excitation, avctx->frame_size, p->order); in cng_decode_frame()
|
H A D | amrnbdec.c | 73 * the fixed vector contribution to the excitation vector. 117 float excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1 + AMR_SUBFRAME_SIZE]; ///< current excitation and all necessary excitation history 118 float *excitation; ///< pointer to the current excitation vector in excitation_buf member 185 // p->excitation always points to the same position in p->excitation_buf in amrnb_decode_init() 186 p->excitation = &p->excitation_buf[PITCH_DELAY_MAX + LP_FILTER_ORDER + 1]; in amrnb_decode_init() 425 /* Calculate the pitch vector by interpolating the past excitation at the in decode_pitch_vector() 427 p->acelpf_ctx.acelp_interpolatef(p->excitation, in decode_pitch_vector() 428 p->excitation in decode_pitch_vector() 805 float excitation[AMR_SUBFRAME_SIZE]; synthesis() local [all...] |
H A D | sipr.c | 372 float *excitation; in decode_frame() local 388 excitation = ctx->excitation + PITCH_DELAY_MAX + L_INTERPOL; in decode_frame() 402 ff_acelp_interpolatef(excitation, excitation - T0 + (T0_frac <= 0), in decode_frame() 427 ff_weighted_vector_sumf(excitation, excitation, fixed_vector, in decode_frame() 438 fixed_vector[j] = excitation[j] - gain_code * fixed_vector[j]; in decode_frame() 444 pAz, excitation, SUBFR_SIZE, in decode_frame() 451 excitation in decode_frame() [all...] |
H A D | wmavoice.c | 54 #define MAX_SIGNAL_HISTORY 416 ///< maximum excitation signal history 276 ///< zero filter output (i.e. excitation) 792 * - A zero-synthesis filter (generate excitation from synth signal) 793 * - Kalman smoothing on excitation, based on pitch 819 /* generate excitation from input signal */ in postfilter() 1280 float *excitation) in synth_block_hardcoded() 1299 /* Apply gain to hardcoded codebook and use that as excitation signal */ in synth_block_hardcoded() 1301 excitation[n] = wmavoice_std_codebook[r_idx + n] * gain; in synth_block_hardcoded() 1312 float *excitation) in synth_block_fcb_acb() 1340 excitation[ in synth_block_fcb_acb() 1277 synth_block_hardcoded(WMAVoiceContext *s, GetBitContext *gb, int block_idx, int size, const struct frame_type_desc *frame_desc, float *excitation) synth_block_hardcoded() argument 1308 synth_block_fcb_acb(WMAVoiceContext *s, GetBitContext *gb, int block_idx, int size, int block_pitch_sh2, const struct frame_type_desc *frame_desc, float *excitation) synth_block_fcb_acb() argument 1442 synth_block(WMAVoiceContext *s, GetBitContext *gb, int block_idx, int size, int block_pitch_sh2, const double *lsps, const double *prev_lsps, const struct frame_type_desc *frame_desc, float *excitation, float *synth) synth_block() argument 1484 synth_frame(AVCodecContext *ctx, GetBitContext *gb, int frame_idx, float *samples, const double *lsps, const double *prev_lsps, float *excitation, float *synth) synth_frame() argument 1720 float excitation[MAX_SIGNAL_HISTORY + MAX_SFRAMESIZE + 12]; synth_superframe() local [all...] |
H A D | g723_1dec.c | 96 * Size of the MP-MLQ fixed excitation codebooks 274 * Generate fixed codebook excitation vector. 276 * @param vector decoded excitation vector 343 * @param offset offset of the excitation vector 425 * @param offset offset of the excitation vector 511 * @param exc_eng excitation energy estimation 524 *scale = ff_g723_1_scale_vector(buf, p->excitation, FRAME_LEN + PITCH_MAX); in comp_interp_index() 555 * @param buf decoded excitation vector 847 PITCH_MAX * sizeof(*p->excitation)); in generate_noise() 923 /* Save the excitation fo in generate_noise() [all...] |
H A D | amrwbdec.c | 63 float excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 2 + AMRWB_SFR_SIZE]; ///< current excitation and all necessary excitation history 64 float *excitation; ///< points to current excitation in excitation_buf[] member 88 AVLFG prng; ///< random number generator for white noise excitation 124 ctx->excitation = &ctx->excitation_buf[AMRWB_P_DELAY_MAX + LP_ORDER + 1]; in amrwb_decode_init() 322 * Find the pitch vector by interpolating the past excitation at the 335 float *exc = ctx->excitation; in decode_pitch_vector() 348 /* Calculate the pitch vector by interpolating the past excitation at the in decode_pitch_vector() 498 * @param[out] fixed_vector Buffer for the fixed codebook excitation 781 synthesis(AMRWBContext *ctx, float *lpc, float *excitation, float fixed_gain, const float *fixed_vector, float *samples) synthesis() argument [all...] |
H A D | opus_silk.c | 425 int32_t excitation[320]; // Q23 in silk_decode_excitation() local 427 /* excitation parameters */ in silk_decode_excitation() 446 int32_t * location = excitation + 16*i; in silk_decode_excitation() 465 memset(excitation + 16*i, 0, 16*sizeof(int32_t)); in silk_decode_excitation() 472 excitation[i] = (excitation[i] << 1) | in silk_decode_excitation() 478 if (excitation[i] != 0) { in silk_decode_excitation() 482 excitation[i] *= -1; in silk_decode_excitation() 486 /* assemble the excitation */ in silk_decode_excitation() 488 int value = excitation[ in silk_decode_excitation() [all...] |
H A D | dss_sp.c | 55 int32_t excitation[288 + 6]; member 674 p->excitation[i] = p->excitation[288 + i]; in dss_sp_update_state() 677 p->excitation[6 + i] = dst[i]; in dss_sp_update_state() 683 tmp += p->excitation[offset--] * dss_sp_sinc[a + i * 11]; in dss_sp_update_state() 695 } while (offset < FF_ARRAY_ELEMS(p->excitation)); in dss_sp_update_state()
|
H A D | opusenc_psy.c | 149 if (bp_e > ex->excitation) { in step_collect_psy_metrics() 150 st->change_amp[ch][i] = bp_e - ex->excitation; in step_collect_psy_metrics() 152 ex->excitation = ex->excitation_init = bp_e; in step_collect_psy_metrics() 155 if (ex->excitation > 0.0f) { in step_collect_psy_metrics() 156 ex->excitation -= av_clipf((1/expf(ex->excitation_dist)), ex->excitation_init/20, ex->excitation_init/1.09); in step_collect_psy_metrics() 157 ex->excitation = FFMAX(ex->excitation, 0.0f); in step_collect_psy_metrics()
|
H A D | evrcdec.c | 402 * Adaptive codebook excitation. 406 static void acb_excitation(EVRCContext *e, float *excitation, float gain, in acb_excitation() argument 419 bl_intrp(e, excitation + i, locdelay); in acb_excitation() 426 bl_intrp(e, excitation + i, locdelay); in acb_excitation() 430 excitation[i] *= gain; in acb_excitation() 474 * Reconstruction of ACELP fixed codebook excitation for full and half rate. 479 float *excitation, float pitch_gain, in fcb_excitation() 485 decode_8_pulses_35bits(codebook, excitation); in fcb_excitation() 487 decode_3_pulses_10bits(*codebook, excitation); in fcb_excitation() 492 excitation[ in fcb_excitation() 478 fcb_excitation(EVRCContext *e, const uint16_t *codebook, float *excitation, float pitch_gain, int pitch_lag, int subframe_size) fcb_excitation() argument [all...] |
H A D | sipr.h | 40 /** Number of past samples needed for excitation interpolation */ 73 float excitation[L_INTERPOL + PITCH_MAX + 2 * L_SUBFR_16k]; member
|
H A D | opusenc_psy.h | 46 float excitation; member
|
H A D | g723_1.h | 108 * Optimized fixed codebook excitation parameters 131 int16_t excitation[PITCH_MAX + FRAME_LEN + 4]; member 183 * Get delayed contribution from the previous excitation vector. 195 * Generate adaptive codebook excitation. 258 * Number of non-zero pulses in the MP-MLQ excitation
|