Home
last modified time | relevance | path

Searched refs:target_gain (Results 1 - 2 of 2) sorted by relevance

/third_party/pulseaudio/speex/libspeexdsp/
H A Dpreprocess.c569 float target_gain; in speex_compute_agc() local
591 target_gain = AMP_SCALE*st->agc_level*pow(st->loudness/(1e-4+st->loudness_accum), -1.0f/LOUDNESS_EXP); in speex_compute_agc()
593 if ((Pframe>.5 && st->nb_adapt > 20) || target_gain < st->agc_gain) in speex_compute_agc()
595 if (target_gain > st->max_increase_step*st->agc_gain) in speex_compute_agc()
596 target_gain = st->max_increase_step*st->agc_gain; in speex_compute_agc()
597 if (target_gain < st->max_decrease_step*st->agc_gain && loudness < 10*st->prev_loudness) in speex_compute_agc()
598 target_gain = st->max_decrease_step*st->agc_gain; in speex_compute_agc()
599 if (target_gain > st->max_gain) in speex_compute_agc()
600 target_gain = st->max_gain; in speex_compute_agc()
601 if (target_gain > s in speex_compute_agc()
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_hdcd.c847 * bit 0-3: target_gain, 4-bit (3.1) fixed-point value
854 int running_gain; /**< 11-bit (3.8) fixed point, extended from target_gain */
865 /** target_gain is a 4-bit (3.1) fixed-point value, always
979 int val_target_gain; /**< last matching target_gain in both channels */
990 { "process_stereo", "Process stereo channels together. Only apply target_gain when both channels match.",
1207 static int hdcd_analyze(int32_t *samples, int count, int stride, int gain, int target_gain, int extend, int mode, int cdt_active, int tg_mismatch) in hdcd_analyze() argument
1225 if (gain <= target_gain) { in hdcd_analyze()
1226 int len = FFMIN(count, target_gain - gain); in hdcd_analyze()
1236 int len = FFMIN(count, (gain - target_gain) >> 3); in hdcd_analyze()
1244 if (gain - 8 < target_gain) in hdcd_analyze()
1267 hdcd_envelope(int32_t *samples, int count, int stride, int vbits, int gain, int target_gain, int extend) hdcd_envelope() argument
1336 hdcd_control(HDCDContext *ctx, hdcd_state *state, int *peak_extend, int *target_gain) hdcd_control() argument
1349 int target_gain[2]; hdcd_control_stereo() local
1370 int peak_extend, target_gain; hdcd_process() local
[all...]

Completed in 6 milliseconds