Loading lib_debug/debug.c +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #endif #endif #endif #include "cnst.h" #include <sys/stat.h> #include <sys/types.h> #include <errno.h> Loading lib_debug/snr.c +20 −3 Original line number Diff line number Diff line Loading @@ -84,6 +84,23 @@ static float mem_synth_snr[MAX_INPUT_CHANNELS][M]; here we do not want to include prot.h due to its dependencies *--------------------------------------------------------------------*/ static void set_f( float y[], /* i/o: Vector to set */ const float a, /* i : Value to set the vector to */ const int16_t N /* i : Lenght of the vector */ ) { int16_t i; for ( i = 0; i < N; i++ ) { y[i] = a; } return; } static float sum2_f( const float *vec, /* i : input vector */ const int16_t lvec /* i : length of input vector */ Loading Loading @@ -379,7 +396,7 @@ void snr_celp( noise2 = sum2_f( &noise[i], L_subfr ) + 0.001f; if ( signal2 < noise2 ) signal2 = noise2; subframe_snr = 10.0f * (float) log10( signal2 / noise2 ); subframe_snr = 10.0f * log10f( signal2 / noise2 ); if ( L_frame == L_FRAME ) { Loading Loading
lib_debug/debug.c +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #endif #endif #endif #include "cnst.h" #include <sys/stat.h> #include <sys/types.h> #include <errno.h> Loading
lib_debug/snr.c +20 −3 Original line number Diff line number Diff line Loading @@ -84,6 +84,23 @@ static float mem_synth_snr[MAX_INPUT_CHANNELS][M]; here we do not want to include prot.h due to its dependencies *--------------------------------------------------------------------*/ static void set_f( float y[], /* i/o: Vector to set */ const float a, /* i : Value to set the vector to */ const int16_t N /* i : Lenght of the vector */ ) { int16_t i; for ( i = 0; i < N; i++ ) { y[i] = a; } return; } static float sum2_f( const float *vec, /* i : input vector */ const int16_t lvec /* i : length of input vector */ Loading Loading @@ -379,7 +396,7 @@ void snr_celp( noise2 = sum2_f( &noise[i], L_subfr ) + 0.001f; if ( signal2 < noise2 ) signal2 = noise2; subframe_snr = 10.0f * (float) log10( signal2 / noise2 ); subframe_snr = 10.0f * log10f( signal2 / noise2 ); if ( L_frame == L_FRAME ) { Loading