Searched refs:relativePos (Results 1 – 1 of 1) sorted by relevance
184 int16_t resOut, relativePos, diff; /* */ in LinearResampler() local197 for( i = 1, j = 0, relativePos = 0; i < lenOut; i++ ) in LinearResampler()200 relativePos += resOut; in LinearResampler()201 while( relativePos > RESAMP_RES ) in LinearResampler()204 relativePos -= RESAMP_RES; in LinearResampler()215 out[ i ] = in[ j ] - (uint16_t)( ((int32_t)( udiff * relativePos )) >> RESAMP_RES_BIT); in LinearResampler()222 out[ i ] = in[ j ] + (uint16_t)( ((int32_t)( udiff * relativePos )) >> RESAMP_RES_BIT); in LinearResampler()227 out[i] = in[j] + (int16_t)(diff * relativePos >> RESAMP_RES_BIT); in LinearResampler()