aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-07-27 14:48:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-07-27 14:48:44 +0000
commit38274ea2687b48bb82f76e9930c47619dda0a5c6 (patch)
tree0ecedea5cadf2bb08ff011758a150d28ef9a331b
parentd6afa9c67176c7102b4ce71cca9c3bc64c5a781a (diff)
downloadffmpeg-38274ea2687b48bb82f76e9930c47619dda0a5c6.tar.gz
dump bits per frame / qp / frame complexity support
Originally committed as revision 827 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h263dec.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index d6a68502dd..ee282efd41 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -154,7 +154,13 @@ uint64_t time= rdtsc();
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 */