]> git.sesse.net Git - ffmpeg/commitdiff
exporting qscale data for postprocessing (for MPlayer)
authorArpi <arpi@thot.banki.hu>
Tue, 16 Oct 2001 23:10:38 +0000 (23:10 +0000)
committerArpi <arpi@thot.banki.hu>
Tue, 16 Oct 2001 23:10:38 +0000 (23:10 +0000)
Originally committed as revision 164 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h
libavcodec/mpegvideo.c

index b423b889b4da516d187666d0e63b51f07491d5ab..832afdd0e4269ee890a367d6855a7618617a1b58 100644 (file)
@@ -237,4 +237,12 @@ int avcodec_close(AVCodecContext *avctx);
 
 void avcodec_register_all(void);
 
+#ifdef FF_POSTPROCESS
+#ifndef MBC
+#define MBC 48
+#define MBR 36
+#endif
+extern int quant_store[MBR+1][MBC+1]; // [Review]
+#endif
+
 #endif /* AVCODEC_H */
index 40dbcf1e1e6f171c51bcb71f2cf2c64974af9c97..148d7e142cb1f853d2f2af60552a710c41bdf1ba 100644 (file)
@@ -675,6 +675,11 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
     mb_x = s->mb_x;
     mb_y = s->mb_y;
 
+#ifdef FF_POSTPROCESS
+    quant_store[mb_y][mb_x]=s->qscale;
+    //printf("[%02d][%02d] %d\n",mb_x,mb_y,s->qscale);
+#endif
+
     /* update DC predictors for P macroblocks */
     if (!s->mb_intra) {
         if (s->h263_pred) {