Lines Matching refs:gr
91 GtkWidget *enerbox[2]; /* spectrum, gr=0,1 plotted here */
92 GtkWidget *mdctbox[2]; /* mdct coefficients gr=0,1 plotted here */
93 GtkWidget *sfbbox[2]; /* scalefactors gr=0,1 plotted here */
249 int i, j, n, ch, gr;
366 for (gr = 0; gr < mode_gr; gr++)
368 blocktype[gr][ch] = pplot1->mpg123blocktype[gr][ch];
370 blocktype[gr][ch] = pplot->blocktype[gr][ch];
409 for (gr = 0; gr <= 2; gr++) {
410 xcord[0] = 223.5 + gr * 576;
411 xcord[1] = 223.5 + gr * 576;
414 for (gr = 0; gr < mode_gr; gr++) {
415 if (blocktype[gr][ch] == 2)
417 xcord[0] = 223.5 + gr * 576 + i * 192;
418 xcord[1] = 223.5 + gr * 576 + i * 192;
473 for (gr = 0; gr <= 2; gr++) {
474 xcord[0] = 223.5 + gr * 576;
475 xcord[1] = 223.5 + gr * 576;
478 for (gr = 0; gr < 2; gr++) {
479 if (blocktype[gr][ch] == 2)
481 xcord[0] = 223.5 + gr * 576 + i * 192;
482 xcord[1] = 223.5 + gr * 576 + i * 192;
532 for (gr = 0; gr < mode_gr; gr++) {
535 switch (blocktype[gr][ch]) {
550 if (pplot1->mixed[gr][ch])
558 data = pplot1->mpg123xr[gr][0];
559 data2 = pplot1->mpg123xr[gr][1];
562 data = pplot->xr[gr][0];
563 data2 = pplot->xr[gr][1];
574 bits = pplot1->mainbits[gr][ch];
575 bits2 = pplot1->sfbits[gr][ch];
578 bits = pplot->LAMEmainbits[gr][ch];
579 bits2 = pplot->LAMEsfbits[gr][ch];
581 sprintf(title2, "MDCT%1i(%s) bits=%i/%i ", gr, label, bits, bits2);
582 gpk_bargraph_draw(mdctbox[gr], 0, xcord, ycord, xmn, ymn, xmx, ymx, 1, title2, 0, barcolor);
587 if (blocktype[gr][ch] == SHORT_TYPE) {
604 gpk_rectangle_draw(mdctbox[gr], xcord, ycord, xmn, ymn, xmx, ymx, &yellow);
621 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
630 console_printf("%i %i i=%i mdct: (db) %f %f \n", pplot->frameNum, gr, i,
642 sprintf(title2,"MDCT%1i %5.2f %5.2f bits=%i",gr,ymn,ymx,
643 pplot1->mainbits[gr][ch]);
646 bits = pplot1->mainbits[gr][ch];
648 bits = pplot->LAMEmainbits[gr][ch];
651 sprintf(title2, "MDCT%1i(%s) bits=%i ", gr, label, bits);
657 gpk_bargraph_draw(mdctbox[gr], n, xcord, ycord, xmn, ymn, xmx, ymx, 0, title2, 0, barcolor);
668 for (gr = 0; gr < mode_gr; gr++) {
671 data = &pplot->energy[gr][ch][0];
677 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
685 en += pplot->energy[gr][ch][j];
687 sprintf(title2, "FFT%1i pe=%5.2fK en=%5.2e ", gr, pplot->pe[gr][ch] / 1000, en);
693 gpk_bargraph_draw(enerbox[gr], n, xcord, ycord,
702 for (gr = 0; gr < mode_gr; gr++) {
704 if (blocktype[gr][ch] == 2) {
706 data = &pplot->en_s[gr][ch][0];
707 data2 = &pplot->thr_s[gr][ch][0];
708 data3 = &pplot->xfsf_s[gr][ch][0];
712 data = &pplot->en[gr][ch][0];
713 data2 = &pplot->thr[gr][ch][0];
714 data3 = &pplot->xfsf[gr][ch][0];
720 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
733 en = pplot->ers[gr][ch];
738 gr, pplot->pe[gr][ch] / 1000, en, pplot->over[gr][ch], pplot->max_noise[gr][ch],
739 pplot->over_noise[gr][ch], pplot->tot_noise[gr][ch], pplot->over_SSD[gr][ch]);
742 if (blocktype[gr][ch] == SHORT_TYPE)
751 gpk_bargraph_draw(enerbox[gr], n, xcord, ycord,
756 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
762 gpk_bargraph_draw(enerbox[gr], n, xcord, ycord,
763 xmn, ymn, xmx, ymx, 0, title2, barthick, grcolor[gr]);
767 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
772 gpk_bargraph_draw(enerbox[gr], n, xcord, ycord,
781 for (gr = 0; gr < mode_gr; gr++) {
783 if (blocktype[gr][ch] == 2) {
786 data = pplot1->sfb_s[gr][ch];
788 data = pplot->LAMEsfb_s[gr][ch];
793 data = pplot1->sfb[gr][ch];
795 data = pplot->LAMEsfb[gr][ch];
802 if (blocktype[gr][ch] == SHORT_TYPE && !subblock_draw[i % 3])
811 if (blocktype[gr][ch] == 2) {
814 pplot1->scalefac_scale[gr][ch],
815 pplot1->preflag[gr][ch],
816 pplot1->sub_gain[gr][ch][0],
817 pplot1->sub_gain[gr][ch][1], pplot1->sub_gain[gr][ch][2]);
820 sprintf(label2, "SFB scale=%i preflag=%i", pplot1->scalefac_scale[gr][ch],
821 pplot1->preflag[gr][ch]);
825 ggain = (pplot1->qss[gr][ch]);
827 ggain = (pplot->LAMEqss[gr][ch]);
834 gpk_bargraph_draw(sfbbox[gr], n, xcord, ycord,
835 xmn, ymn, xmx, ymx, 1, label2, 0, grcolor[gr]);
840 gpk_rectangle_draw(sfbbox[gr], xcord, ycord, xmn, ymn, xmx, ymx, &yellow);
928 int gr, ch;
929 for (gr = 0; gr < 2; gr++)
931 gtkinfo.totshort += (pinfo->mpg123blocktype[gr][ch] == 2);
932 gtkinfo.totmix += !(pinfo->mixed[gr][ch] == 0);
933 gtkinfo.totpreflag += (pinfo->preflag[gr][ch] == 1);
934 pinfo->totbits += pinfo->mainbits[gr][ch];