Lines Matching refs:FLOAT

215 static  FLOAT
216 psycho_loudness_approx(FLOAT const *energy, FLOAT const *eql_w)
219 FLOAT loudness_power;
251 static const FLOAT ma_max_i1 = 3.6517412725483771;
253 static const FLOAT ma_max_i2 = 31.622776601683793;
255 static const FLOAT ma_max_m = 31.622776601683793;
263 static const FLOAT tab[] = {
291 FLOAT const _ma_max_i1 = pow(10, (I1LIMIT + 1) / 16.0);
292 FLOAT const _ma_max_i2 = pow(10, (I2LIMIT + 1) / 16.0);
293 FLOAT const _ma_max_m = pow(10, (MLIMIT) / 10.0);
304 inline static FLOAT
305 vbrpsy_mask_add(FLOAT m1, FLOAT m2, int b, int delta)
307 static const FLOAT table2[] = {
314 FLOAT ratio;
361 convert_partition2scalefac(PsyConst_CB2SB_t const *const gd, FLOAT const *eb, FLOAT const *thr,
362 FLOAT enn_out[], FLOAT thm_out[])
364 FLOAT enn, thmm;
388 FLOAT const w_curr = gd->bo_weight[sb];
389 FLOAT const w_next = 1.0f - w_curr;
406 convert_partition2scalefac_s(lame_internal_flags * gfc, FLOAT const *eb, FLOAT const *thr, int chn,
411 FLOAT enn[SBMAX_s], thm[SBMAX_s];
422 convert_partition2scalefac_l(lame_internal_flags * gfc, FLOAT const *eb, FLOAT const *thr, int chn)
426 FLOAT *enn = &psv->en[chn].l[0];
427 FLOAT *thm = &psv->thm[chn].l[0];
432 convert_partition2scalefac_l_to_s(lame_internal_flags * gfc, FLOAT const *eb, FLOAT const *thr,
437 FLOAT enn[SBMAX_s], thm[SBMAX_s];
441 FLOAT const scale = 1. / 64.f;
442 FLOAT const tmp_enn = enn[sb];
443 FLOAT const tmp_thm = thm[sb] * scale;
453 static inline FLOAT
454 NS_INTERP(FLOAT x, FLOAT y, FLOAT r)
468 static FLOAT
469 pecalc_s(III_psy_ratio const *mr, FLOAT masking_lower)
471 FLOAT pe_s;
472 static const FLOAT regcoef_s[] = {
492 FLOAT const thm = mr->thm.s[sb][sblock];
495 FLOAT const x = thm * masking_lower;
496 FLOAT const en = mr->en.s[sb][sblock];
513 static FLOAT
514 pecalc_l(III_psy_ratio const *mr, FLOAT masking_lower)
516 FLOAT pe_l;
517 static const FLOAT regcoef_l[] = {
545 FLOAT const thm = mr->thm.l[sb];
548 FLOAT const x = thm * masking_lower;
549 FLOAT const en = mr->en.l[sb];
567 calc_energy(PsyConst_CB2SB_t const *l, FLOAT const *fftenergy, FLOAT * eb, FLOAT * max, FLOAT * avg)
572 FLOAT ebb = 0, m = 0;
575 FLOAT const el = fftenergy[j];
594 calc_mask_index_l(lame_internal_flags const *gfc, FLOAT const *max,
595 FLOAT const *avg, unsigned char *mask_idx)
598 FLOAT m, a;
667 int gr_out, FLOAT fftenergy[HBLKSIZE], FLOAT(*wsamp_l)[BLKSIZE])
678 FLOAT const sqrt2_half = SQRT2 * 0.5f;
681 FLOAT const l = wsamp_l[0][j];
682 FLOAT const r = wsamp_l[1][j];
695 FLOAT const re = (*wsamp_l)[BLKSIZE / 2 - j];
696 FLOAT const im = (*wsamp_l)[BLKSIZE / 2 + j];
701 FLOAT totalenergy = 0.0f;
719 int sblock, FLOAT(*fftenergy_s)[HBLKSIZE_s], FLOAT(*wsamp_s)[3][BLKSIZE_s])
727 FLOAT const sqrt2_half = SQRT2 * 0.5f;
730 FLOAT const l = wsamp_s[0][sblock][j];
731 FLOAT const r = wsamp_s[1][sblock][j];
743 FLOAT const re = (*wsamp_s)[sblock][BLKSIZE_s / 2 - j];
744 FLOAT const im = (*wsamp_s)[sblock][BLKSIZE_s / 2 + j];
755 const FLOAT fftenergy[HBLKSIZE])
772 FLOAT energy[4], FLOAT sub_short_factor[4][3], int ns_attacks[4][4],
775 FLOAT ns_hpfsmpl[2][576];
788 static const FLOAT fircoef[] = {
797 FLOAT sum1, sum2;
816 FLOAT attack_intensity[12];
817 FLOAT en_subshort[12];
818 FLOAT en_short[4] = { 0, 0, 0, 0 };
819 FLOAT const *pf = ns_hpfsmpl[chn & 1];
824 FLOAT const l = ns_hpfsmpl[0][i];
825 FLOAT const r = ns_hpfsmpl[1][i];
842 FLOAT const *const pfe = pf + 576 / 9;
843 FLOAT p = 1.;
865 FLOAT const enn =
867 FLOAT factor = 1.f;
878 FLOAT x = attack_intensity[0];
890 FLOAT x = gfc->cd_psy->attack_threshold[chn];
904 FLOAT const u = en_short[i - 1];
905 FLOAT const v = en_short[i];
906 FLOAT const m = Max(u, v);
957 FLOAT *nbs2 = &gfc->sv_psy.nb_s2[chn][0];
958 FLOAT *nbs1 = &gfc->sv_psy.nb_s1[chn][0];
969 vbrpsy_calc_mask_index_s(lame_internal_flags const *gfc, FLOAT const *max,
970 FLOAT const *avg, unsigned char *mask_idx)
973 FLOAT m, a;
1042 vbrpsy_compute_masking_s(lame_internal_flags * gfc, const FLOAT(*fftenergy_s)[HBLKSIZE_s],
1043 FLOAT * eb, FLOAT * thr, int chn, int sblock)
1047 FLOAT max[CBANDS], avg[CBANDS];
1055 FLOAT ebb = 0, m = 0;
1058 FLOAT const el = fftenergy_s[sblock][j];
1078 FLOAT x, ecb, avg_mask;
1079 FLOAT const masking_lower = gds->masking_lower[b] * gfc->sv_qnt.masking_lower;
1098 FLOAT const t1 = rpelev_s * psv->nb_s1[chn][b];
1099 FLOAT const t2 = rpelev2_s * psv->nb_s2[chn][b];
1100 FLOAT const tm = (t2 > 0) ? Min(ecb, t2) : ecb;
1105 FLOAT const t1 = rpelev_s * psv->nb_s1[chn][b];
1145 vbrpsy_compute_masking_l(lame_internal_flags * gfc, const FLOAT fftenergy[HBLKSIZE],
1146 FLOAT eb_l[CBANDS], FLOAT thr[CBANDS], int chn)
1150 FLOAT max[CBANDS], avg[CBANDS];
1166 FLOAT x, ecb, avg_mask, t;
1167 FLOAT const masking_lower = gdl->masking_lower[b] * gfc->sv_qnt.masking_lower;
1209 FLOAT const ecb_limit = rpelev * psv->nb_l1[chn][b];
1226 FLOAT ecb_limit_2 = rpelev2 * psv->nb_l2[chn][b];
1227 FLOAT ecb_limit_1 = rpelev * psv->nb_l1[chn][b];
1228 FLOAT ecb_limit;
1337 vbrpsy_compute_MS_thresholds(const FLOAT eb[4][CBANDS], FLOAT thr[4][CBANDS],
1338 const FLOAT cb_mld[CBANDS], const FLOAT ath_cb[CBANDS], FLOAT athlower,
1339 FLOAT msfix, int n)
1341 FLOAT const msfix2 = msfix * 2.f;
1342 FLOAT rside, rmid;
1345 FLOAT const ebM = eb[2][b];
1346 FLOAT const ebS = eb[3][b];
1347 FLOAT const thmL = thr[0][b];
1348 FLOAT const thmR = thr[1][b];
1349 FLOAT thmM = thr[2][b];
1350 FLOAT thmS = thr[3][b];
1356 FLOAT const mld_m = cb_mld[b] * ebS;
1357 FLOAT const mld_s = cb_mld[b] * ebM;
1358 FLOAT const tmp_m = Min(thmS, mld_m);
1359 FLOAT const tmp_s = Min(thmM, mld_s);
1372 FLOAT thmLR, thmMS;
1373 FLOAT const ath = ath_cb[b] * athlower;
1374 FLOAT const tmp_l = Max(thmL, ath);
1375 FLOAT const tmp_r = Max(thmR, ath);
1381 FLOAT const f = thmLR * msfix2 / thmMS;
1412 FLOAT percep_entropy[2], FLOAT percep_MS_entropy[2],
1413 FLOAT energy[4], int blocktype_d[2])
1424 FLOAT(*wsamp_l)[BLKSIZE];
1425 FLOAT(*wsamp_s)[3][BLKSIZE_s];
1426 FLOAT fftenergy[HBLKSIZE];
1427 FLOAT fftenergy_s[3][HBLKSIZE_s];
1428 FLOAT wsamp_L[2][BLKSIZE];
1429 FLOAT wsamp_S[2][3][BLKSIZE_s];
1430 FLOAT eb[4][CBANDS], thr[4][CBANDS];
1432 FLOAT sub_short_factor[4][3];
1433 FLOAT thmm;
1434 FLOAT const pcfact = 0.6f;
1435 FLOAT const ath_factor =
1438 const FLOAT(*const_eb)[CBANDS] = (const FLOAT(*)[CBANDS]) eb;
1439 const FLOAT(*const_fftenergy_s)[HBLKSIZE_s] = (const FLOAT(*)[HBLKSIZE_s]) fftenergy_s;
1515 FLOAT new_thmm[3], prev_thm, t1, t2;
1579 FLOAT *ppe;
1615 static FLOAT
1616 s3_func(FLOAT bark)
1618 FLOAT tempx, x, tempy, temp;
1651 static FLOAT
1700 static FLOAT
1712 init_numline(PsyConst_CB2SB_t * gd, FLOAT sfreq, int fft_size,
1715 FLOAT b_frq[CBANDS + 1];
1716 FLOAT const mdct_freq_frac = sfreq / (2.0f * mdct_size);
1717 FLOAT const deltafreq = fft_size / (2.0f * mdct_size);
1727 FLOAT bark1;
1761 FLOAT const freq = sfreq * (j + nl / 2);
1788 FLOAT const f_tmp = mdct_freq_frac * end;
1789 FLOAT bo_w = (f_tmp - b_frq[bo]) / (b_frq[bo + 1] - b_frq[bo]);
1805 compute_bark_values(PsyConst_CB2SB_t const *gd, FLOAT sfreq, int fft_size,
1806 FLOAT * bval, FLOAT * bval_width)
1813 FLOAT bark1, bark2;
1827 init_s3_values(FLOAT ** p, int (*s3ind)[2], int npart,
1828 FLOAT const *bval, FLOAT const *bval_width, FLOAT const *norm)
1830 FLOAT s3[CBANDS][CBANDS];
1847 FLOAT v = s3_func(bval[i] - bval[j]) * bval_width[j];
1865 *p = lame_calloc(FLOAT, numberOfNoneZero);
1885 FLOAT bvl_a = 13, bvl_b = 24;
1886 FLOAT snr_l_a = 0, snr_l_b = 0;
1887 FLOAT snr_s_a = -8.25, snr_s_b = -4.5;
1889 FLOAT bval[CBANDS];
1890 FLOAT bval_width[CBANDS];
1891 FLOAT norm[CBANDS];
1892 FLOAT const sfreq = cfg->samplerate_out;
1894 FLOAT xav = 10, xbv = 12;
1895 FLOAT const minval_low = (0.f - cfg->minval);
1965 FLOAT const freq = sfreq * j / (1000.0 * BLKSIZE);
1966 FLOAT level;
2018 FLOAT const freq = sfreq * j / (1000.0 * BLKSIZE_s);
2019 FLOAT level;
2064 FLOAT msfix;
2094 FLOAT freq;
2095 FLOAT const freq_inc = (FLOAT) cfg->samplerate_out / (FLOAT) (BLKSIZE);
2096 FLOAT eql_balance = 0.0;