imgconvert-test: add avg bits per pixel
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Nov 2012 15:14:25 +0000 (16:14 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Nov 2012 16:03:31 +0000 (17:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/imgconvert.c

index e79dacc..ac40adb 100644 (file)
@@ -982,7 +982,7 @@ int main(void){
         AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
         if(!desc)
             continue;
-        av_log(0, AV_LOG_INFO, "pix fmt %s %d\n", desc->name, is_yuv_planar(i));
+        av_log(0, AV_LOG_INFO, "pix fmt %s yuv_plan:%d avg_bpp:%d\n", desc->name, is_yuv_planar(i), avg_bits_per_pixel(i));
     }
     return 0;
 }