Home
last modified time | relevance | path

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

12345678910>>...19

/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/
Darm_lms_norm_f32.c175 float32_t energy; /* Energy of the input */ in arm_lms_norm_f32() local
187 energy = S->energy; in arm_lms_norm_f32()
212 energy -= x0 * x0; in arm_lms_norm_f32()
213 energy += in * in; in arm_lms_norm_f32()
260 w = (e * mu) / (energy + 0.000000119209289f); in arm_lms_norm_f32()
310 S->energy = energy; in arm_lms_norm_f32()
366 float32_t energy; /* Energy of the input */ in arm_lms_norm_f32() local
373 energy = S->energy; in arm_lms_norm_f32()
398 energy -= x0 * x0; in arm_lms_norm_f32()
399 energy += in * in; in arm_lms_norm_f32()
[all …]
Darm_lms_norm_q31.c81 q63_t energy; /* Energy of the input */ in arm_lms_norm_q31() local
92 energy = S->energy; in arm_lms_norm_q31()
117 energy = (q31_t) ((((q63_t) energy << 32) - (((q63_t) x0 * x0) << 1)) >> 32); in arm_lms_norm_q31()
118 energy = (q31_t) (((((q63_t) in * in) << 1) + (energy << 32)) >> 32); in arm_lms_norm_q31()
183 postShift = arm_recip_q31(energy + DELTA_Q31, &oneByEnergy, &S->recipTable[0]); in arm_lms_norm_q31()
262 S->energy = (q31_t) energy; in arm_lms_norm_q31()
Darm_lms_norm_q15.c81 q31_t energy; /* Energy of the input */ in arm_lms_norm_q15() local
92 energy = S->energy; in arm_lms_norm_q15()
117 energy -= (((q31_t) x0 * (x0)) >> 15); in arm_lms_norm_q15()
118 energy += (((q31_t) in * (in)) >> 15); in arm_lms_norm_q15()
179 postShift = arm_recip_q15((q15_t) energy + DELTA_Q15, &oneByEnergy, S->recipTable); in arm_lms_norm_q15()
250 S->energy = (q15_t) energy; in arm_lms_norm_q15()
/third_party/ffmpeg/libavcodec/
Daacenc_quantization.h46 int *bits, float *energy, int BT_ZERO, int BT_UNSIGNED, in quantize_and_encode_band_cost_template() argument
67 if (energy) in quantize_and_encode_band_cost_template()
68 *energy = qenergy; in quantize_and_encode_band_cost_template()
157 if (energy) in quantize_and_encode_band_cost_template()
158 *energy = qenergy; in quantize_and_encode_band_cost_template()
166 int *bits, float *energy) { in quantize_and_encode_band_cost_NONE() argument
177 int *bits, float *energy) { \
180 BT_ESC ? ESC_BT : cb, lambda, uplim, bits, energy, \
200 int *bits, float *energy) = {
224 int *bits, float *energy) = {
[all …]
Dg723_1dec.c444 int energy[5] = {0, 0, 0, 0, 0}; in comp_ppf_coeff() local
446 int fwd_lag = autocorr_max(buf, offset, &energy[1], pitch_lag, in comp_ppf_coeff()
448 int back_lag = autocorr_max(buf, offset, &energy[3], pitch_lag, in comp_ppf_coeff()
460 energy[0] = ff_g723_1_dot_product(buf, buf, SUBFRAME_LEN); in comp_ppf_coeff()
464 energy[2] = ff_g723_1_dot_product(buf + fwd_lag, buf + fwd_lag, in comp_ppf_coeff()
469 energy[4] = ff_g723_1_dot_product(buf - back_lag, buf - back_lag, in comp_ppf_coeff()
475 temp1 = FFMAX(energy[i], temp1); in comp_ppf_coeff()
479 energy[i] = (energy[i] << scale) >> 16; in comp_ppf_coeff()
482 comp_ppf_gains(fwd_lag, ppf, cur_rate, energy[0], energy[1], in comp_ppf_coeff()
483 energy[2]); in comp_ppf_coeff()
[all …]
Dra144dec.c75 unsigned int energy; in ra144_decode_frame() local
101 energy = ff_energy_tab[get_bits(&gb, 5)]; in ra144_decode_frame()
105 energy <= ractx->old_energy, in ra144_decode_frame()
106 ff_t_sqrt(energy*ractx->old_energy) >> 12); in ra144_decode_frame()
107 refl_rms[2] = ff_interp(ractx, block_coefs[2], 3, 0, energy); in ra144_decode_frame()
108 refl_rms[3] = ff_rescale_rms(ractx->lpc_refl_rms[0], energy); in ra144_decode_frame()
119 ractx->old_energy = energy; in ra144_decode_frame()
Dopus_celt.c56 block->energy[i] = 0.0; in celt_decode_coarse_energy()
72 block->energy[i] = FFMAX(-9.0f, block->energy[i]) * alpha + prev[j] + value; in celt_decode_coarse_energy()
92 block->energy[i] += offset; in celt_decode_fine_energy()
112 f->block[j].energy[i] += offset; in celt_decode_final_energy()
152 float log_norm = block->energy[i] + ff_celt_mean_energy[i]; in celt_denormalize()
295 Ediff = block->energy[i] - FFMIN(prev[0], prev[1]); in process_anticollapse()
392 f->block[0].energy[i] = FFMAX(f->block[0].energy[i], f->block[1].energy[i]); in ff_celt_decode_frame()
428 for (j = 0; j < FF_ARRAY_ELEMS(block->energy); j++) in ff_celt_decode_frame()
429 block->energy[j] = CELT_ENERGY_SILENCE; in ff_celt_decode_frame()
462 memcpy(f->block[1].energy, f->block[0].energy, sizeof(f->block[0].energy)); in ff_celt_decode_frame()
[all …]
Daacenc_quantization_misc.h34 int *bits, float *energy, int rtz) in quantize_band_cost_cached() argument
41 cb, lambda, uplim, &entry->bits, &entry->energy, rtz); in quantize_band_cost_cached()
48 if (energy) in quantize_band_cost_cached()
49 *energy = entry->energy; in quantize_band_cost_cached()
Dcngenc.c72 double energy = 0; in cng_encode_frame() local
83 energy += samples[i] * samples[i]; in cng_encode_frame()
85 energy /= frame->nb_samples; in cng_encode_frame()
86 if (energy > 0) { in cng_encode_frame()
87 double dbov = 10 * log10(energy / 1081109975); in cng_encode_frame()
Dra144enc.c441 int energy = 0; in ra144_encode_frame() local
459 energy += (lpc_data[i] * lpc_data[i]) >> 4; in ra144_encode_frame()
465 energy += (lpc_data[i] * lpc_data[i]) >> 4; in ra144_encode_frame()
470 energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab, in ra144_encode_frame()
505 energy <= ractx->old_energy, in ra144_encode_frame()
506 ff_t_sqrt(energy * ractx->old_energy) >> 12); in ra144_encode_frame()
507 refl_rms[2] = ff_interp(ractx, block_coefs[2], 3, 0, energy); in ra144_encode_frame()
508 refl_rms[3] = ff_rescale_rms(ractx->lpc_refl_rms[0], energy); in ra144_encode_frame()
510 put_bits(&pb, 5, quantize(energy, ff_energy_tab, 32)); in ra144_encode_frame()
515 ractx->old_energy = energy; in ra144_encode_frame()
Daacpsy.c109 float energy; ///< band energy member
544 if (band->energy > band->thr) { in calc_pe_3gpp()
545 a = log2f(band->energy); in calc_pe_3gpp()
579 if (band->energy > thr) { in calc_reduced_thr_3gpp()
590 if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) { in calc_reduced_thr_3gpp()
591 thr = FFMAX(band->thr, band->energy * min_snr); in calc_reduced_thr_3gpp()
612 band->energy = 0.0f; in calc_thr_3gpp()
615 band->energy += coefs[start+i] * coefs[start+i]; in calc_thr_3gpp()
619 Temp = band->energy > 0 ? sqrtf((float)band_sizes[g] / band->energy) : 0; in calc_thr_3gpp()
620 band->thr = band->energy * 0.001258925f; in calc_thr_3gpp()
[all …]
Dac3enc_template.c119 CoefSumType energy[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][16] = {{{0}}}; in apply_channel_coupling() local
165 MAC_COEF(energy[blk][ch][bnd], v, v); in apply_channel_coupling()
182 cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy[blk][ch][bnd], in apply_channel_coupling()
183 energy[blk][CPL_CH][bnd]); in apply_channel_coupling()
242 energy_cpl = energy[blk][CPL_CH][bnd]; in apply_channel_coupling()
243 energy_ch = energy[blk][ch][bnd]; in apply_channel_coupling()
247 energy_cpl += energy[blk1][CPL_CH][bnd]; in apply_channel_coupling()
248 energy_ch += energy[blk1][ch][bnd]; in apply_channel_coupling()
Dcngdec.c36 int energy, target_energy; member
129 p->energy = p->energy / 2 + p->target_energy / 2; in cng_decode_frame()
133 p->energy = p->target_energy; in cng_decode_frame()
142 scaling = sqrt(e * p->energy / 1081109975); in cng_decode_frame()
Dra144.c1657 int ff_interp(RA144Context *ractx, int16_t *out, int a, int copyold, int energy) in ff_interp() argument
1672 return ff_rescale_rms(ractx->lpc_refl_rms[copyold], energy); in ff_interp()
1674 return ff_rescale_rms(ff_rms(work), energy); in ff_interp()
1678 unsigned int ff_rescale_rms(unsigned int rms, unsigned int energy) in ff_rescale_rms() argument
1680 return (rms * energy) >> 10; in ff_rescale_rms()
Dg723_1enc.c547 int energy[15]; in comp_harmonic_coeff() local
552 energy[i << 1] = ff_dot_product(buf - j, buf - j, SUBFRAME_LEN); in comp_harmonic_coeff()
554 energy[(i << 1) + 1] = ff_dot_product(buf, buf - j, SUBFRAME_LEN); in comp_harmonic_coeff()
558 energy[14] = ff_dot_product(buf, buf, SUBFRAME_LEN); in comp_harmonic_coeff()
563 max = FFMAX(max, FFABS(energy[i])); in comp_harmonic_coeff()
567 energy[i] = av_clipl_int32((int64_t)(energy[i] << exp) + in comp_harmonic_coeff()
577 eng = energy[i << 1]; in comp_harmonic_coeff()
578 ccr = energy[(i << 1) + 1]; in comp_harmonic_coeff()
597 eng = energy[14] * max_eng; in comp_harmonic_coeff()
599 ccr = energy[(hf->index << 1) + 1] * energy[(hf->index << 1) + 1]; in comp_harmonic_coeff()
[all …]
Daaccoder.c315 if (band->energy <= band->threshold || band->threshold == 0.0f) { in search_for_quantizers_anmr()
417 float uplim = 0.0f, energy = 0.0f; in search_for_quantizers_fast() local
421 energy += band->energy; in search_for_quantizers_fast()
422 if (band->energy <= band->threshold || band->threshold == 0.0f) { in search_for_quantizers_fast()
600 sfb_energy += band->energy; in search_for_pns()
604 min_energy = max_energy = band->energy; in search_for_pns()
606 min_energy = FFMIN(min_energy, band->energy); in search_for_pns()
607 max_energy = FFMAX(max_energy, band->energy); in search_for_pns()
664 … dist2 += band->energy/(band->spread*band->spread)*lambda*dist_thresh/band->threshold; in search_for_pns()
730 sfb_energy += band->energy; in mark_pns()
[all …]
Dra144.h76 int energy);
77 unsigned int ff_rescale_rms(unsigned int rms, unsigned int energy);
Dopusenc_psy.c110 float avg_c_s, energy = 0.0f, dist_dev = 0.0f; in step_collect_psy_metrics() local
114 energy += coeffs[j]*coeffs[j]; in step_collect_psy_metrics()
116 st->energy[ch][i] += sqrtf(energy); in step_collect_psy_metrics()
117 silence |= !!st->energy[ch][i]; in step_collect_psy_metrics()
118 avg_c_s = energy / range; in step_collect_psy_metrics()
146 float bp_e = bessel_filter(&s->bfilter_lo[ch][i], st->energy[ch][i]); in step_collect_psy_metrics()
331 … weight += start[f]->change_amp[ch][i] + start[f]->tone[ch][i] + start[f]->energy[ch][i]; in celt_gauge_psy_weight()
Dlibtwolame.c40 int energy; member
72 twolame_set_energy_levels(s->glopts, s->energy); in twolame_encode_init()
185 …{ "energy_levels","enable energy levels", OFFSET(energy), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AE…
Dilbcdec.c960 int32_t measure, max_measure, energy; in do_plc() local
1133 energy = 0; in do_plc()
1171 energy += SPL_MUL_16_16_RSFT(plc_residual[i], plc_residual[i], (s->prevScale + 1)); in do_plc()
1176 if (energy < SPL_SHIFT_W32(s->block_samples * 900, -s->prevScale - 1)) { in do_plc()
1177 energy = 0; in do_plc()
1212 int32_t cross_corr, energy; in xcorr_coeff() local
1251 energy = scale_dot_product(regressor, regressor, subl, shifts); in xcorr_coeff()
1259 if ((energy > 0) && (cross_corr > 0)) { in xcorr_coeff()
1263 energy_scale = norm_w32(energy) - 16; in xcorr_coeff()
1264 energy_mod = (int16_t) SPL_SHIFT_W32(energy, energy_scale); in xcorr_coeff()
[all …]
/third_party/ffmpeg/libavcodec/mips/
Daaccoder_mips.c142 int *bits, float *energy, const float ROUNDING) in quantize_and_encode_band_cost_SQUAD_mips() argument
213 if (out || energy) { in quantize_and_encode_band_cost_SQUAD_mips()
226 if (energy) in quantize_and_encode_band_cost_SQUAD_mips()
230 if (energy) in quantize_and_encode_band_cost_SQUAD_mips()
231 *energy = qenergy; in quantize_and_encode_band_cost_SQUAD_mips()
238 int *bits, float *energy, const float ROUNDING) in quantize_and_encode_band_cost_UQUAD_mips() argument
328 if (out || energy) { in quantize_and_encode_band_cost_UQUAD_mips()
341 if (energy) in quantize_and_encode_band_cost_UQUAD_mips()
345 if (energy) in quantize_and_encode_band_cost_UQUAD_mips()
346 *energy = qenergy; in quantize_and_encode_band_cost_UQUAD_mips()
[all …]
Daacpsy_mips.h76 band->energy = 0.0f; in calc_thr_3gpp_mips()
107 [e]"+f"(band->energy), [f]"+f"(form_factor), in calc_thr_3gpp_mips()
116 Temp = sqrtf((float)band_sizes[g] / band->energy); in calc_thr_3gpp_mips()
117 band->thr = band->energy * 0.001258925f; in calc_thr_3gpp_mips()
/third_party/icu/icu4c/source/test/testdata/cldr/units/
DunitsTest.txt65 energy ; electronvolt ; kilogram-square-meter-per-square-second ; 0.0000000000000000001602177 * x ;…
66 energy ; dalton ; kilogram-square-meter-per-square-second ; 0.00000000014924180856 * x ; 1.492418E-7
67 energy ; joule ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
68 energy ; newton-meter ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
69 energy ; pound-force-foot ; kilogram-square-meter-per-square-second ; 1.3558179483314004 * x ; 1355…
70 energy ; calorie ; kilogram-square-meter-per-square-second ; 4.184 * x ; 4184.0
71 energy ; kilojoule ; kilogram-square-meter-per-square-second ; 1,000 * x ; 1000000.0
72 energy ; british-thermal-unit ; kilogram-square-meter-per-square-second ; 9,489.1523804/9 * x ; 105…
73 energy ; foodcalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
74 energy ; kilocalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/
DunitsTest.txt65 energy ; electronvolt ; kilogram-square-meter-per-square-second ; 0.0000000000000000001602177 * x ;…
66 energy ; dalton ; kilogram-square-meter-per-square-second ; 0.00000000014924180856 * x ; 1.492418E-7
67 energy ; joule ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
68 energy ; newton-meter ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
69 energy ; pound-force-foot ; kilogram-square-meter-per-square-second ; 1.3558179483314004 * x ; 1355…
70 energy ; calorie ; kilogram-square-meter-per-square-second ; 4.184 * x ; 4184.0
71 energy ; kilojoule ; kilogram-square-meter-per-square-second ; 1,000 * x ; 1000000.0
72 energy ; british-thermal-unit ; kilogram-square-meter-per-square-second ; 9,489.1523804/9 * x ; 105…
73 energy ; foodcalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
74 energy ; kilocalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
[all …]
/third_party/ffmpeg/libavfilter/
Debur128.c367 static double ebur128_energy_to_loudness(double energy) in ebur128_energy_to_loudness() argument
369 return 10 * log10(energy) - 0.691; in ebur128_energy_to_loudness()
372 static size_t find_histogram_index(double energy) in find_histogram_index() argument
380 if (energy >= histogram_energy_boundaries[index_mid]) { in find_histogram_index()
618 double energy; in ff_ebur128_loudness_shortterm() local
619 int error = ebur128_energy_shortterm(st, &energy); in ff_ebur128_loudness_shortterm()
622 } else if (energy <= 0.0) { in ff_ebur128_loudness_shortterm()
626 *out = ebur128_energy_to_loudness(energy); in ff_ebur128_loudness_shortterm()

12345678910>>...19