Searched refs:nGain (Results 1 - 2 of 2) 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);
H A DEffectsMath.h365 * nGain - log scale value in millibels.
368 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
376 int16_t Effects_MillibelsToLinear16 (int32_t nGain);
390 * nGain - linear multiplier ranging form 0 to 32767 (corresponding to [0 1] gain range).
399 int16_t Effects_Linear16ToMillibels (int32_t nGain);

Completed in 826 milliseconds