Searched refs:WORD2INT (Results 1 – 3 of 3) sorted by relevance
51 #undef WORD2INT52 #define WORD2INT(x) (saturate_32bit_to_16bit(x)) macro124 #undef WORD2INT125 #define WORD2INT(x) (saturate_float_to_16bit(x)) macro
86 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) macro88 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) macro281 return WORD2INT(32768.*cutoff); in sinc()285 return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func)); in sinc()929 x[j+st->filt_len-1]=WORD2INT(in[j*istride_save]); in speex_resampler_process_float()948 out[j*ostride_save] = WORD2INT(ystack[j]); in speex_resampler_process_float()
92 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) macro94 #define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) macro984 out[i*C+chan] = WORD2INT(tmp_out); in speex_echo_cancellation()