Loading lib_com/options.h +1 −4 Original line number Diff line number Diff line Loading @@ -173,9 +173,6 @@ /* NTT switches */ #define NTT_REDUC_COMP_POC /* Contribution : Complexity reduction of phase spectrum in stereo downmix*/ #ifndef NTT_REDUC_COMP_POC #define NTT_USE_INV_SQRT_POC /*inv_sqrt() is used */ #endif /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ Loading lib_enc/ivas_stereo_dmx_evs.c +17 −23 Original line number Diff line number Diff line Loading @@ -387,11 +387,8 @@ static void calc_poc( Rr += ( specLr[i] * eps_cos + specLi[i] * eps_sin ); Ri += ( -specLr[i] * eps_sin + specLi[i] * eps_cos ); #ifdef NTT_USE_INV_SQRT_POC tmp1 = wnd[i * step + bias] * gamma * inv_sqrt( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) + EPS ); #else tmp1 = wnd[i * step + bias] * gamma / ( sqrtf( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) ) + EPS ); #endif specPOr[i] = ( Lr * Rr + Li * Ri ) * tmp1; specPOi[i] = ( Lr * Ri - Li * Rr ) * tmp1; Loading @@ -414,11 +411,8 @@ static void calc_poc( Rr += ( -specLr[i] * eps_cos + specLi[i] * eps_sin ); Ri += ( -specLr[i] * eps_sin - specLi[i] * eps_cos ); #ifdef NTT_USE_INV_SQRT_POC tmp1 = wnd[i * step + bias] * gamma * inv_sqrt( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) + EPS ); #else tmp1 = wnd[i * step + bias] * gamma / ( sqrtf( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) ) + EPS ); #endif specPOr[i] = ( Lr * Rr + Li * Ri ) * tmp1; specPOi[i] = ( Lr * Ri - Li * Rr ) * tmp1; gamma -= igamma; Loading Loading
lib_com/options.h +1 −4 Original line number Diff line number Diff line Loading @@ -173,9 +173,6 @@ /* NTT switches */ #define NTT_REDUC_COMP_POC /* Contribution : Complexity reduction of phase spectrum in stereo downmix*/ #ifndef NTT_REDUC_COMP_POC #define NTT_USE_INV_SQRT_POC /*inv_sqrt() is used */ #endif /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ Loading
lib_enc/ivas_stereo_dmx_evs.c +17 −23 Original line number Diff line number Diff line Loading @@ -387,11 +387,8 @@ static void calc_poc( Rr += ( specLr[i] * eps_cos + specLi[i] * eps_sin ); Ri += ( -specLr[i] * eps_sin + specLi[i] * eps_cos ); #ifdef NTT_USE_INV_SQRT_POC tmp1 = wnd[i * step + bias] * gamma * inv_sqrt( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) + EPS ); #else tmp1 = wnd[i * step + bias] * gamma / ( sqrtf( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) ) + EPS ); #endif specPOr[i] = ( Lr * Rr + Li * Ri ) * tmp1; specPOi[i] = ( Lr * Ri - Li * Rr ) * tmp1; Loading @@ -414,11 +411,8 @@ static void calc_poc( Rr += ( -specLr[i] * eps_cos + specLi[i] * eps_sin ); Ri += ( -specLr[i] * eps_sin - specLi[i] * eps_cos ); #ifdef NTT_USE_INV_SQRT_POC tmp1 = wnd[i * step + bias] * gamma * inv_sqrt( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) + EPS ); #else tmp1 = wnd[i * step + bias] * gamma / ( sqrtf( ( ( Lr * Lr + Li * Li ) ) * ( ( Rr * Rr + Ri * Ri ) ) ) + EPS ); #endif specPOr[i] = ( Lr * Rr + Li * Ri ) * tmp1; specPOi[i] = ( Lr * Ri - Li * Rr ) * tmp1; gamma -= igamma; Loading