Lines Matching refs:psv

409     PsyStateVar_t *const psv = &gfc->sv_psy;
415 psv->en[chn].s[sb][sblock] = enn[sb];
416 psv->thm[chn].s[sb][sblock] = thm[sb];
424 PsyStateVar_t *const psv = &gfc->sv_psy;
426 FLOAT *enn = &psv->en[chn].l[0];
427 FLOAT *thm = &psv->thm[chn].l[0];
435 PsyStateVar_t *const psv = &gfc->sv_psy;
445 psv->en[chn].s[sb][sblock] = tmp_enn;
446 psv->thm[chn].s[sb][sblock] = tmp_thm;
670 PsyStateVar_t *psv = &gfc->sv_psy;
705 psv->tot_ener[chn] = totalenergy;
757 PsyStateVar_t *psv = &gfc->sv_psy;
759 gfc->ov_psy.loudness_sq[gr_out][chn] = psv->loudness_sq_save[chn];
760 psv->loudness_sq_save[chn] = psycho_loudness_approx(fftenergy, gfc->ATH->eql_w);
777 PsyStateVar_t *const psv = &gfc->sv_psy;
806 masking_ratio[gr_out][chn].en = psv->en[chn];
807 masking_ratio[gr_out][chn].thm = psv->thm[chn];
811 masking_MS_ratio[gr_out][chn].en = psv->en[chn + 2];
812 masking_MS_ratio[gr_out][chn].thm = psv->thm[chn + 2];
835 en_subshort[i] = psv->last_en_subshort[chn][i + 6];
836 assert(psv->last_en_subshort[chn][i + 4] > 0);
837 attack_intensity[i] = en_subshort[i] / psv->last_en_subshort[chn][i + 4];
847 psv->last_en_subshort[chn][i] = en_subshort[i + 3] = p;
917 if (ns_attacks[chn][0] <= psv->last_attacks[chn]) {
921 if (psv->last_attacks[chn] == 3 ||
948 energy[chn] = psv->tot_ener[chn];
1045 PsyStateVar_t *const psv = &gfc->sv_psy;
1096 if (psv->blocktype_old[chn & 0x01] == SHORT_TYPE) {
1098 FLOAT const t1 = rpelev_s * psv->nb_s1[chn][b];
1099 FLOAT const t2 = rpelev2_s * psv->nb_s2[chn][b];
1105 FLOAT const t1 = rpelev_s * psv->nb_s1[chn][b];
1111 psv->nb_s2[chn][b] = psv->nb_s1[chn][b];
1112 psv->nb_s1[chn][b] = ecb;
1148 PsyStateVar_t *const psv = &gfc->sv_psy;
1208 if (psv->blocktype_old[chn & 0x01] == SHORT_TYPE) {
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];
1235 if (psv->blocktype_old[chn & 0x01] == NORM_TYPE) {
1243 psv->nb_l2[chn][b] = psv->nb_l1[chn][b];
1244 psv->nb_l1[chn][b] = ecb;
1300 vbrpsy_apply_block_type(PsyStateVar_t * psv, int nch, int const *uselongblock, int *blocktype_d)
1312 assert(psv->blocktype_old[chn] != START_TYPE);
1313 if (psv->blocktype_old[chn] == SHORT_TYPE)
1319 if (psv->blocktype_old[chn] == NORM_TYPE) {
1320 psv->blocktype_old[chn] = START_TYPE;
1322 if (psv->blocktype_old[chn] == STOP_TYPE)
1323 psv->blocktype_old[chn] = SHORT_TYPE;
1326 blocktype_d[chn] = psv->blocktype_old[chn]; /* value returned to calling program */
1327 psv->blocktype_old[chn] = blocktype; /* save for next call to l3psy_anal */
1416 PsyStateVar_t *const psv = &gfc->sv_psy;
1451 memcpy(&last_thm[0], &psv->thm[0], sizeof(last_thm));
1517 thmm = psv->thm[chn].s[sb][sblock];
1535 else if ((sblock == 0 && psv->last_attacks[chn] == 3)
1560 psv->thm[chn].s[sb][sblock] = new_thmm[sblock];
1566 psv->last_attacks[chn] = ns_attacks[chn][2];
1573 vbrpsy_apply_block_type(psv, cfg->channels_out, uselongblock, blocktype_d);
1882 PsyStateVar_t *const psv = &gfc->sv_psy;
1907 psv->blocktype_old[0] = psv->blocktype_old[1] = NORM_TYPE; /* the vbr header is long blocks */
1911 psv->nb_l1[i][j] = 1e20;
1912 psv->nb_l2[i][j] = 1e20;
1913 psv->nb_s1[i][j] = psv->nb_s2[i][j] = 1.0;
1916 psv->en[i].l[sb] = 1e20;
1917 psv->thm[i].l[sb] = 1e20;
1921 psv->en[i].s[sb][j] = 1e20;
1922 psv->thm[i].s[sb][j] = 1e20;
1924 psv->last_attacks[i] = 0;
1927 psv->last_en_subshort[i][j] = 10.;
1932 psv->loudness_sq_save[0] = psv->loudness_sq_save[1] = 0.0;