changeset 585:86ebb02c6693 libavcodec

dump bits per frame / qp / frame complexity support
author michaelni
date Sat, 27 Jul 2002 14:48:44 +0000
parents 03e395b31197
children 54b1c94977d5
files h263dec.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Sat Jul 27 08:27:02 2002 +0000
+++ b/h263dec.c	Sat Jul 27 14:48:44 2002 +0000
@@ -154,7 +154,13 @@
         ret = h263_decode_picture_header(s);
     }
     avctx->has_b_frames= s->has_b_frames;
-
+#if 0 // dump bits per frame / qp / complexity
+{
+    static FILE *f=NULL;
+    if(!f) f=fopen("rate_qp_cplx.txt", "w");
+    fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size/(double)s->qscale);
+}
+#endif
        
         /* After H263 & mpeg4 header decode we have the height, width,*/
         /* and other parameters. So then we could init the picture   */