/external/aac/libSBRenc/src/ |
env_est.cpp | 109 \brief Calculates energy form real and imaginary part of 152 Calculate energy of each time slot pair, max energy 166 FIXP_DBL energy; local 172 /* Scale QMF Values and Calc Energy of both timeslots */ 175 energy = fPow2AddDiv2(fPow2Div2(tr0), ti0) >> 1; 179 energy += fPow2AddDiv2(fPow2Div2(tr1), ti1) >> 1; 181 /* Write timeslot pair energy to scratch */ 182 *nrgValues++ = energy; 183 max_val = fixMax(max_val, energy); 257 FIXP_DBL energy; local [all...] |
tran_det.cpp | 138 /* init with some energy to prevent division by zero 153 /* Energy change in current band */ 176 \brief Calculates total lowband energy 180 \return total energy in the lowband 196 /* Sum up lowband energy from one frame at offset tran_off */ 228 \return total energy in the highband 315 Get Lowband-energy over a range of 2 frames (Look half a frame back and ahead). 367 * Calculate transient energy threshold for each QMF band 405 /* calculate mean value over decimated energy values (downsampled by 2). */ 488 startEnerg = (tran_off-3)>>YBufferSzShift; /* >>YBufferSzShift because of amount of energy values. -3 because of neighbors being watched. * [all...] |
tran_det.h | 100 FIXP_DBL prevLowBandEnergy; /* Energy of low band */ 101 FIXP_DBL prevHighBandEnergy; /* Energy of high band */ 108 int tran_off; /* Offset for reading energy values. */
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
calc_en.h | 49 Purpose : calculation of energy coefficients for quantizers 106 * PURPOSE: calculation of several energy coefficients for unfiltered 109 * frac_en[0]*2^exp_en[0] = <res res> // LP residual energy 110 * frac_en[1]*2^exp_en[1] = <exc exc> // LTP residual energy 112 * frac_en[3]*2^exp_en[3] = <lres lres> // LTP residual energy 124 Word16 frac_en[], /* o : energy coefficients (3), fraction part, Q15 */ 125 Word16 exp_en[], /* o : energy coefficients (3), exponent part, Q0 */ 133 * PURPOSE: calculation of several energy coefficients for filtered 161 Word16 frac_coeff[],/* o : energy coefficients (5), fraction part, Q15 */ 162 Word16 exp_coeff[], /* o : energy coefficients (5), exponent part, Q0 * [all...] |
qgain475.h | 148 Word16 sf0_exp_coeff[], /* i : energy coeff. (5), exponent part, Q0 */ 149 Word16 sf0_frac_coeff[], /* i : energy coeff. (5), fraction part, Q15 */ 152 Word16 sf0_exp_target_en, /* i : exponent of target energy, Q0 */ 153 Word16 sf0_frac_target_en, /* i : fraction of target energy, Q15 */ 160 Word16 sf1_exp_coeff[], /* i : energy coeff. (5), exponent part, Q0 */ 161 Word16 sf1_frac_coeff[], /* i : energy coeff. (5), fraction part, Q15 */ 164 Word16 sf1_exp_target_en, /* i : exponent of target energy, Q0 */ 165 Word16 sf1_frac_target_en, /* i : fraction of target energy, Q15 */
|
qgain795.cpp | 138 exp_coeff[] -- Word16 array -- energy coefficients (5), Q0 146 qua_ener_MR122 -- Pointer to Word16 -- quantized energy error, Q10 149 qua_ener -- Pointer to Word16 -- quantized energy error, Q10 212 Word16 exp_coeff[], /* i : energy coefficients (5), Q0 */ 218 Word16 *qua_ener_MR122, /* o : quantized energy error, Q10 */ 220 Word16 *qua_ener, /* o : quantized energy error, Q10 */ 247 * The error energy (sum) to be minimized consists of five terms, t[0..4]. 401 frac_en[] -- Word16 array -- energy coefficients (4), fraction part, Q15 402 exp_en[] -- Word16 array -- energy coefficients (4), exponent part, Q0 411 qua_ener_MR122 -- Pointer to Word16 -- quantized energy error, Q1 [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
dtx.c | 53 /* excitation energy adjustment depending on speech coder mode used, Q7 */ 118 /* Reset energy history */ 179 /* average energy and isf */ 194 /* quantize logarithmic energy to 6 bits (-6 : 66 dB) which corresponds to -2:22 in log2(E). */ 206 /* Quantize Energy */ 247 /* Subtract 2 from log_en in Q9, i.e divide the gain by 2 (energy by 4) */ 265 /* energy of generated excitation */ 296 Word32 enr, /* i : residual energy (in L_FRAME) */ 319 /* Find energy per sample by multiplying with 0.0059322, i.e subtract log2(1/0.0059322) = 7.39722 The 325 /* Find energy per sample (divide by L_FRAME=256), i.e subtract log2(256) = 8.0 (1024 in Q7) * [all...] |
pitch_f4.c | 158 * square root of energy of target and filtered excitation). * 184 /* Compute rounded down 1/sqrt(energy of xn[]) */ 197 //exp = exp + 2; /* energy of xn[] x 2 + rounded up */ 198 scale = -(exp >> 1); /* (1<<scale) < 1/sqrt(energy rounded) */ 234 /* Normalize correlation = correlation * (1/sqrt(energy)) */
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
psy_data.h | 56 SFB_ENERGY sfbEnergy; /* sfb Energy */
|
/external/aac/libAACenc/src/ |
block_switch.h | 99 #define BLOCK_SWITCH_WINDOWS 8 /* number of windows for energy calculation */ 114 UINT nBlockSwitchWindows; /* number of windows for energy calculation */ 123 FIXP_DBL maxWindowNrg; /* max energy in subwindows */ 125 FIXP_DBL windowNrg[2][BLOCK_SWITCH_WINDOWS]; /* time signal energy in Subwindows (last and current) */ 126 FIXP_DBL windowNrgF[2][BLOCK_SWITCH_WINDOWS]; /* filtered time signal energy in segments (last and current) */
|
quantize.cpp | 343 description: calculates energy and distortion of quantized values 347 output: energy, distortion 361 FIXP_DBL energy = FL2FXCONST_DBL(0.0f); local 375 /* energy */ 376 energy += fPow2(invQuantSpec); 392 *en = CalcLdData(energy)+FL2FXCONST_DBL(0.03125f);
|
/external/speex/libspeex/ |
ltp.c | 185 spx_word32_t *energy; local 191 energy = corr; 194 VARDECL(spx_word32_t *energy); 197 ALLOC(energy, end-start+2, spx_word32_t); 200 ener16 = energy; 230 energy[0]=inner_prod(sw-start, sw-start, len); 234 /* Update energy for next pitch*/ 235 energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(sw[-i-1],sw[-i-1]),6)), SHR32(MULT16_16(sw[-i+len-1],sw[-i+len-1]),6)); 236 if (energy[i-start+1] < 0 [all...] |
vbr.c | 104 -Attacks (positive energy derivative) should be coded with more bits 108 -Segments with (very) low absolute energy should receive less bits (maybe 111 -DTX for near-zero energy? 115 -Temporal masking: when energy slope is decreasing, decrease the bit-rate 184 /* Checking for very low absolute energy */ 213 /* Checking for energy increases */
|
ltp_bfin.h | 164 VARDECL(spx_word32_t *energy); 169 ALLOC(energy, end-start+2, spx_word32_t); 178 energy[0]=inner_prod(sw-start, sw-start, len); 181 /* energy update -------------------------------------*/ 202 : : "d" (energy), "d" (&sw[-start-1]), "d" (&sw[-start+len-1]), 220 normalize16(energy, ener16, 180, end-start+1); 228 " I1 = %2;\n\t" /* I1: energy */ 231 " R3 = 0;\n\t" /* R3: best energy */ 259 /* Instead of dividing the tmp by the energy, we multiply on the other side */ 295 g = DIV32(corr[i-start], 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(energy[i-start])),6)) [all...] |
/external/aac/libSBRdec/src/ |
env_calc.cpp | 94 frame if necessary. Each set of energy values corresponding to a certain range 99 In addition to the energy envelopes, noise envelopes are transmitted that 100 define the ratio of energy which is generated by adding noise instead of 298 FIXP_DBL* nrgEst = nrgs->nrgEst; /*!< subband energy before amplification */ 299 SCHAR* nrgEst_e = nrgs->nrgEst_e; /*!< subband energy before amplification (exponents) */ 336 FIXP_DBL nrgOrig = FL2FXCONST_DBL(0.0f); /* Original signal energy in current group of bands */ 338 FIXP_DBL nrgAmp = FL2FXCONST_DBL(0.0f); /* Amplified signal energy in group (using current gains) */ 340 FIXP_DBL nrgMod = FL2FXCONST_DBL(0.0f); /* Signal energy in group when applying modified gains */ 342 FIXP_DBL groupGain; /* Total energy gain in group */ 344 FIXP_DBL compensation; /* Compensation factor for the energy change when applying modified gains * [all...] |
env_dec.cpp | 133 #define DECAY_COUPLING 1 /*!< If the energy data is not shifted, use 1 instead of 0.5 */ 173 low frequency resolution, the energy value will be mapped to the 176 static void mapLowResEnergyVal(FIXP_SGL currVal, /*!< current energy value */ 217 \brief Convert raw envelope and noisefloor data to energy levels 237 /* Save previous energy values to be able to reuse them later for concealment. */ 254 energy levels are not the same as if the left channel had been concealed 257 /* Restore previous energy values for concealment, because the values have been 487 The stored energy levels need to be converted. 584 #define lowerLimit ((FIXP_SGL)0) /* lowerLimit actually refers to the _highest_ noise energy */ 585 #define upperLimit ((FIXP_SGL)35) /* upperLimit actually refers to the _lowest_ noise energy */ [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
gc_pred.cpp | 67 /* average innovation energy. */ 71 /* minimum quantized energy: -14 dB */ 209 exp_en = pointer to the exponent part of the innovation energy; this 211 frac_en = pointer to the fractional part of the innovation energy; 221 recently calculated innovation energy 223 recently calculated innovation energy 240 This function performs the MA prediction of the innovation energy (in 267 Word16 *exp_en, // o : exponent of innovation energy, Q0 269 Word16 *frac_en // o : fraction of innovation energy, Q15 278 * energy of code: [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
AutoFixFilter.java | 125 " float energy = dot(color.rgb, weights);\n" + 126 " float mask_value = energy - 0.5;\n" + 133 " float index = energy * hist_scale + hist_offset;\n" + 139 " float dst_energy = energy * alpha + value * (1.0 - alpha);\n" + 140 " float max_energy = energy / max(color.r, max(color.g, color.b));\n" + 144 " if (energy == 0.0) {\n" + 147 " gl_FragColor = vec4(color.rgb * dst_energy / energy, color.a);\n" + 285 int energy = (data[index] & 0xFF) + ((data[index] >> 8) & 0xFF) + local 287 histArray[energy] ++;
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/ |
gc_pred.h | 125 * PURPOSE: MA prediction of the innovation energy 135 Word16 *exp_en, /* o : exponent of innovation energy, Q0 */ 137 Word16 *frac_en, /* o : fraction of innovation energy, Q15 */ 144 * PURPOSE: update MA predictor with last quantized energy 148 Word16 qua_ener_MR122, /* i : quantized energy for update, Q10 */ 150 Word16 qua_ener /* i : quantized energy for update, Q10 */ 161 Word16 *ener_avg_MR122, /* o: averaged quantized energy, Q10 */ 163 Word16 *ener_avg, /* o: averaged quantized energy, Q10 */
|
/frameworks/base/docs/html/training/efficient-downloads/ |
connectivity_patterns.jd | 38 <p>When connected over a wireless radio, higher bandwidth generally comes at the price of higher battery cost. Meaning that LTE typically consumes more energy than 3G, which is in turn more expensive than 2G.</p> 44 <p>For example, if an LTE radio is has double the bandwidth and double the energy cost of 3G, you should download 4 times as much data during each session—or potentially as much as 10mb. When downloading this much data, it's important to consider the effect of your prefetching on the available local storage and flush your prefetch cache regularly.</p>
|
/external/webrtc/src/common_audio/signal_processing/ |
Android.mk | 29 energy.c \
|
signal_processing.gypi | 34 'energy.c',
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
block_switch.c | 62 static const Word32 minAttackNrg = 0x00001e84; /* minimum energy for attacks 1e+6 */ 139 /* Save current window energy as last window energy */ 172 /* if the energy with the ratio is bigger than the average, and the attack and short block */ 273 * description: calculate the energy before iir-filter and after irr-filter
|