From 38274ea2687b48bb82f76e9930c47619dda0a5c6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 27 Jul 2002 14:48:44 +0000 Subject: [PATCH] dump bits per frame / qp / frame complexity support Originally committed as revision 827 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263dec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 */