Lines Matching defs:gr
160 int gr, ch;
173 for (gr = 0; gr < cfg->mode_gr; ++gr) {
175 int bt = gfc->l3_side.tt[gr][ch].block_type;
176 if (gfc->l3_side.tt[gr][ch].mixed_block_flag)
194 int ch, gr;
219 for (gr = 0; gr < cfg->mode_gr; gr++) {
221 gfc->l3_side.tt[gr][ch].block_type = SHORT_TYPE;
254 gr 0 gr 1
259 gr 0:
263 gr 1:
327 int ch, gr;
369 for (gr = 0; gr < cfg->mode_gr; gr++) {
372 bufp[ch] = &inbuf[ch][576 + gr * 576 - FFTOFFSET];
374 ret = L3psycho_anal_vbr(gfc, bufp, gr,
376 pe[gr], pe_MS[gr], tot_ener[gr], blocktype);
381 ms_ener_ratio[gr] = tot_ener[gr][2] + tot_ener[gr][3];
382 if (ms_ener_ratio[gr] > 0)
383 ms_ener_ratio[gr] = tot_ener[gr][3] / ms_ener_ratio[gr];
388 gr_info *const cod_info = &gfc->l3_side.tt[gr][ch];
433 for (gr = 0; gr < cfg->mode_gr; gr++) {
435 sum_pe_MS += pe_MS[gr][ch];
436 sum_pe_LR += pe[gr][ch];
466 for (gr = 0; gr < cfg->mode_gr; gr++) {
468 gfc->pinfo->ms_ratio[gr] = 0;
469 gfc->pinfo->ms_ener_ratio[gr] = ms_ener_ratio[gr];
470 gfc->pinfo->blocktype[gr][ch] = gfc->l3_side.tt[gr][ch].block_type;
471 gfc->pinfo->pe[gr][ch] = pe_use[gr][ch];
472 memcpy(gfc->pinfo->xr[gr][ch], &gfc->l3_side.tt[gr][ch].xr[0], sizeof(FLOAT) * 576);
476 gfc->pinfo->ers[gr][ch] = gfc->pinfo->ers[gr][ch + 2];
477 memcpy(gfc->pinfo->energy[gr][ch], gfc->pinfo->energy[gr][ch + 2],
478 sizeof(gfc->pinfo->energy[gr][ch]));
503 for (gr = 0; gr < cfg->mode_gr; gr++)
505 f += pe_use[gr][ch];
513 for (gr = 0; gr < cfg->mode_gr; gr++) {
515 pe_use[gr][ch] *= f;