HomeSort by relevance Sort by last modified time
    Searched refs:gain (Results 1 - 25 of 167) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
d_gain_p.cpp 64 Word16 gain -- (Q14)
76 Purpose : Decodes the pitch gain using the received index.
176 Word16 d_gain_pitch( /* return value: gain (Q14) */
181 Word16 gain; local
183 gain = qua_gain_pitch[index];
188 gain &= 0xFFFC;
191 return gain;
  /frameworks/base/media/libstagefright/codecs/amrwbenc/src/
g_pitch.c 20 * Description:Compute the gain of pitch. Result in Q12 *
21 * if(gain < 0) gain = 0 *
22 * if(gain > 1.2) gain = 1.2 *
29 Word16 G_pitch( /* (o) Q14 : Gain of pitch lag saturated to 1.2 */
32 Word16 g_coeff[], /* : Correlations need for gain quantization. */
37 Word16 xy, yy, exp_xy, exp_yy, gain; local
56 /* If (xy < 0) gain = 0 */
60 /* compute gain = xy/yy *
    [all...]
updt_tar.c 31 Word16 gain, /* (i) Q14 : adaptive codebook gain */
41 L_tmp -= (y[i] * gain)<<1;
gpclip.c 20 * Description:To avoid unstable synthesis on frame erasure, the gain *
21 * need to be limited(gain pitch < 1.0) when the following *
38 Word16 mem[] /* (o) : memory of gain of pitch clipping algorithm */
47 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */
60 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */
90 Word16 gain_pit, /* (i) Q14 : gain of quantized pitch */
91 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */
94 Word16 gain; local
99 gain = extract_h(L_tmp);
101 if(gain < GAIN_PIT_MIN
    [all...]
  /external/webkit/Source/WebCore/platform/audio/
Cone.cpp 45 double ConeEffect::gain(FloatPoint3D sourcePosition, FloatPoint3D sourceOrientation, FloatPoint3D listenerPosition) function in class:WebCore::ConeEffect
48 return 1.0; // no cone specified - unity gain
65 double gain = 1.0; local
69 gain = 1.0;
72 gain = m_outerGain;
77 gain = (1.0 - x) + m_outerGain * x;
80 return gain;
AudioBus.cpp 234 // We don't want to suddenly change the gain from mixing one time slice to the next,
235 // so we "de-zipper" by slowly changing the gain each sample-frame until we've achieved the target gain.
238 // FIXME: Need fast path here when gain has converged on targetGain. In this case, de-zippering is no longer needed.
241 // Take master bus gain into account as well as the targetGain.
245 double gain = m_isFirstTime ? totalDesiredGain : *lastMixGain; local
268 *destinationL++ += static_cast<float>(gain * sampleL);
269 *destinationR++ += static_cast<float>(gain * sampleR);
271 // Slowly change gain to desired gain
    [all...]
  /external/webkit/Source/WebCore/webaudio/
AudioGainNode.idl 31 readonly attribute AudioGain gain;
AudioBuffer.h 59 // Scalar gain
60 double gain() const { return m_gain; } function in class:WebCore::AudioBuffer
61 void setGain(double gain) { m_gain = gain; }
72 double m_gain; // scalar gain
AudioBuffer.idl 37 attribute float gain; // linear gain (default 1.0)
  /external/qemu/distrib/sdl-1.2.12/src/events/
SDL_active.c 52 int SDL_PrivateAppActive(Uint8 gain, Uint8 state)
58 if ( gain ) {
78 event.active.gain = gain;
87 if ( (state & SDL_APPINPUTFOCUS) && !gain ) {
  /cts/apps/CtsVerifier/jni/audioquality/
GenerateSinusoid.cpp 57 float gain = (0.5 - (0.5 * cos((0.5 + i) * M_PI / numRamp))); local
58 val *= gain;
61 float gain = (0.5 - (0.5 * cos((0.5 + (numSamples - i - 1)) local
63 val *= gain;
  /frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
q_gain_c.h 111 * Scalar quantization of the innovative codebook gain. *
117 Word16 exp_gcode0, /* i : predicted CB gain (exponent), Q0 */
118 Word16 frac_gcode0, /* i : predicted CB gain (fraction), Q15 */
119 Word16 *gain, /* i/o: quantized fixed codebook gain, Q1 */
q_gain_p.h 109 Word16 gp_limit, /* i : pitch gain limit */
110 Word16 *gain, /* i/o: Pitch gain (unquant/quant), Q14 */
111 Word16 gain_cand[], /* o : pitch gain candidates (3), MR795 only, Q14 */
112 Word16 gain_cind[], /* o : pitch gain cand. indices (3),MR795 only, Q0 */
q_gain_p.cpp 115 gp_limit -- Word16 -- pitch gain limit
116 gain -- Pointer to Word16 -- Pitch gain (unquant/quant), Q14
119 gain -- Pointer to Word16 -- Pitch gain (unquant/quant), Q14
121 gain_cand -- Array of type Word16 -- pitch gain candidates (3),
124 gain_cind -- Array of type Word16 -- pitch gain cand. indices (3),
181 Word16 gp_limit, /* i : pitch gain limit */
182 Word16 *gain, /* i/o: Pitch gain (unquant/quant), Q14 *
    [all...]
q_gain_c.cpp 64 Scalar quantization of the innovative codebook gain.
126 exp_gcode0 -- Word16 -- predicted CB gain (exponent), Q0
127 frac_gcode0 -- Word16 -- predicted CB gain (fraction), Q15
128 gain -- Pointer to Word16 -- quantized fixed codebook gain, Q1
131 gain -- Pointer to Word16 -- quantized fixed codebook gain, Q1
152 Scalar quantization of the innovative codebook gain.
193 Word16 exp_gcode0, /* i : predicted CB gain (exponent), Q0 */
194 Word16 frac_gcode0, /* i : predicted CB gain (fraction), Q15 *
    [all...]
g_code.cpp 107 pOverflow -> 1 if the innovative gain calculation resulted in overflow
110 gain = Gain of Innovation code (Word16)
121 This function computes the innovative codebook gain.
123 The innovative codebook gain is given by
142 Word16 G_code ( // out : Gain of innovation code
148 Word16 xy, yy, exp_xy, exp_yy, gain;
173 // If (xy < 0) gain = 0
188 // compute gain = xy/yy
191 gain = div_s (xy, yy)
236 Word16 xy, yy, exp_xy, exp_yy, gain; local
    [all...]
g_pitch.cpp 118 g_coeff = pointer to buffer of correlations needed for gain quantization
128 gain = ratio of dot products.(Word16)
139 This function computes the pitch (adaptive codebook) gain. The adaptive
140 codebook gain is given by
148 The gain is limited to the range [0,1.2] (=0..19661 Q14)
163 Word16 G_pitch ( // o : Gain of pitch lag saturated to 1.2
167 Word16 g_coeff[], // i : Correlations need for gain quantization
172 Word16 xy, yy, exp_xy, exp_yy, gain;
244 // If (xy < 4) gain = 0
251 // compute gain = xy/y
313 Word16 gain; local
    [all...]
  /system/media/mca/filterfw/native/core/
statistics.h 50 explicit RCFilter(float gain)
51 : gain_(gain), n_(0), value_(0.0f) {}
  /external/sonivox/arm-wt-22k/lib_src/
eas_dlssynth.c 182 * Calculate the gain for the next frame
185 static EAS_I32 DLS_UpdateGain (S_WT_VOICE *pWTVoice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity)
201 gain += FMUL_15x15(temp, pWTVoice->modLFO.lfoValue);
202 if (gain > 0)
203 gain = 0;
205 /* convert to linear gain including EG1 */
208 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT;
211 gain += (pWTVoice->eg1Value - 32767) >> 1;
212 gain = EAS_LogToLinear16(gain)
    [all...]
eas_wt_IPC_frame.h 74 EAS_I16 gainLeft; /* left channel gain */
75 EAS_I16 gainRight; /* right channel gain */
78 EAS_I16 gain; /* current voice gain */ member in struct:s_wt_config_tag
  /external/sonivox/arm-hybrid-22k/lib_src/
eas_wt_IPC_frame.h 74 EAS_I16 gainLeft; /* left channel gain */
75 EAS_I16 gainRight; /* right channel gain */
78 EAS_I16 gain; /* current voice gain */ member in struct:s_wt_config_tag
eas_fmengine.c 195 * Assign the left and right gain values corresponding to the given pan value.
283 EAS_I32 gain; local
291 /* establish local gain variable */
292 gain = (EAS_I32) p->gain << 16;
294 /* calculate gain increment */
296 gainInc = ((EAS_I32) gainTarget - (EAS_I32) p->gain) << (16 - SYNTH_UPDATE_PERIOD_IN_BITS);
337 /* internal gain for modulation effects */
338 temp = FMUL_15x15(temp, (gain >> 16));
340 /* output gain calculation *
393 EAS_I32 gain; local
    [all...]
  /frameworks/base/media/libstagefright/codecs/aacenc/inc/
quantize.h 40 Word16 gain);
  /external/sonivox/arm-fm-22k/lib_src/
eas_fmengine.c 195 * Assign the left and right gain values corresponding to the given pan value.
283 EAS_I32 gain; local
291 /* establish local gain variable */
292 gain = (EAS_I32) p->gain << 16;
294 /* calculate gain increment */
296 gainInc = ((EAS_I32) gainTarget - (EAS_I32) p->gain) << (16 - SYNTH_UPDATE_PERIOD_IN_BITS);
337 /* internal gain for modulation effects */
338 temp = FMUL_15x15(temp, (gain >> 16));
340 /* output gain calculation *
393 EAS_I32 gain; local
    [all...]
  /frameworks/base/media/libstagefright/codecs/aacenc/src/
quantize.c 53 * quaSpectrum = mdctSpectrum^3/4*2^(-(3/16)*gain)
56 static Word16 quantizeSingleLine(const Word16 gain, const Word32 absSpectrum)
67 /* calculate the final fractional exponent times 16 (was 3*(4*e + gain) + (INT_BITS-1)*16) */
68 minusFinalExp = (e << 2) + gain;
99 * quaSpectrum = mdctSpectrum^3/4*2^(-(3/16)*gain)
100 * input: global gain, number of lines to process, spectral data
104 static void quantizeLines(const Word16 gain,
110 Word32 m = gain&3;
111 Word32 g = (gain >> 2) + 4;
114 /* gain&3 *
    [all...]

Completed in 265 milliseconds

1 2 3 4 5 6 7