* Apply generic gain control. * * @param v_out output vector * @param v_in gain-controlled vector * @param v_ref vector to control gain of * * TIA/EIA/IS-733 2.4.8.3, 2.4.8.6 */
| 421 | * TIA/EIA/IS-733 2.4.8.3, 2.4.8.6 |
| 422 | */ |
| 423 | static void apply_gain_ctrl(float *v_out, const float *v_ref, |
| 424 | const float *v_in) |
| 425 | { |
| 426 | int i; |
| 427 | |
| 428 | for (i = 0; i < 160; i += 40) |
| 429 | ff_scale_vector_to_given_sum_of_squares(v_out + i, v_in + i, |
| 430 | ff_dot_productf(v_ref + i, |
| 431 | v_ref + i, 40), |
| 432 | 40); |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * Apply filter in pitch-subframe steps. |
no test coverage detected