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

1 2 3 4 5

  /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/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...]
  /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
eas_mixer.c 137 EAS_U16 gain; local
141 /* calculate the gain multiplier */
149 gain = 32767;
151 gain = (EAS_U16) temp;
154 gain = (EAS_U16) pEASData->masterGain;
156 gain = (EAS_U16) pEASData->masterGain;
159 /* Not using all the gain bits for now
164 gain = gain >> 5;
166 gain = gain >> 4
    [all...]
  /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...]
eas_mixer.c 137 EAS_U16 gain; local
141 /* calculate the gain multiplier */
149 gain = 32767;
151 gain = (EAS_U16) temp;
154 gain = (EAS_U16) pEASData->masterGain;
156 gain = (EAS_U16) pEASData->masterGain;
159 /* Not using all the gain bits for now
164 gain = gain >> 5;
166 gain = gain >> 4
    [all...]
eas_fmengine.h 56 /* LFO modulation to gain control */
67 EAS_U16 gain; /* current internal gain */ member in struct:__anon7271
68 EAS_U16 outputGain; /* current output gain */
78 EAS_U16 gainLeft; /* left gain multiplier */
79 EAS_U16 gainRight; /* right gain multiplier */
87 EAS_U16 gain[4]; /* initial operator gain value */ member in struct:__anon7273
88 EAS_U16 outputGain[4]; /* initial operator output gain value */
89 EAS_U16 voiceGain; /* initial voice gain */
99 EAS_U16 gain[4]; \/* new operator gain value *\/ member in struct:__anon7274
    [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...]
eas_mixer.c 137 EAS_U16 gain; local
141 /* calculate the gain multiplier */
149 gain = 32767;
151 gain = (EAS_U16) temp;
154 gain = (EAS_U16) pEASData->masterGain;
156 gain = (EAS_U16) pEASData->masterGain;
159 /* Not using all the gain bits for now
164 gain = gain >> 5;
166 gain = gain >> 4
    [all...]
eas_fmengine.h 56 /* LFO modulation to gain control */
67 EAS_U16 gain; /* current internal gain */ member in struct:__anon7221
68 EAS_U16 outputGain; /* current output gain */
78 EAS_U16 gainLeft; /* left gain multiplier */
79 EAS_U16 gainRight; /* right gain multiplier */
87 EAS_U16 gain[4]; /* initial operator gain value */ member in struct:__anon7223
88 EAS_U16 outputGain[4]; /* initial operator output gain value */
89 EAS_U16 voiceGain; /* initial voice gain */
99 EAS_U16 gain[4]; \/* new operator gain value *\/ member in struct:__anon7224
    [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...]
  /frameworks/base/media/libstagefright/codecs/amrwbenc/inc/
p_med_o.h 33 Word16 * gain, /* output: normalize correlation of hp_wsp for the Lag */

Completed in 331 milliseconds

1 2 3 4 5