/external/libvpx/libvpx/vp9/encoder/ |
vp9_vaq.h | 17 unsigned int vp9_vaq_segment_id(int energy); 18 double vp9_vaq_rdmult_ratio(int energy); 19 double vp9_vaq_inv_q_ratio(int energy);
|
vp9_vaq.c | 25 #define ENERGY_IN_BOUNDS(energy)\ 26 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX) 38 unsigned int vp9_vaq_segment_id(int energy) { 39 ENERGY_IN_BOUNDS(energy); 41 return SEGMENT_ID(energy); 44 double vp9_vaq_rdmult_ratio(int energy) { 45 ENERGY_IN_BOUNDS(energy); 49 return RDMULT_RATIO(energy); 52 double vp9_vaq_inv_q_ratio(int energy) { 137 double energy; local [all...] |
/external/chromium_org/third_party/opus/src/silk/fixed/ |
corrMatrix_FIX.c | 85 opus_int32 energy; local 88 /* Calculate energy to find shift used to fit in 32 bits */ 89 silk_sum_sqr_shift( &energy, &rshifts_local, x, L + order - 1 ); 91 head_room_rshifts = silk_max( head_room - silk_CLZ32( energy ), 0 ); 93 energy = silk_RSHIFT32( energy, head_room_rshifts ); 96 /* Calculate energy of first column (0) of X: X[:,0]'*X[:,0] */ 99 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), rshifts_local ); 102 /* Adjust energy */ 103 energy = silk_RSHIFT32( energy, *rshifts - rshifts_local ) [all...] |
pitch_analysis_core_FIX.c | 69 silk_pe_stage3_vals energies_st3[], /* O 3 DIM energy array */ 70 const opus_int16 frame[], /* I vector to calc energy in */ 102 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; local 166 silk_sum_sqr_shift( &energy, &shift, frame_4kHz, frame_length_4kHz ); 315 silk_sum_sqr_shift( &energy, &shift, frame_8kHz, frame_length_8kHz ); 324 * Find energy of each subframe projected onto its history, for a range of delays 467 silk_sum_sqr_shift( &energy, &shift, frame, frame_length ); 531 energy = energy_target; 536 energy = silk_ADD32( energy, 675 opus_int32 energy; local [all...] |
/external/chromium_org/third_party/opus/src/silk/float/ |
corrMatrix_FLP.c | 67 double energy; local 71 energy = silk_energy_FLP( ptr1, L ); /* X[:,0]'*X[:,0] */ 72 matrix_ptr( XX, 0, 0, Order ) = ( silk_float )energy; 75 energy += ptr1[ -j ] * ptr1[ -j ] - ptr1[ L - j ] * ptr1[ L - j ]; 76 matrix_ptr( XX, j, j, Order ) = ( silk_float )energy; 82 energy = silk_inner_product_FLP( ptr1, ptr2, L ); 83 matrix_ptr( XX, lag, 0, Order ) = ( silk_float )energy; 84 matrix_ptr( XX, 0, lag, Order ) = ( silk_float )energy; 87 energy += ptr1[ -j ] * ptr2[ -j ] - ptr1[ L - j ] * ptr2[ L - j ]; 88 matrix_ptr( XX, lag + j, j, Order ) = ( silk_float )energy; [all...] |
pitch_analysis_core_FLP.c | 91 double cross_corr, normalizer, energy, energy_tmp; local 278 * Find energy of each subframe projected onto its history, for a range of delays 294 energy = silk_energy_FLP( basis_ptr, sf_length_8kHz ); 295 C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) ); 435 energy = energy_tmp; 438 energy += energies_st3[ k ][ j ][ lag_counter ]; 441 CCmax_new = (silk_float)( 2 * cross_corr / energy ); 567 double energy; local 593 /* Calculate the energy for first lag */ 595 energy = silk_energy_FLP( basis_ptr, sf_length ) + 1e-3 [all...] |
/external/eigen/bench/ |
vdw_new.cpp | 37 // energy . . . . ... 49 // Energy() 50 SCALAR energy = 0.0; local 52 energy += E_VDW(interactions1, interactions2); 53 energy *= 1 + 1e-20 * i; // prevent compiler from optimizing the loop 55 cout << "energy = " << energy << endl;
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
grp_data.c | 125 Word32 energy = sfbEnergy->sfbShort[wnd][sfb]; local 127 energy = L_add(energy, sfbEnergy->sfbShort[wnd+j][sfb]); 129 sfbEnergy->sfbLong[i] = energy; 140 Word32 energy = sfbEnergyMS->sfbShort[wnd][sfb]; local 142 energy = L_add(energy, sfbEnergyMS->sfbShort[wnd+j][sfb]); 144 sfbEnergyMS->sfbLong[i] = energy; 155 Word32 energy = sfbSpreadedEnergy->sfbShort[wnd][sfb]; local 157 energy = L_add(energy, sfbSpreadedEnergy->sfbShort[wnd+j][sfb]) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
EnergyProbe.java | 23 * The EnergyProbe class provides audio signal energy measurements based on the FFT returned 25 * value has no unit and is just proportional to the amount of energy present around the 57 int energy = 0; local 70 energy += (int)mFft[0] * (int)mFft[0]; 83 energy += tmp/j; 97 return energy/count;
|
/cts/tests/tests/media/src/android/media/cts/ |
VisualizerTest.java | 135 int energy = computeEnergy(data, true); local 136 assertEquals("getWaveForm reports energy for silence", 137 0, energy); 139 energy = computeEnergy(data, false); 140 assertEquals("getFft reports energy for silence", 141 0, energy); 179 int energy = computeEnergy(mWaveform, true); local 180 assertEquals("getWaveForm reports energy for silence", 181 0, energy); 195 energy = computeEnergy(mFft, false) 214 int energy = 0; local [all...] |
/cts/suite/audio_quality/lib/src/ |
BuiltinProcessing.cpp | 58 double energy = 0.0f; local 60 energy += (rawData[i] * rawData[i]); 62 rms = (int64_t)sqrt(energy/samples);
|
/external/aac/libAACenc/src/ |
grp_data.cpp | 199 FIXP_DBL energy = sfbEnergy->Short[wnd][sfb]; local 202 energy = nrgAddSaturate(energy, sfbEnergy->Short[wnd+j][sfb]); 204 sfbEnergy->Long[i++] = energy; 217 FIXP_DBL energy = sfbEnergyMS->Short[wnd][sfb]; local 220 energy = nrgAddSaturate(energy, sfbEnergyMS->Short[wnd+j][sfb]); 222 sfbEnergyMS->Long[i++] = energy; 235 FIXP_DBL energy = sfbSpreadEnergy->Short[wnd][sfb]; local 238 energy = nrgAddSaturate(energy, sfbSpreadEnergy->Short[wnd+j][sfb]) [all...] |
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_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/chromium_org/third_party/opus/src/silk/ |
sum_sqr_shift.c | 37 opus_int32 *energy, /* O Energy of x, after shifting to the right */ 38 opus_int *shift, /* O Number of bits right shift applied to energy */ 83 *energy = nrg;
|
PLC.c | 211 /* Find the subframe with lowest energy of the last two and use that as random noise generator */ 216 /* First sub-frame has lowest energy */ 219 /* Second sub-frame has lowest energy */ 374 opus_int32 energy; local 379 /* Calculate energy in concealed residual */ 386 silk_sum_sqr_shift( &energy, &energy_shift, frame, length ); 392 energy = silk_RSHIFT( energy, psPLC->conc_energy_shift - energy_shift ); 395 /* Fade in the energy difference */ 396 if( energy > psPLC->conc_energy ) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaVisualizerTest.java | 259 int energy = computeEnergy(data, true); local 260 assertEquals(msg +": getWaveForm reports energy for silence", 261 0, energy); 263 energy = computeEnergy(data, false); 264 assertEquals(msg +": getFft reports energy for silence", 265 0, energy); 271 energy = computeEnergy(data, true); 273 energy > 0); 275 energy = computeEnergy(data, false); 277 energy > 0) 358 int energy = computeEnergy(mWaveform, true); local 527 int energy = 0; local [all...] |
/external/opencv/cv/src/ |
cvsnakes.cpp | 58 // alpha - pointer to coefficient of continuity energy, 59 // beta - pointer to coefficient of curvature energy, 60 // gamma - pointer to coefficient of image energy, 64 // scheme - image energy scheme 65 // if _CV_SNAKE_IMAGE - image intensity is energy 66 // if _CV_SNAKE_GRAD - magnitude of gradient is energy 216 float energy; local 228 Econt[(j + centery) * win.width + k + centerx] = energy = 232 maxEcont = MAX( maxEcont, energy ); 233 minEcont = MIN( minEcont, energy ); 251 float energy; local 286 float energy; local [all...] |
/external/chromium_org/media/filters/ |
wsola_internals.h | 34 // the method assumes |energy| must be, at least, of size 38 float* energy); 67 // is most similar to |target_block|. |energy_target_block| is the energy of the 68 // |target_block|. |energy_candidate_blocks| is the energy of all blocks within
|
wsola_internals.cc | 63 float* energy) { 70 energy[k] = 0; 74 energy[k] += input_channel[m] * input_channel[m]; 80 energy[k + n * channels] = energy[k + (n - 1) * channels] - *slide_out * 234 // Energy of all candid frames. 238 // Energy of target frame.
|
/external/webrtc/src/common_audio/vad/ |
vad_filterbank.c | 162 // Energy in 3000 Hz - 4000 Hz 167 // Energy in 2000 Hz - 3000 Hz 181 // Energy in 1000 Hz - 2000 Hz 196 // Energy in 500 Hz - 1000 Hz 211 // Energy in 250 Hz - 500 Hz 234 int32_t energy = WebRtcSpl_Energy(vector, vector_length, &shfts); local 236 if (energy > 0) { 238 shfts2 = 16 - WebRtcSpl_NormW32(energy); 242 energy_s16 = (int16_t) WEBRTC_SPL_SHIFT_W32(energy, -shfts2);
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceDialerActivity.java | 628 private static final int NUM_PERIODS_BLOCK = 10; // number of sine periods in one energy averaging block 629 private static final int THRESHOLD = 8; // absolute pseudo energy threshold 632 private static final int TOP = 2; // beep constant energy detected 636 int blockSize = 2 * sampleCount; // energy averaging block 648 long prevE = 0; // previous pseudo energy 650 int threshold = THRESHOLD*sampleCount; // absolute energy threshold 663 // compute pseudo energy 673 long energy = (sumxx*sampleCount - sumx*sumx)/(sampleCount*sampleCount); local 674 Log.d(TAG, "sumx " + sumx + " sumxx " + sumxx + " ee " + energy); 678 if (energy > threshold && energy > (prevE * 2) && prevE != 0) [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|