/external/chromium_org/third_party/opus/src/silk/fixed/ |
D | corrMatrix_FIX.c | 85 opus_int32 energy; in silk_corrMatrix_FIX() local 89 silk_sum_sqr_shift( &energy, &rshifts_local, x, L + order - 1 ); in silk_corrMatrix_FIX() 91 head_room_rshifts = silk_max( head_room - silk_CLZ32( energy ), 0 ); in silk_corrMatrix_FIX() 93 energy = silk_RSHIFT32( energy, head_room_rshifts ); in silk_corrMatrix_FIX() 99 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), rshifts_local ); in silk_corrMatrix_FIX() 103 energy = silk_RSHIFT32( energy, *rshifts - rshifts_local ); in silk_corrMatrix_FIX() 109 matrix_ptr( XX, 0, 0, order ) = energy; in silk_corrMatrix_FIX() 112 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), rshifts_l… in silk_corrMatrix_FIX() 113 …energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), rshifts_local )… in silk_corrMatrix_FIX() 114 matrix_ptr( XX, j, j, order ) = energy; in silk_corrMatrix_FIX() [all …]
|
D | pitch_analysis_core_FIX.c | 104 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; in silk_pitch_analysis_core() local 168 silk_sum_sqr_shift( &energy, &shift, frame_4kHz, frame_length_4kHz ); in silk_pitch_analysis_core() 317 silk_sum_sqr_shift( &energy, &shift, frame_8kHz, frame_length_8kHz ); in silk_pitch_analysis_core() 469 silk_sum_sqr_shift( &energy, &shift, frame, frame_length ); in silk_pitch_analysis_core() 533 energy = energy_target; in silk_pitch_analysis_core() 538 energy = silk_ADD32( energy, in silk_pitch_analysis_core() 541 silk_assert( energy >= 0 ); in silk_pitch_analysis_core() 544 CCmax_new = silk_DIV32_varQ( cross_corr, energy, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core() 678 opus_int32 energy; in silk_P_Ana_calc_energy_st3() local 708 energy = silk_inner_prod_aligned( basis_ptr, basis_ptr, sf_length ); in silk_P_Ana_calc_energy_st3() [all …]
|
/external/libopus/silk/fixed/ |
D | corrMatrix_FIX.c | 85 opus_int32 energy; in silk_corrMatrix_FIX() local 89 silk_sum_sqr_shift( &energy, &rshifts_local, x, L + order - 1 ); in silk_corrMatrix_FIX() 91 head_room_rshifts = silk_max( head_room - silk_CLZ32( energy ), 0 ); in silk_corrMatrix_FIX() 93 energy = silk_RSHIFT32( energy, head_room_rshifts ); in silk_corrMatrix_FIX() 99 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), rshifts_local ); in silk_corrMatrix_FIX() 103 energy = silk_RSHIFT32( energy, *rshifts - rshifts_local ); in silk_corrMatrix_FIX() 109 matrix_ptr( XX, 0, 0, order ) = energy; in silk_corrMatrix_FIX() 112 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), rshifts_l… in silk_corrMatrix_FIX() 113 …energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), rshifts_local )… in silk_corrMatrix_FIX() 114 matrix_ptr( XX, j, j, order ) = energy; in silk_corrMatrix_FIX() [all …]
|
D | pitch_analysis_core_FIX.c | 104 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; in silk_pitch_analysis_core() local 168 silk_sum_sqr_shift( &energy, &shift, frame_4kHz, frame_length_4kHz ); in silk_pitch_analysis_core() 317 silk_sum_sqr_shift( &energy, &shift, frame_8kHz, frame_length_8kHz ); in silk_pitch_analysis_core() 469 silk_sum_sqr_shift( &energy, &shift, frame, frame_length ); in silk_pitch_analysis_core() 533 energy = energy_target; in silk_pitch_analysis_core() 538 energy = silk_ADD32( energy, in silk_pitch_analysis_core() 541 silk_assert( energy >= 0 ); in silk_pitch_analysis_core() 544 CCmax_new = silk_DIV32_varQ( cross_corr, energy, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core() 678 opus_int32 energy; in silk_P_Ana_calc_energy_st3() local 708 energy = silk_inner_prod_aligned( basis_ptr, basis_ptr, sf_length ); in silk_P_Ana_calc_energy_st3() [all …]
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
D | vp9_aq_variance.c | 25 #define ENERGY_IN_BOUNDS(energy)\ argument 26 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX) 38 unsigned int vp9_vaq_segment_id(int energy) { in vp9_vaq_segment_id() argument 39 ENERGY_IN_BOUNDS(energy); in vp9_vaq_segment_id() 41 return SEGMENT_ID(energy); in vp9_vaq_segment_id() 44 double vp9_vaq_rdmult_ratio(int energy) { in vp9_vaq_rdmult_ratio() argument 45 ENERGY_IN_BOUNDS(energy); in vp9_vaq_rdmult_ratio() 49 return RDMULT_RATIO(energy); in vp9_vaq_rdmult_ratio() 52 double vp9_vaq_inv_q_ratio(int energy) { in vp9_vaq_inv_q_ratio() argument 53 ENERGY_IN_BOUNDS(energy); in vp9_vaq_inv_q_ratio() [all …]
|
D | vp9_aq_variance.h | 21 unsigned int vp9_vaq_segment_id(int energy); 22 double vp9_vaq_rdmult_ratio(int energy); 23 double vp9_vaq_inv_q_ratio(int energy);
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_aq_variance.c | 25 #define ENERGY_IN_BOUNDS(energy)\ argument 26 assert((energy) >= ENERGY_MIN && (energy) <= ENERGY_MAX) 38 unsigned int vp9_vaq_segment_id(int energy) { in vp9_vaq_segment_id() argument 39 ENERGY_IN_BOUNDS(energy); in vp9_vaq_segment_id() 41 return SEGMENT_ID(energy); in vp9_vaq_segment_id() 44 double vp9_vaq_rdmult_ratio(int energy) { in vp9_vaq_rdmult_ratio() argument 45 ENERGY_IN_BOUNDS(energy); in vp9_vaq_rdmult_ratio() 49 return RDMULT_RATIO(energy); in vp9_vaq_rdmult_ratio() 52 double vp9_vaq_inv_q_ratio(int energy) { in vp9_vaq_inv_q_ratio() argument 53 ENERGY_IN_BOUNDS(energy); in vp9_vaq_inv_q_ratio() [all …]
|
D | vp9_aq_variance.h | 21 unsigned int vp9_vaq_segment_id(int energy); 22 double vp9_vaq_rdmult_ratio(int energy); 23 double vp9_vaq_inv_q_ratio(int energy);
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
D | cb_mem_energy.c | 41 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 = WEBRTC_SPL_LSHIFT_W32(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 = WEBRTC_SPL_LSHIFT_W32(energy, energyShifts[base_size]); in WebRtcIlbcfix_CbMemEnergy() 78 WebRtcIlbcfix_CbMemEnergyCalc(energy, range, ppi, ppo, energyW16, energyShifts, scale, base_size); in WebRtcIlbcfix_CbMemEnergy()
|
D | cb_mem_energy_calc.c | 25 int32_t energy, /* (i) input start energy */ in WebRtcIlbcfix_CbMemEnergyCalc() argument 50 energy += WEBRTC_SPL_RSHIFT_W32(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 = WEBRTC_SPL_LSHIFT_W32(energy, shft); in WebRtcIlbcfix_CbMemEnergyCalc()
|
D | cb_mem_energy_augmentation.c | 30 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 = WEBRTC_SPL_LSHIFT_W32(energy, (*enShPtr)); in WebRtcIlbcfix_CbMemEnergyAugmentation()
|
D | energy_inverse.c | 24 int16_t *energy, /* (i/o) Energy and inverse in WebRtcIlbcfix_EnergyInverse() argument 34 energyPtr=energy; in WebRtcIlbcfix_EnergyInverse() 41 energyPtr=energy; in WebRtcIlbcfix_EnergyInverse()
|
D | do_plc.c | 42 int32_t measure, maxMeasure, energy; in WebRtcIlbcfix_DoThePlc() local 228 energy = 0; in WebRtcIlbcfix_DoThePlc() 273 energy += WEBRTC_SPL_MUL_16_16_RSFT(PLCresidual[i], in WebRtcIlbcfix_DoThePlc() 279 …if (energy < (WEBRTC_SPL_SHIFT_W32(((int32_t)iLBCdec_inst->blockl*900),-(iLBCdec_inst->prevScale+1… in WebRtcIlbcfix_DoThePlc() 280 energy = 0; in WebRtcIlbcfix_DoThePlc()
|
/external/chromium_org/third_party/opus/src/silk/float/ |
D | corrMatrix_FLP.c | 67 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 …]
|
D | pitch_analysis_core_FLP.c | 93 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/libopus/silk/float/ |
D | corrMatrix_FLP.c | 67 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 …]
|
D | pitch_analysis_core_FLP.c | 93 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/ |
D | grp_data.cpp | 199 FIXP_DBL energy = sfbEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local 202 energy = nrgAddSaturate(energy, sfbEnergy->Short[wnd+j][sfb]); in FDKaacEnc_groupShortData() 204 sfbEnergy->Long[i++] = energy; in FDKaacEnc_groupShortData() 217 FIXP_DBL energy = sfbEnergyMS->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local 220 energy = nrgAddSaturate(energy, sfbEnergyMS->Short[wnd+j][sfb]); in FDKaacEnc_groupShortData() 222 sfbEnergyMS->Long[i++] = energy; in FDKaacEnc_groupShortData() 235 FIXP_DBL energy = sfbSpreadEnergy->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local 238 energy = nrgAddSaturate(energy, sfbSpreadEnergy->Short[wnd+j][sfb]); in FDKaacEnc_groupShortData() 240 sfbSpreadEnergy->Long[i++] = energy; in FDKaacEnc_groupShortData()
|
/external/eigen/bench/ |
D | vdw_new.cpp | 50 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/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
D | normal.cc | 79 int32_t energy = WebRtcSpl_DotProductWithScale(signal, signal, in Process() local 81 energy = energy / (energy_length >> scaling); in Process() 84 if ((energy != 0) && in Process() 85 (energy > background_noise_.Energy(channel_ix))) { in Process() 87 scaling = WebRtcSpl_NormW32(energy) - 16; in Process() 91 int16_t energy_scaled = energy << scaling; in Process()
|
/external/chromium_org/third_party/webrtc/common_audio/vad/ |
D | vad_filterbank.c | 162 uint32_t energy = 0; in LogOfEnergy() local 167 energy = (uint32_t) WebRtcSpl_Energy((int16_t*) data_in, data_length, in LogOfEnergy() 170 if (energy != 0) { in LogOfEnergy() 173 int normalizing_rshifts = 17 - WebRtcSpl_NormU32(energy); in LogOfEnergy() 185 energy <<= -normalizing_rshifts; in LogOfEnergy() 187 energy >>= normalizing_rshifts; in LogOfEnergy() 211 log2_energy += (int16_t) ((energy & 0x00003FFF) >> 4); in LogOfEnergy() 242 *total_energy += (int16_t) (energy >> -tot_rshifts); // Q0. in LogOfEnergy()
|
/external/opencv/cv/src/ |
D | cvsnakes.cpp | 216 float energy; in icvSnake8uC1R() local 228 Econt[(j + centery) * win.width + k + centerx] = energy = in icvSnake8uC1R() 232 maxEcont = MAX( maxEcont, energy ); in icvSnake8uC1R() 233 minEcont = MIN( minEcont, energy ); in icvSnake8uC1R() 251 float energy; in icvSnake8uC1R() local 268 Ecurv[(j + centery) * win.width + k + centerx] = energy = in icvSnake8uC1R() 270 maxEcurv = MAX( maxEcurv, energy ); in icvSnake8uC1R() 271 minEcurv = MIN( minEcurv, energy ); in icvSnake8uC1R() 286 float energy; in icvSnake8uC1R() local 324 Eimg[(j + centery) * win.width + k + centerx] = energy = in icvSnake8uC1R() [all …]
|
/external/speex/libspeex/ |
D | ltp_bfin.h | 164 VARDECL(spx_word32_t *energy); in open_loop_nbest_pitch() 169 ALLOC(energy, end-start+2, spx_word32_t); in open_loop_nbest_pitch() 178 energy[0]=inner_prod(sw-start, sw-start, len); in open_loop_nbest_pitch() 202 : : "d" (energy), "d" (&sw[-start-1]), "d" (&sw[-start+len-1]), in open_loop_nbest_pitch() 220 normalize16(energy, ener16, 180, end-start+1); in open_loop_nbest_pitch() 295 g = DIV32(corr[i-start], 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(energy[i-start])),6)); in open_loop_nbest_pitch()
|
/external/chromium_org/media/filters/ |
D | wsola_internals.cc | 63 float* energy) { in MultiChannelMovingBlockEnergies() argument 70 energy[k] = 0; in MultiChannelMovingBlockEnergies() 74 energy[k] += input_channel[m] * input_channel[m]; in MultiChannelMovingBlockEnergies() 80 energy[k + n * channels] = energy[k + (n - 1) * channels] - *slide_out * in MultiChannelMovingBlockEnergies()
|
/external/chromium_org/third_party/opus/src/silk/ |
D | PLC.c | 374 opus_int32 energy; in silk_PLC_glue_frames() local 386 silk_sum_sqr_shift( &energy, &energy_shift, frame, length ); in silk_PLC_glue_frames() 392 energy = silk_RSHIFT( energy, psPLC->conc_energy_shift - energy_shift ); in silk_PLC_glue_frames() 396 if( energy > psPLC->conc_energy ) { in silk_PLC_glue_frames() 403 energy = silk_RSHIFT( energy, silk_max_32( 24 - LZ, 0 ) ); in silk_PLC_glue_frames() 405 frac_Q24 = silk_DIV32( psPLC->conc_energy, silk_max( energy, 1 ) ); in silk_PLC_glue_frames()
|