/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | energy_inverse.c | 24 int16_t *energy, /* (i/o) Energy and inverse 25 energy (in Q29) */ 26 size_t noOfEnergies) /* (i) The length of the energy 33 /* Set the minimum energy value to 16384 to avoid overflow */ 34 energyPtr=energy; 40 /* Calculate inverse energy in Q29 */ 41 energyPtr=energy; 23 WebRtcIlbcfix_EnergyInverse( int16_t *energy, size_t noOfEnergies) argument
|
H A D | cb_mem_energy.c | 24 * Function WebRtcIlbcfix_CbMemEnergy computes the energy of all 36 int16_t *energyShifts, /* (o) Shift value of the energy */ 37 int scale, /* (i) The scaling of all energy values */ 38 size_t base_size /* (i) Index to where energy values should be stored */ 41 int32_t energy, tmp32; local 43 /* Compute the energy and store it in a vector. Also the 44 * corresponding shift values are stored. The energy values 47 /* Calculate the energy in the first block of 'lTarget' sampels. */ 52 energy = WebRtcSpl_DotProductWithScale( pp, pp, lTarget, scale); 54 /* Normalize the energy an [all...] |
H A D | cb_mem_energy_augmentation.c | 25 int scale, /* (i) The scaling of all energy values */ 26 size_t base_size, /* (i) Index to where energy values should be stored */ 28 int16_t *energyShifts /* (o) Shift value of the energy */ 30 int32_t energy, tmp32; local 41 /* Compute the energy for the first (low-5) noninterpolated samples */ 47 /* Update the energy recursively to save complexity */ 50 energy = nrjRecursive; 53 energy += WebRtcSpl_DotProductWithScale(interpSamplesPtr, interpSamplesPtr, 4, scale); 56 /* Compute energy for the remaining samples */ 58 energy [all...] |
H A D | cb_mem_energy_calc.c | 21 /* Compute the energy of the rest of the cb memory 25 int32_t energy, /* (i) input start energy */ 30 int16_t *energyShifts, /* (o) Shift value of the energy */ 31 int scale, /* (i) The scaling of all energy values */ 32 size_t base_size /* (i) Index to where energy values should be stored */ 47 /* Calculate next energy by a +/- 50 energy += tmp >> scale; 51 energy = WEBRTC_SPL_MAX(energy, 24 WebRtcIlbcfix_CbMemEnergyCalc( int32_t energy, size_t range, int16_t *ppi, int16_t *ppo, int16_t *energyW16, int16_t *energyShifts, int scale, size_t base_size ) argument [all...] |
H A D | do_plc.c | 42 int32_t measure, maxMeasure, energy; local 105 /* Use the criteria (corr*corr)/energy to compare if 143 abs(corr(vec1, vec2))/(sqrt(energy(vec1))*sqrt(energy(vec2))) 232 energy = 0; 271 energy += (PLCresidual[i] * PLCresidual[i]) >> 276 if (energy < (WEBRTC_SPL_SHIFT_W32(((int32_t)iLBCdec_inst->blockl*900),-(iLBCdec_inst->prevScale+1)))) { 277 energy = 0;
|
/external/libopus/silk/ |
H A D | 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; 36 silk_sum_sqr_shift( opus_int32 *energy, opus_int *shift, const opus_int16 *x, opus_int len ) argument
|
H A D | 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 > psPL [all...] |
/external/eigen/bench/ |
H A D | vdw_new.cpp | 37 // 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;
|
/external/libopus/silk/float/ |
H A D | 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...] |
H A D | pitch_analysis_core_FLP.c | 93 double cross_corr, normalizer, energy, energy_tmp; local 280 * Find energy of each subframe projected onto its history, for a range of delays 296 energy = silk_energy_FLP( basis_ptr, sf_length_8kHz ); 297 C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) ); 437 energy = energy_tmp; 440 energy += energies_st3[ k ][ j ][ lag_counter ]; 443 CCmax_new = (silk_float)( 2 * cross_corr / energy ); 569 double energy; local 595 /* Calculate the energy for first lag */ 597 energy [all...] |
/external/libopus/silk/fixed/ |
H A D | 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 [all...] |
H A D | pitch_analysis_core_FIX.c | 70 silk_pe_stage3_vals energies_st3[], /* O 3 DIM energy array */ 71 const opus_int16 frame[], /* I vector to calc energy in */ 104 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; local 168 silk_sum_sqr_shift( &energy, &shift, frame_4kHz, frame_length_4kHz ); 317 silk_sum_sqr_shift( &energy, &shift, frame_8kHz, frame_length_8kHz ); 326 * Find energy of each subframe projected onto its history, for a range of delays 469 silk_sum_sqr_shift( &energy, &shift, frame, frame_length ); 533 energy = energy_target; 538 energy = silk_ADD32( energy, 678 opus_int32 energy; local [all...] |
/external/webrtc/webrtc/modules/audio_processing/ |
H A D | splitting_filter_unittest.cc | 66 float energy[kNumBands]; local 68 energy[j] = 0.f; 70 energy[j] += bands.fbuf_const()->channels(j)[0][k] * 73 energy[j] /= kSamplesPer16kHzChannel; 75 EXPECT_GT(energy[j], kAmplitude * kAmplitude / 4); 77 EXPECT_LT(energy[j], kAmplitude * kAmplitude / 4);
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
H A D | background_noise.h | 91 energy = 2500; 103 int32_t energy; member in struct:webrtc::BackgroundNoise::ChannelParameters 118 // Increments the energy threshold by a factor 1 + |kThresholdIncrement|.
|
H A D | normal.cc | 84 int32_t energy = WebRtcSpl_DotProductWithScale(signal, signal, local 89 energy = energy / scaled_energy_length; 91 energy = 0; 95 if ((energy != 0) && 96 (energy > background_noise_.Energy(channel_ix))) { 97 // Normalize new frame energy to 15 bits. 98 scaling = WebRtcSpl_NormW32(energy) - 16; 99 // We want background_noise_.energy() / energy i [all...] |
/external/aac/libAACenc/src/ |
H A D | 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 [all...] |
H A D | quantize.cpp | 353 description: calculates energy and distortion of quantized values 357 output: energy, distortion 371 FIXP_DBL energy = FL2FXCONST_DBL(0.0f); local 385 /* energy */ 386 energy += fPow2(invQuantSpec); 402 *en = CalcLdData(energy)+FL2FXCONST_DBL(0.03125f);
|
/external/opencv3/modules/core/src/ |
H A D | pca.cpp | 192 double energy = g.at<T>(L, 0) / g.at<T>(g.rows - 1, 0); local 193 if(energy > retainedVariance) 278 // compute the cumulative energy content for each eigenvector
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_aq_variance.c | 27 #define ENERGY_IN_BOUNDS(energy)\ 28 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX) 41 unsigned int vp9_vaq_segment_id(int energy) { argument 42 ENERGY_IN_BOUNDS(energy); 43 return SEGMENT_ID(energy); 200 double energy; local 205 energy = vp9_log_block_var(cpi, x, bs) - energy_midpoint; 206 return clamp((int)round(energy), ENERGY_MIN, ENERGY_MAX);
|
/external/webrtc/webrtc/common_audio/vad/ |
H A D | vad_filterbank.c | 143 // Calculates the energy of |data_in| in dB, and also updates an overall 146 // - data_in [i] : Input audio data for energy calculation. 149 // - total_energy [i/o] : An external energy updated with the energy of 153 // - log_energy [o] : 10 * log10("energy of |data_in|") given in Q4. 157 // |tot_rshifts| accumulates the number of right shifts performed on |energy|. 159 // The |energy| will be normalized to 15 bits. We use unsigned integer because 161 uint32_t energy = 0; local 166 energy = (uint32_t) WebRtcSpl_Energy((int16_t*) data_in, data_length, 169 if (energy ! [all...] |
/external/opencv/cv/src/ |
H A D | 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/opencv3/modules/photo/src/ |
H A D | contrast_preserve.hpp | 86 vector <double> energy; local 101 energy.push_back(-1.0*log(exp(-1.0*pow(temp[i],2)/sigma) + exp(-1.0*pow(temp1[i],2)/sigma))); 105 sum +=energy[i];
|
/external/speex/libspeex/ |
H A D | 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[ [all...] |
/external/webrtc/webrtc/modules/audio_processing/aecm/ |
H A D | aecm_core.c | 310 // Get energy for the delayed far end signal and estimated 688 // Calculates and returns the log of |energy| in Q8. The input |energy| is 690 static int16_t LogOfEnergyInQ8(uint32_t energy, int q_domain) { argument 693 if (energy > 0) { 694 int zeros = WebRtcSpl_NormU32(energy); 695 int16_t frac = ExtractFractionPart(energy, zeros); 696 // log2 of |energy| in Q8. 705 // echoes. There is also an update of energy decision levels, i.e. internal VAD. 711 // @param nearEner [in] Near end energy fo [all...] |
/external/webrtc/webrtc/modules/audio_processing/ns/ |
H A D | ns_core.c | 947 // Calculates the energy of a buffer. 949 // * |buffer| is the buffer over which the energy is calculated. 951 // Returns the calculated energy. 954 float energy = 0.f; local 957 energy += buffer[i] * buffer[i]; 960 return energy; 1048 float energy; local 1072 energy = Energy(winData, self->anaLen); 1073 if (energy == 0.0) {
|