Home
last modified time | relevance | path

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

12345678910>>...12

/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/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()
/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()
205 int energy; in vp9_get_sub_block_energy() local
212 energy = vp9_block_energy(cpi, mb, BLOCK_8X8); in vp9_get_sub_block_energy()
213 *min_e = VPXMIN(*min_e, energy); in vp9_get_sub_block_energy()
214 *max_e = VPXMAX(*max_e, energy); in vp9_get_sub_block_energy()
225 double energy; in vp9_block_energy() local
[all …]
/external/webrtc/modules/audio_coding/neteq/
Dnormal.cc81 int32_t energy = WebRtcSpl_DotProductWithScale(signal.get(), signal.get(), in Process() local
86 energy = energy / scaled_energy_length; in Process()
88 energy = 0; in Process()
92 if ((energy != 0) && (energy > background_noise_.Energy(channel_ix))) { in Process()
94 scaling = WebRtcSpl_NormW32(energy) - 16; in Process()
99 static_cast<int16_t>(WEBRTC_SPL_SHIFT_W32(energy, scaling)); in Process()
/external/perfetto/protos/perfetto/trace/power/
Dandroid_energy_estimation_breakdown.proto26 // The first trace packet of each session should include a energy consumer
35 // Total accumulated energy since boot in microwatt-seconds (uWs)
39 // Android ID/Linux UID, the accumulated energy is attributed to.
42 // Accumulated energy since boot in microwatt-seconds (uWs).
45 // Optional attributed energy per Android ID / Linux UID for this
46 // EnergyConsumer. Sum total of attributed energy must be less than or equal
47 // to total accumulated energy.
/external/webrtc/modules/audio_processing/
Dsplitting_filter_unittest.cc65 float energy[kNumBands]; in TEST() local
67 energy[j] = 0.f; in TEST()
69 energy[j] += bands.channels(j)[0][k] * bands.channels(j)[0][k]; in TEST()
71 energy[j] /= kSamplesPer16kHzChannel; in TEST()
73 EXPECT_GT(energy[j], kAmplitude * kAmplitude / 4); in TEST()
75 EXPECT_LT(energy[j], kAmplitude * kAmplitude / 4); in TEST()
/external/perfetto/test/trace_processor/power/
Dpower_rails_well_known.textproto17 energy: 333
33 energy: 666
37 energy: 999
42 energy: 0
Dpower_rails_custom_clock.textproto29 energy: 333
39 energy: 666
49 energy: 999
54 energy: 0
Dpower_rails.textproto17 energy: 333
33 energy: 666
37 energy: 999
42 energy: 0
/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/webrtc/common_audio/vad/
Dvad_filterbank.c159 uint32_t energy = 0; in LogOfEnergy() local
164 energy = (uint32_t) WebRtcSpl_Energy((int16_t*) data_in, data_length, in LogOfEnergy()
167 if (energy != 0) { in LogOfEnergy()
170 int normalizing_rshifts = 17 - WebRtcSpl_NormU32(energy); in LogOfEnergy()
182 energy <<= -normalizing_rshifts; in LogOfEnergy()
184 energy >>= normalizing_rshifts; in LogOfEnergy()
208 log2_energy += (int16_t) ((energy & 0x00003FFF) >> 4); in LogOfEnergy()
238 *total_energy += (int16_t) (energy >> -tot_rshifts); // Q0. in LogOfEnergy()
/external/webrtc/modules/audio_mixer/
Daudio_mixer_impl.cc37 energy = AudioMixerCalculateEnergy(*audio_frame); in SourceFrame()
44 uint32_t energy) in SourceFrame()
48 energy(energy) { in SourceFrame()
56 uint32_t energy = 0; member
72 return a.energy > b.energy; in ShouldMixBefore()
/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()
/external/webrtc/modules/audio_processing/agc2/
Dnoise_level_estimator.cc30 float energy = 0.f; in FrameEnergy() local
35 energy = std::max(channel_energy, energy); in FrameEnergy()
37 return energy; in FrameEnergy()
/external/libaom/libaom/av1/encoder/
Daq_variance.c33 #define ENERGY_IN_BOUNDS(energy) \ argument
34 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX)
176 double energy, energy_midpoint; in av1_block_wavelet_energy_level() local
181 energy = av1_log_block_wavelet_energy(x, bs) - energy_midpoint; in av1_block_wavelet_energy_level()
182 return clamp((int)round(energy), ENERGY_MIN, ENERGY_MAX); in av1_block_wavelet_energy_level()
/external/igt-gpu-tools/lib/
Digt_gpu_power.h37 uint64_t energy; member
49 return (p1->energy - p0->energy) * p->scale; in gpu_power_J()
/external/perfetto/protos/perfetto/common/
Dandroid_energy_consumer_descriptor.proto24 // Unique ID of this energy consumer. Matches the ID in a
28 // For a group of energy consumers of the same logical type, sorting by
33 // Type of this energy consumer.
36 // Unique name of this energy consumer. Vendor/device specific. Opaque to
/external/perfetto/src/trace_processor/importers/proto/
Dandroid_probes_module.cc145 auto* energy = data_packet->set_power_rails()->add_energy_data(); in TokenizePacket() local
146 energy->set_energy(data.energy()); in TokenizePacket()
147 energy->set_index(data.index()); in TokenizePacket()
148 energy->set_timestamp_ms(static_cast<uint64_t>(actual_ts / 1000000)); in TokenizePacket()

12345678910>>...12