Searched defs:nGain (Results 1 - 1 of 1) sorted by relevance

/frameworks/av/media/libeffects/testlibs/
H A DEffectsMath.c94 int16_t Effects_MillibelsToLinear16 (int32_t nGain) argument
96 nGain = ((nGain + MB_TO_LIN_K1) << 15 ) / MB_TO_LIN_K2;
97 uint32_t exp2 = Effects_exp2(nGain);
105 int16_t Effects_Linear16ToMillibels (int32_t nGain) argument
107 return (int16_t)(((MB_TO_LIN_K2*Effects_log2(nGain))>>15)-MB_TO_LIN_K1);

Completed in 49 milliseconds