Home
last modified time | relevance | path

Searched refs:pitch_gain (Results 1 – 5 of 5) sorted by relevance

/third_party/ffmpeg/libavcodec/
Damrnbdec.c123 …float pitch_gain[5]; ///< quantified pitch gains for the current and previous … member
559 p->beta = FFMIN(p->pitch_gain[4], 1.0); in pitch_sharpening()
568 p->beta = av_clipf(p->pitch_gain[4], 0.0, SHARP_MAX); in pitch_sharpening()
635 p->pitch_gain[4] = qua_gain_pit [amr_subframe->p_gain ] in decode_gains()
651 p->pitch_gain[4] = gains[0] * (1.0 / 16384.0); in decode_gains()
725 if (p->pitch_gain[4] < 0.6) { in anti_sparseness()
727 } else if (p->pitch_gain[4] < 0.9) { in anti_sparseness()
742 if (p->pitch_gain[i] < 0.6) in anti_sparseness()
804 p->pitch_gain[4], fixed_gain, AMR_SUBFRAME_SIZE); in synthesis()
807 if (p->pitch_gain[4] > 0.5 && !overflow) { in synthesis()
[all …]
Dsipr.c393 float pitch_gain, gain_code, avg_energy; in decode_frame() local
419 ctx->past_pitch_gain = pitch_gain = gain_cb[params->gc_index[i]][0]; in decode_frame()
427 pitch_gain, gain_code, SUBFR_SIZE); in decode_frame()
429 pitch_gain *= 0.5 * pitch_gain; in decode_frame()
430 pitch_gain = FFMIN(pitch_gain, 0.4); in decode_frame()
432 ctx->gain_mem = 0.7 * ctx->gain_mem + 0.3 * pitch_gain; in decode_frame()
433 ctx->gain_mem = FFMIN(ctx->gain_mem, pitch_gain); in decode_frame()
Dqcelpdec.c69 float pitch_gain[4]; member
478 q->pitch_gain[i] = q->frame.plag[i] ? (q->frame.pgain[i] + 1) * 0.25 : 0.0; in apply_pitch_filters()
495 q->pitch_gain[i] = FFMIN(q->pitch_gain[i], max_pitch_gain); in apply_pitch_filters()
502 cdn_vector, q->pitch_gain, in apply_pitch_filters()
507 q->pitch_gain[i] = 0.5 * FFMIN(q->pitch_gain[i], 1.0); in apply_pitch_filters()
511 q->pitch_gain, q->pitch_lag, in apply_pitch_filters()
519 memset(q->pitch_gain, 0, sizeof(q->pitch_gain)); in apply_pitch_filters()
Damrwbdec.c69 …float pitch_gain[6]; ///< quantified pitch gains for the current and prev… member
564 float *fixed_gain_factor, float *pitch_gain) in decode_gains() argument
569 *pitch_gain = gains[0] * (1.0f / (1 << 14)); in decode_gains()
635 if (ctx->pitch_gain[0] < 0.6) { in anti_sparseness()
637 } else if (ctx->pitch_gain[0] < 0.9) { in anti_sparseness()
650 if (ctx->pitch_gain[i] < 0.6) in anti_sparseness()
775 ctx->pitch_gain[0], fixed_gain, AMRWB_SFR_SIZE); in synthesis()
778 if (ctx->pitch_gain[0] > 0.5 && ctx->fr_cur_mode <= MODE_8k85) { in synthesis()
785 float pitch_factor = 0.25 * ctx->pitch_gain[0] * ctx->pitch_gain[0]; in synthesis()
1083 memmove(&ctx->pitch_gain[1], &ctx->pitch_gain[0], 5 * sizeof(float)); in update_sub_state()
[all …]
Devrcdec.c477 float *excitation, float pitch_gain, in fcb_excitation() argument
487 pitch_gain = av_clipf(pitch_gain, 0.2, 0.9); in fcb_excitation()
490 excitation[i] += pitch_gain * excitation[i - pitch_lag]; in fcb_excitation()