Loading lib_dec/ivas_mono_dmx_renderer_fx.c +0 −19 Original line number Diff line number Diff line Loading @@ -320,26 +320,7 @@ void ivas_apply_non_diegetic_panning_fx( const Word16 output_frame /* i : output frame length per channel */ ) { #ifdef FIX_2570_BUF_OVFL Word16 pan; Word32 wrapped_angle; IF( LT_32( L_add( ONE_IN_Q25, non_diegetic_pan_gain_fx ), 0 ) ) { wrapped_angle = L_negate( L_add( ONE_IN_Q26, non_diegetic_pan_gain_fx ) ); } ELSE IF( GT_32( L_sub( non_diegetic_pan_gain_fx, ONE_IN_Q25 ), 0 ) ) { wrapped_angle = L_sub( ONE_IN_Q26, non_diegetic_pan_gain_fx ); } ELSE { wrapped_angle = non_diegetic_pan_gain_fx; move32(); } pan = add( extract_h( L_shr( wrapped_angle, sub( non_diegetic_pan_gain_fx, Q21 ) ) ), 32 ); #else Word16 pan = add( mult_r( non_diegetic_pan_gain_fx, 32 ), 32 ); // 0.5.Q15 = 16384 // Q15 #endif v_multc_fx_16( input_f_fx, cos_table_129[pan], output_fx[1], output_frame ); v_multc_fx_16( input_f_fx, cos_table_129[64 - pan], output_fx[0], output_frame ); Loading Loading
lib_dec/ivas_mono_dmx_renderer_fx.c +0 −19 Original line number Diff line number Diff line Loading @@ -320,26 +320,7 @@ void ivas_apply_non_diegetic_panning_fx( const Word16 output_frame /* i : output frame length per channel */ ) { #ifdef FIX_2570_BUF_OVFL Word16 pan; Word32 wrapped_angle; IF( LT_32( L_add( ONE_IN_Q25, non_diegetic_pan_gain_fx ), 0 ) ) { wrapped_angle = L_negate( L_add( ONE_IN_Q26, non_diegetic_pan_gain_fx ) ); } ELSE IF( GT_32( L_sub( non_diegetic_pan_gain_fx, ONE_IN_Q25 ), 0 ) ) { wrapped_angle = L_sub( ONE_IN_Q26, non_diegetic_pan_gain_fx ); } ELSE { wrapped_angle = non_diegetic_pan_gain_fx; move32(); } pan = add( extract_h( L_shr( wrapped_angle, sub( non_diegetic_pan_gain_fx, Q21 ) ) ), 32 ); #else Word16 pan = add( mult_r( non_diegetic_pan_gain_fx, 32 ), 32 ); // 0.5.Q15 = 16384 // Q15 #endif v_multc_fx_16( input_f_fx, cos_table_129[pan], output_fx[1], output_frame ); v_multc_fx_16( input_f_fx, cos_table_129[64 - pan], output_fx[0], output_frame ); Loading