Mercurial > libavcodec.hg
comparison h263.c @ 5403:54800e80235a libavcodec
move show_pict_info() to its own function
author | michael |
---|---|
date | Thu, 26 Jul 2007 15:44:46 +0000 |
parents | 91416b4f1929 |
children | 842d88e745ab |
comparison
equal
deleted
inserted
replaced
5402:20e5c861c096 | 5403:54800e80235a |
---|---|
134 else if (width == 1408 && height == 1152) | 134 else if (width == 1408 && height == 1152) |
135 format = 5; | 135 format = 5; |
136 else | 136 else |
137 format = 7; | 137 format = 7; |
138 return format; | 138 return format; |
139 } | |
140 | |
141 static void show_pict_info(MpegEncContext *s){ | |
142 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", | |
143 s->qscale, av_get_pict_type_char(s->pict_type), | |
144 s->gb.size_in_bits, 1-s->no_rounding, | |
145 s->obmc ? " AP" : "", | |
146 s->umvplus ? " UMV" : "", | |
147 s->h263_long_vectors ? " LONG" : "", | |
148 s->h263_plus ? " +" : "", | |
149 s->h263_aic ? " AIC" : "", | |
150 s->alt_inter_vlc ? " AIV" : "", | |
151 s->modified_quant ? " MQ" : "", | |
152 s->loop_filter ? " LOOP" : "", | |
153 s->h263_slice_structured ? " SS" : "", | |
154 s->avctx->time_base.den, s->avctx->time_base.num | |
155 ); | |
139 } | 156 } |
140 | 157 |
141 #ifdef CONFIG_ENCODERS | 158 #ifdef CONFIG_ENCODERS |
142 | 159 |
143 static void aspect_to_info(MpegEncContext * s, AVRational aspect){ | 160 static void aspect_to_info(MpegEncContext * s, AVRational aspect){ |
5210 s->y_dc_scale_table= | 5227 s->y_dc_scale_table= |
5211 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; | 5228 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; |
5212 } | 5229 } |
5213 | 5230 |
5214 if(s->avctx->debug&FF_DEBUG_PICT_INFO){ | 5231 if(s->avctx->debug&FF_DEBUG_PICT_INFO){ |
5215 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", | 5232 show_pict_info(s); |
5216 s->qscale, av_get_pict_type_char(s->pict_type), | |
5217 s->gb.size_in_bits, 1-s->no_rounding, | |
5218 s->obmc ? " AP" : "", | |
5219 s->umvplus ? " UMV" : "", | |
5220 s->h263_long_vectors ? " LONG" : "", | |
5221 s->h263_plus ? " +" : "", | |
5222 s->h263_aic ? " AIC" : "", | |
5223 s->alt_inter_vlc ? " AIV" : "", | |
5224 s->modified_quant ? " MQ" : "", | |
5225 s->loop_filter ? " LOOP" : "", | |
5226 s->h263_slice_structured ? " SS" : "", | |
5227 s->avctx->time_base.den, s->avctx->time_base.num | |
5228 ); | |
5229 } | 5233 } |
5230 #if 1 | 5234 #if 1 |
5231 if (s->pict_type == I_TYPE && s->codec_tag == ff_get_fourcc("ZYGO")){ | 5235 if (s->pict_type == I_TYPE && s->codec_tag == ff_get_fourcc("ZYGO")){ |
5232 int i,j; | 5236 int i,j; |
5233 for(i=0; i<85; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb)); | 5237 for(i=0; i<85; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb)); |