Mercurial > libavcodec.hg
comparison h263.c @ 10793:9b3ec3d1bdae libavcodec
Factorize if() surrounding every ff_h263_show_pict_info() call.
author | michael |
---|---|
date | Thu, 07 Jan 2010 14:55:11 +0000 |
parents | 48adb5a1b47b |
children | 342c2dbe0f94 |
comparison
equal
deleted
inserted
replaced
10792:13c67390a846 | 10793:9b3ec3d1bdae |
---|---|
132 else | 132 else |
133 return 7; | 133 return 7; |
134 } | 134 } |
135 | 135 |
136 void ff_h263_show_pict_info(MpegEncContext *s){ | 136 void ff_h263_show_pict_info(MpegEncContext *s){ |
137 if(s->avctx->debug&FF_DEBUG_PICT_INFO){ | |
137 av_log(s->avctx, AV_LOG_DEBUG, "qp:%d %c size:%d rnd:%d%s%s%s%s%s%s%s%s%s %d/%d\n", | 138 av_log(s->avctx, AV_LOG_DEBUG, "qp:%d %c size:%d rnd:%d%s%s%s%s%s%s%s%s%s %d/%d\n", |
138 s->qscale, av_get_pict_type_char(s->pict_type), | 139 s->qscale, av_get_pict_type_char(s->pict_type), |
139 s->gb.size_in_bits, 1-s->no_rounding, | 140 s->gb.size_in_bits, 1-s->no_rounding, |
140 s->obmc ? " AP" : "", | 141 s->obmc ? " AP" : "", |
141 s->umvplus ? " UMV" : "", | 142 s->umvplus ? " UMV" : "", |
146 s->modified_quant ? " MQ" : "", | 147 s->modified_quant ? " MQ" : "", |
147 s->loop_filter ? " LOOP" : "", | 148 s->loop_filter ? " LOOP" : "", |
148 s->h263_slice_structured ? " SS" : "", | 149 s->h263_slice_structured ? " SS" : "", |
149 s->avctx->time_base.den, s->avctx->time_base.num | 150 s->avctx->time_base.den, s->avctx->time_base.num |
150 ); | 151 ); |
152 } | |
151 } | 153 } |
152 | 154 |
153 #if CONFIG_ENCODERS | 155 #if CONFIG_ENCODERS |
154 | 156 |
155 /** | 157 /** |
5356 }else{ | 5358 }else{ |
5357 s->y_dc_scale_table= | 5359 s->y_dc_scale_table= |
5358 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; | 5360 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; |
5359 } | 5361 } |
5360 | 5362 |
5361 if(s->avctx->debug&FF_DEBUG_PICT_INFO){ | |
5362 ff_h263_show_pict_info(s); | 5363 ff_h263_show_pict_info(s); |
5363 } | |
5364 if (s->pict_type == FF_I_TYPE && s->codec_tag == AV_RL32("ZYGO")){ | 5364 if (s->pict_type == FF_I_TYPE && s->codec_tag == AV_RL32("ZYGO")){ |
5365 int i,j; | 5365 int i,j; |
5366 for(i=0; i<85; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb)); | 5366 for(i=0; i<85; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb)); |
5367 av_log(s->avctx, AV_LOG_DEBUG, "\n"); | 5367 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
5368 for(i=0; i<13; i++){ | 5368 for(i=0; i<13; i++){ |