comparison h264_loopfilter.c @ 10904:b30aef0c693f libavcodec

Comment for() ; out ~200 bytes smaller ff_h264_filter_mb() please everyone, NEVER add code with the assumtation that gcc will remove it without checking gcc actually does. Chances are it does not.
author michael
date Sat, 16 Jan 2010 17:41:40 +0000
parents 8c8321b94c35
children 1b5fba731e24
comparison
equal deleted inserted replaced
10903:8c8321b94c35 10904:b30aef0c693f
620 // Do not use s->qscale as luma quantizer because it has not the same 620 // Do not use s->qscale as luma quantizer because it has not the same
621 // value in IPCM macroblocks. 621 // value in IPCM macroblocks.
622 qp = ( s->current_picture.qscale_table[mb_xy] + s->current_picture.qscale_table[mbn_xy] + 1 ) >> 1; 622 qp = ( s->current_picture.qscale_table[mb_xy] + s->current_picture.qscale_table[mbn_xy] + 1 ) >> 1;
623 //tprintf(s->avctx, "filter mb:%d/%d dir:%d edge:%d, QPy:%d, QPc:%d, QPcn:%d\n", mb_x, mb_y, dir, edge, qp, h->chroma_qp, s->current_picture.qscale_table[mbn_xy]); 623 //tprintf(s->avctx, "filter mb:%d/%d dir:%d edge:%d, QPy:%d, QPc:%d, QPcn:%d\n", mb_x, mb_y, dir, edge, qp, h->chroma_qp, s->current_picture.qscale_table[mbn_xy]);
624 tprintf(s->avctx, "filter mb:%d/%d dir:%d edge:%d, QPy:%d ls:%d uvls:%d", mb_x, mb_y, dir, edge, qp, linesize, uvlinesize); 624 tprintf(s->avctx, "filter mb:%d/%d dir:%d edge:%d, QPy:%d ls:%d uvls:%d", mb_x, mb_y, dir, edge, qp, linesize, uvlinesize);
625 { int i; for (i = 0; i < 4; i++) tprintf(s->avctx, " bS[%d]:%d", i, bS[i]); tprintf(s->avctx, "\n"); } 625 //{ int i; for (i = 0; i < 4; i++) tprintf(s->avctx, " bS[%d]:%d", i, bS[i]); tprintf(s->avctx, "\n"); }
626 if( dir == 0 ) { 626 if( dir == 0 ) {
627 filter_mb_edgev( h, &img_y[4*edge], linesize, bS, qp ); 627 filter_mb_edgev( h, &img_y[4*edge], linesize, bS, qp );
628 if( (edge&1) == 0 ) { 628 if( (edge&1) == 0 ) {
629 filter_mb_edgecv( h, &img_cb[2*edge], uvlinesize, bS, 629 filter_mb_edgecv( h, &img_cb[2*edge], uvlinesize, bS,
630 ( h->chroma_qp[0] + get_chroma_qp( h, 0, s->current_picture.qscale_table[mbn_xy] ) + 1 ) >> 1); 630 ( h->chroma_qp[0] + get_chroma_qp( h, 0, s->current_picture.qscale_table[mbn_xy] ) + 1 ) >> 1);