mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/af_anequalizer: replace pow(x,-2) by 1/(x*x)
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
59ac7ce4da
commit
9f4c7b4df7
@ -391,8 +391,8 @@ static void chebyshev1_bp_filter(EqualizatorFilter *f,
|
||||
|
||||
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
|
||||
g0 = pow(G0,1.0/N);
|
||||
alfa = pow(1.0/epsilon + sqrt(1 + pow(epsilon,-2.0)), 1.0/N);
|
||||
beta = pow(G/epsilon + Gb * sqrt(1 + pow(epsilon,-2.0)), 1.0/N);
|
||||
alfa = pow(1.0/epsilon + sqrt(1 + 1/(epsilon*epsilon)), 1.0/N);
|
||||
beta = pow(G/epsilon + Gb * sqrt(1 + 1/(epsilon*epsilon)), 1.0/N);
|
||||
a = 0.5 * (alfa - 1.0/alfa);
|
||||
b = 0.5 * (beta - g0*g0*(1/beta));
|
||||
tetta_b = tan(wb/2);
|
||||
|
Loading…
Reference in New Issue
Block a user