Home
last modified time | relevance | path

Searched refs:energy (Results 1 – 25 of 232) sorted by relevance

12345678910

/external/libopus/silk/fixed/
DcorrMatrix_FIX.c87 opus_int32 energy; in silk_corrMatrix_FIX() local
92 energy = *nrg; in silk_corrMatrix_FIX()
97 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), *rshifts ); in silk_corrMatrix_FIX()
102 matrix_ptr( XX, 0, 0, order ) = energy; in silk_corrMatrix_FIX()
103 silk_assert( energy >= 0 ); in silk_corrMatrix_FIX()
106energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), *rshifts … in silk_corrMatrix_FIX()
107energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), *rshifts ) ); in silk_corrMatrix_FIX()
108 matrix_ptr( XX, j, j, order ) = energy; in silk_corrMatrix_FIX()
109 silk_assert( energy >= 0 ); in silk_corrMatrix_FIX()
118 energy = 0; in silk_corrMatrix_FIX()
[all …]
Dpitch_analysis_core_FIX.c106 opus_int32 cross_corr, normalizer, energy, energy_basis, energy_target; in silk_pitch_analysis_core() local
143 silk_sum_sqr_shift( &energy, &shift, frame_unscaled, frame_length ); in silk_pitch_analysis_core()
144 shift += 3 - silk_CLZ32( energy ); /* at least two bits headroom */ in silk_pitch_analysis_core()
509 energy = energy_target; in silk_pitch_analysis_core()
514 energy = silk_ADD32( energy, in silk_pitch_analysis_core()
517 silk_assert( energy >= 0 ); in silk_pitch_analysis_core()
520 CCmax_new = silk_DIV32_varQ( cross_corr, energy, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core()
655 opus_int32 energy; in silk_P_Ana_calc_energy_st3() local
685 energy = silk_inner_prod_aligned( basis_ptr, basis_ptr, sf_length, arch ); in silk_P_Ana_calc_energy_st3()
686 silk_assert( energy >= 0 ); in silk_P_Ana_calc_energy_st3()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Dcb_mem_energy.c41 int32_t energy, tmp32; in WebRtcIlbcfix_CbMemEnergy() local
52 energy = WebRtcSpl_DotProductWithScale( pp, pp, lTarget, scale); in WebRtcIlbcfix_CbMemEnergy()
55 energyShifts[0] = (int16_t)WebRtcSpl_NormW32(energy); in WebRtcIlbcfix_CbMemEnergy()
56 tmp32 = energy << energyShifts[0]; in WebRtcIlbcfix_CbMemEnergy()
62 WebRtcIlbcfix_CbMemEnergyCalc(energy, range, ppi, ppo, energyW16, energyShifts, scale, 0); in WebRtcIlbcfix_CbMemEnergy()
65 energy=0; in WebRtcIlbcfix_CbMemEnergy()
68 energy = WebRtcSpl_DotProductWithScale( pp, pp, lTarget, scale); in WebRtcIlbcfix_CbMemEnergy()
71 energyShifts[base_size] = (int16_t)WebRtcSpl_NormW32(energy); in WebRtcIlbcfix_CbMemEnergy()
72 tmp32 = energy << energyShifts[base_size]; in WebRtcIlbcfix_CbMemEnergy()
78 WebRtcIlbcfix_CbMemEnergyCalc(energy, range, ppi, ppo, energyW16, energyShifts, scale, base_size); in WebRtcIlbcfix_CbMemEnergy()
Dcb_mem_energy_calc.c25 int32_t energy, /* (i) input start energy */ in WebRtcIlbcfix_CbMemEnergyCalc() argument
50 energy += tmp >> scale; in WebRtcIlbcfix_CbMemEnergyCalc()
51 energy = WEBRTC_SPL_MAX(energy, 0); in WebRtcIlbcfix_CbMemEnergyCalc()
59 shft = (int16_t)WebRtcSpl_NormW32(energy); in WebRtcIlbcfix_CbMemEnergyCalc()
62 tmp = energy << shft; in WebRtcIlbcfix_CbMemEnergyCalc()
Dcb_mem_energy_augmentation.c30 int32_t energy, tmp32; in WebRtcIlbcfix_CbMemEnergyAugmentation() local
50 energy = nrjRecursive; in WebRtcIlbcfix_CbMemEnergyAugmentation()
53 energy += WebRtcSpl_DotProductWithScale(interpSamplesPtr, interpSamplesPtr, 4, scale); in WebRtcIlbcfix_CbMemEnergyAugmentation()
58 energy += WebRtcSpl_DotProductWithScale(pp, pp, SUBL-lagcount, scale); in WebRtcIlbcfix_CbMemEnergyAugmentation()
61 (*enShPtr) = (int16_t)WebRtcSpl_NormW32(energy); in WebRtcIlbcfix_CbMemEnergyAugmentation()
62 tmp32 = energy << *enShPtr; in WebRtcIlbcfix_CbMemEnergyAugmentation()
Denergy_inverse.c24 int16_t *energy, /* (i/o) Energy and inverse in WebRtcIlbcfix_EnergyInverse() argument
34 energyPtr=energy; in WebRtcIlbcfix_EnergyInverse()
41 energyPtr=energy; in WebRtcIlbcfix_EnergyInverse()
Ddo_plc.c42 int32_t measure, maxMeasure, energy; in WebRtcIlbcfix_DoThePlc() local
232 energy = 0; in WebRtcIlbcfix_DoThePlc()
271 energy += (PLCresidual[i] * PLCresidual[i]) >> in WebRtcIlbcfix_DoThePlc()
276 …if (energy < (WEBRTC_SPL_SHIFT_W32(((int32_t)iLBCdec_inst->blockl*900),-(iLBCdec_inst->prevScale+1… in WebRtcIlbcfix_DoThePlc()
277 energy = 0; in WebRtcIlbcfix_DoThePlc()
/external/libopus/silk/float/
DcorrMatrix_FLP.c67 double energy; in silk_corrMatrix_FLP() local
71 energy = silk_energy_FLP( ptr1, L ); /* X[:,0]'*X[:,0] */ in silk_corrMatrix_FLP()
72 matrix_ptr( XX, 0, 0, Order ) = ( silk_float )energy; in silk_corrMatrix_FLP()
75 energy += ptr1[ -j ] * ptr1[ -j ] - ptr1[ L - j ] * ptr1[ L - j ]; in silk_corrMatrix_FLP()
76 matrix_ptr( XX, j, j, Order ) = ( silk_float )energy; in silk_corrMatrix_FLP()
82 energy = silk_inner_product_FLP( ptr1, ptr2, L ); in silk_corrMatrix_FLP()
83 matrix_ptr( XX, lag, 0, Order ) = ( silk_float )energy; in silk_corrMatrix_FLP()
84 matrix_ptr( XX, 0, lag, Order ) = ( silk_float )energy; in silk_corrMatrix_FLP()
87 energy += ptr1[ -j ] * ptr2[ -j ] - ptr1[ L - j ] * ptr2[ L - j ]; in silk_corrMatrix_FLP()
88 matrix_ptr( XX, lag + j, j, Order ) = ( silk_float )energy; in silk_corrMatrix_FLP()
[all …]
Dpitch_analysis_core_FLP.c93 double cross_corr, normalizer, energy, energy_tmp; in silk_pitch_analysis_core_FLP() local
296 energy = silk_energy_FLP( basis_ptr, sf_length_8kHz ); in silk_pitch_analysis_core_FLP()
297 C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) ); in silk_pitch_analysis_core_FLP()
437 energy = energy_tmp; in silk_pitch_analysis_core_FLP()
440 energy += energies_st3[ k ][ j ][ lag_counter ]; in silk_pitch_analysis_core_FLP()
443 CCmax_new = (silk_float)( 2 * cross_corr / energy ); in silk_pitch_analysis_core_FLP()
569 double energy; in silk_P_Ana_calc_energy_st3() local
597 energy = silk_energy_FLP( basis_ptr, sf_length ) + 1e-3; in silk_P_Ana_calc_energy_st3()
598 silk_assert( energy >= 0.0 ); in silk_P_Ana_calc_energy_st3()
599 scratch_mem[lag_counter] = (silk_float)energy; in silk_P_Ana_calc_energy_st3()
[all …]
/external/aac/libAACenc/src/
Dgrp_data.cpp201 FIXP_DBL energy = sfbEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local
203 energy = nrgAddSaturate(energy, sfbEnergy->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
205 sfbEnergy->Long[i++] = energy; in FDKaacEnc_groupShortData()
216 FIXP_DBL energy = sfbEnergyMS->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local
218 energy = nrgAddSaturate(energy, sfbEnergyMS->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
220 sfbEnergyMS->Long[i++] = energy; in FDKaacEnc_groupShortData()
231 FIXP_DBL energy = sfbSpreadEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local
233 energy = nrgAddSaturate(energy, sfbSpreadEnergy->Short[wnd + j][sfb]); in FDKaacEnc_groupShortData()
235 sfbSpreadEnergy->Long[i++] = energy; in FDKaacEnc_groupShortData()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_aq_variance.c28 #define ENERGY_IN_BOUNDS(energy) \ argument
29 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX)
42 unsigned int vp9_vaq_segment_id(int energy) { in vp9_vaq_segment_id() argument
43 ENERGY_IN_BOUNDS(energy); in vp9_vaq_segment_id()
44 return SEGMENT_ID(energy); in vp9_vaq_segment_id()
212 int energy; in vp9_get_sub_block_energy() local
219 energy = vp9_block_energy(cpi, mb, BLOCK_8X8); in vp9_get_sub_block_energy()
220 *min_e = VPXMIN(*min_e, energy); in vp9_get_sub_block_energy()
221 *max_e = VPXMAX(*max_e, energy); in vp9_get_sub_block_energy()
232 double energy; in vp9_block_energy() local
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dnormal.cc84 int32_t energy = WebRtcSpl_DotProductWithScale(signal, signal, in Process() local
89 energy = energy / scaled_energy_length; in Process()
91 energy = 0; in Process()
95 if ((energy != 0) && in Process()
96 (energy > background_noise_.Energy(channel_ix))) { in Process()
98 scaling = WebRtcSpl_NormW32(energy) - 16; in Process()
102 int16_t energy_scaled = static_cast<int16_t>(energy << scaling); in Process()
/external/webrtc/webrtc/modules/audio_processing/
Dsplitting_filter_unittest.cc66 float energy[kNumBands]; in TEST() local
68 energy[j] = 0.f; in TEST()
70 energy[j] += bands.fbuf_const()->channels(j)[0][k] * in TEST()
73 energy[j] /= kSamplesPer16kHzChannel; in TEST()
75 EXPECT_GT(energy[j], kAmplitude * kAmplitude / 4); in TEST()
77 EXPECT_LT(energy[j], kAmplitude * kAmplitude / 4); in TEST()
/external/webrtc/webrtc/common_audio/vad/
Dvad_filterbank.c161 uint32_t energy = 0; in LogOfEnergy() local
166 energy = (uint32_t) WebRtcSpl_Energy((int16_t*) data_in, data_length, in LogOfEnergy()
169 if (energy != 0) { in LogOfEnergy()
172 int normalizing_rshifts = 17 - WebRtcSpl_NormU32(energy); in LogOfEnergy()
184 energy <<= -normalizing_rshifts; in LogOfEnergy()
186 energy >>= normalizing_rshifts; in LogOfEnergy()
210 log2_energy += (int16_t) ((energy & 0x00003FFF) >> 4); in LogOfEnergy()
240 *total_energy += (int16_t) (energy >> -tot_rshifts); // Q0. in LogOfEnergy()
/external/eigen/bench/
Dvdw_new.cpp50 SCALAR energy = 0.0; in main() local
52 energy += E_VDW(interactions1, interactions2); in main()
53 energy *= 1 + 1e-20 * i; // prevent compiler from optimizing the loop in main()
55 cout << "energy = " << energy << endl; in main()
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfilterbank.c23 int32_t* energy) { in FilterbankConvertFftComplexToEnergy() argument
26 energy += state->start_index; in FilterbankConvertFftComplexToEnergy()
33 *energy++ = mag_squared; in FilterbankConvertFftComplexToEnergy()
38 const int32_t* energy) { in FilterbankAccumulateChannels() argument
50 const int32_t* magnitudes = energy + *channel_frequency_starts++; in FilterbankAccumulateChannels()
Dfrontend.c40 int32_t* energy = (int32_t*) state->fft.output; in FrontendProcessSamples() local
43 energy); in FrontendProcessSamples()
45 FilterbankAccumulateChannels(&state->filterbank, energy); in FrontendProcessSamples()
Dfilterbank.h45 int32_t* energy);
50 const int32_t* energy);
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/
Dfilterbank.cc23 int32_t* energy) { in FilterbankConvertFftComplexToEnergy() argument
26 energy += state->start_index; in FilterbankConvertFftComplexToEnergy()
33 *energy++ = mag_squared; in FilterbankConvertFftComplexToEnergy()
38 const int32_t* energy) { in FilterbankAccumulateChannels() argument
50 const int32_t* magnitudes = energy + *channel_frequency_starts++; in FilterbankAccumulateChannels()
Dfrontend.cc40 int32_t* energy = reinterpret_cast<int32_t*>(state->fft.output); in FrontendProcessSamples() local
42 energy); in FrontendProcessSamples()
43 FilterbankAccumulateChannels(&state->filterbank, energy); in FrontendProcessSamples()
Dfilterbank.h42 int32_t* energy);
47 const int32_t* energy);
/external/libaom/libaom/av1/encoder/
Daq_variance.c33 #define ENERGY_IN_BOUNDS(energy) \ argument
34 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX)
175 double energy, energy_midpoint; in av1_block_wavelet_energy_level() local
179 energy = av1_log_block_wavelet_energy(x, bs) - energy_midpoint; in av1_block_wavelet_energy_level()
180 return clamp((int)round(energy), ENERGY_MIN, ENERGY_MAX); in av1_block_wavelet_energy_level()
/external/tensorflow/tensorflow/contrib/eager/python/examples/l2hmc/
DREADME.md14 - `l2hmc.py`: Dynamics definitions and example energy functions,
15 including the 2D strongly correlated Gaussian and the rough well energy function,
16 - `l2hmc_test.py`: Unit tests and benchmarks for training a sampler on the energy functions in both…
18 - `main.py`: Run to train a samplers on 2D energy landscapes.
/external/libopus/silk/
DPLC.c399 opus_int32 energy; in silk_PLC_glue_frames() local
411 silk_sum_sqr_shift( &energy, &energy_shift, frame, length ); in silk_PLC_glue_frames()
417 energy = silk_RSHIFT( energy, psPLC->conc_energy_shift - energy_shift ); in silk_PLC_glue_frames()
421 if( energy > psPLC->conc_energy ) { in silk_PLC_glue_frames()
428 energy = silk_RSHIFT( energy, silk_max_32( 24 - LZ, 0 ) ); in silk_PLC_glue_frames()
430 frac_Q24 = silk_DIV32( psPLC->conc_energy, silk_max( energy, 1 ) ); in silk_PLC_glue_frames()
/external/autotest/client/site_tests/power_Draw/
Dpower_Draw.py30 start_energy = status.battery[0].energy
40 end_energy = status.battery[0].energy

12345678910