HomeSort by relevance Sort by last modified time
    Searched full:ngain (Results 1 - 19 of 19) sorted by null

  /frameworks/av/media/libeffects/testlibs/
EffectsMath.c 94 int16_t Effects_MillibelsToLinear16 (int32_t nGain)
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)
107 return (int16_t)(((MB_TO_LIN_K2*Effects_log2(nGain))>>15)-MB_TO_LIN_K1);
EffectsMath.h 365 * 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);
  /external/sonivox/arm-hybrid-22k/lib_src/
ARM-E_mastergain_gnu.s 12 @ nGain,
30 @ short nGain
65 nGain .req r2
77 SMULWB r4, r4, nGain @output = gain * input
84 SMULWB r5, r5, nGain @output = gain * input
eas_math.c 107 * nGain - log scale value in 20.10 format. Even though gain is normally
112 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
118 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain)
124 nGain += 32767;
127 if (nGain < 0)
131 nExp = 31 - (nGain >> 10);
138 nTemp = (EAS_U16)((((nGain & 0x3ff) << 4) | 0x4000) >> nExp);
eas_fmengine.c 739 EAS_I32 nGain;
745 nGain = (EAS_I32) p->voiceGain << 16;
761 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_GAIN_SHIFT;
774 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_MONO_GAIN_SHIFT;
779 nGain += nGainInc;
eas_math.h 351 * nGain - log scale value in 20.10 format. Even though gain is normally
356 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
362 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain);
eas_mixer.h 43 extern void SynthMasterGain( long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 nNumLoopSamples);
eas_mixer.c 266 void SynthMasterGain (long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 numSamples) {
280 s *= (long) nGain;
  /external/sonivox/arm-wt-22k/lib_src/
ARM-E_mastergain_gnu.s 12 @ nGain,
30 @ short nGain
65 nGain .req r2
77 SMULWB r4, r4, nGain @output = gain * input
84 SMULWB r5, r5, nGain @output = gain * input
eas_math.c 107 * nGain - log scale value in 20.10 format. Even though gain is normally
112 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
118 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain)
124 nGain += 32767;
127 if (nGain < 0)
131 nExp = 31 - (nGain >> 10);
138 nTemp = (EAS_U16)((((nGain & 0x3ff) << 4) | 0x4000) >> nExp);
eas_math.h 351 * nGain - log scale value in 20.10 format. Even though gain is normally
356 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
362 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain);
eas_mixer.h 43 extern void SynthMasterGain( long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 nNumLoopSamples);
eas_mixer.c 266 void SynthMasterGain (long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 numSamples) {
280 s *= (long) nGain;
  /external/sonivox/arm-fm-22k/lib_src/
eas_math.c 107 * nGain - log scale value in 20.10 format. Even though gain is normally
112 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
118 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain)
124 nGain += 32767;
127 if (nGain < 0)
131 nExp = 31 - (nGain >> 10);
138 nTemp = (EAS_U16)((((nGain & 0x3ff) << 4) | 0x4000) >> nExp);
eas_fmengine.c 739 EAS_I32 nGain;
745 nGain = (EAS_I32) p->voiceGain << 16;
761 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_GAIN_SHIFT;
774 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_MONO_GAIN_SHIFT;
779 nGain += nGainInc;
eas_math.h 351 * nGain - log scale value in 20.10 format. Even though gain is normally
356 * Returns a 16-bit linear value approximately equal to 2^(nGain/1024)
362 EAS_U16 EAS_LogToLinear16 (EAS_I32 nGain);
eas_mixer.h 43 extern void SynthMasterGain( long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 nNumLoopSamples);
eas_mixer.c 266 void SynthMasterGain (long *pInputBuffer, EAS_PCM *pOutputBuffer, EAS_U16 nGain, EAS_U16 numSamples) {
280 s *= (long) nGain;
  /external/speex/libspeex/
filters.c 676 spx_word16_t ngain; local
807 ngain = PDIV32_16(SHL32(EXTEND32(old_ener),14),new_ener);
810 new_exc[i] = MULT16_16_Q14(ngain, new_exc[i]);

Completed in 290 milliseconds