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

/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_gain_p.cpp64 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;
H A Dagc.cpp607 st->past_gain = gain
625 sig_out[n] = sig_out[n] * gain[n]
626 gain[n] = agc_fac * gain[n-1] + (1 - agc_fac) g_in/g_out
628 where: gain[n] = gain at the nth sample given by
654 Word16 gain_in, gain_out, g0, gain;
696 // compute gain[n] = agc_fac * gain[n-1]
698 // sig_out[n] = gain[
753 Word16 gain; local
[all...]
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
H A Dupdt_tar.c31 Word16 gain, /* (i) Q14 : adaptive codebook gain */
41 L_tmp -= (y[i] * gain)<<1;
27 Updt_tar( Word16 * x, Word16 * x2, Word16 * y, Word16 gain, Word16 L ) argument
H A Dg_pitch.c20 * Description:Compute the gain of pitch. Result in Q12 *
21 * if(gain < 0) gain = 0 *
22 * if(gain > 1.2) gain = 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 */
63 gain
[all...]
H A Dgpclip.c20 * 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_MI
[all...]
H A Dp_med_ol.c47 Word16 *gain = &(st->ol_gain); /* normalize correlation of hp_wsp for the lag */ local
120 /* gain = R0/ sqrt(R1*R2) */
147 *gain = vo_round(L_shl(R0, exp_R0));
H A Ddtx.c167 Word16 log_en, gain, level, exp, exp0, tmp; local
238 /* the result corresponds to log2(gain) in Q10 */
247 /* Subtract 2 from log_en in Q9, i.e divide the gain by 2 (energy by 4) */
263 /* gain = level / sqrt(ener) * sqrt(L_FRAME) */
270 gain = extract_h(ener32);
272 gain = mult(level, gain); /* gain in Q15 */
281 tmp = mult(exc2[i], gain); /* Q0 * Q15 */
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
H A Dg_code.cpp107 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
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);
197 gain = shl (shr (gain,
236 Word16 xy, yy, exp_xy, exp_yy, gain; local
[all...]
H A Dq_gain_c.cpp64 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 (fractio
191 q_gain_code( enum Mode mode, Word16 exp_gcode0, Word16 frac_gcode0, Word16 *gain, Word16 *qua_ener_MR122, Word16 *qua_ener, Flag *pOverflow ) argument
[all...]
H A Dq_gain_p.cpp115 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 (unquan
179 q_gain_pitch( enum Mode mode, Word16 gp_limit, Word16 *gain, Word16 gain_cand[], Word16 gain_cind[], Flag *pOverflow ) argument
[all...]
H A Dg_pitch.cpp118 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)
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/yy
254 gain
313 Word16 gain; local
[all...]
/frameworks/base/media/libeffects/testlibs/
H A DAudioEqualizer.h30 // shelf, where each band has frequency and gain controls, and the peaking
37 int32_t gain; member in struct:android::AudioEqualizer::BandConfig
93 // gain: 0
105 // Sets gain value. Actual change will only take place upon commit().
107 // band The band to set the gain for.
111 // Gets gain of a certain band. This is always the last value set (or
113 // band The band to get the gain for.
149 // For the peaking filters, they are the gain[dB]/2 points.
/frameworks/base/services/audioflinger/
H A DAudioHardwareGeneric.h85 virtual status_t setGain(float gain) { return INVALID_OPERATION; } argument
H A DAudioHardwareStub.h54 virtual status_t setGain(float gain) { return NO_ERROR; } argument
H A DAudioDumpInterface.cpp509 status_t AudioStreamInDump::setGain(float gain) argument
511 if (mFinalStream != 0 ) return mFinalStream->setGain(gain);
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dquantize.c53 * quaSpectrum = mdctSpectrum^3/4*2^(-(3/16)*gain)
56 static Word16 quantizeSingleLine(const Word16 gain, const Word32 absSpectrum) argument
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, argument
110 Word32 m = gain&3;
111 Word32 g = (gain >> 2) + 4;
114 /* gain
228 iquantizeLines(const Word16 gain, const Word16 noOfLines, const Word16 *quantSpectrum, Word32 *mdctSpectrum) argument
327 calcSfbDist(const Word32 *spec, Word16 sfbWidth, Word16 gain) argument
[all...]
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Ddtx_decoder_amr_wb.cpp208 int16 gain; local
375 /* L_log_en_int corresponds to log2(E)+2 in Q24, i.e log2(gain)+1 in Q25 */
385 /* Subtract 2 from L_log_en_int in Q9, i.e divide the gain by 2 (energy by 4) */
403 /* gain = level / sqrt(ener) * sqrt(L_FRAME) */
410 gain = extract_h(ener32);
412 gain = mult_int16(level, gain); /* gain in Q15 */
421 tmp = mult_int16(exc2[i], gain); /* Q0 * Q15 */

Completed in 585 milliseconds