Commit e721f4ac authored by arpi_esp's avatar arpi_esp

exporting qscale data for postprocessing (for MPlayer)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@164 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6d420ac8
...@@ -237,4 +237,12 @@ int avcodec_close(AVCodecContext *avctx); ...@@ -237,4 +237,12 @@ int avcodec_close(AVCodecContext *avctx);
void avcodec_register_all(void); 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 */ #endif /* AVCODEC_H */
...@@ -675,6 +675,11 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64]) ...@@ -675,6 +675,11 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
mb_x = s->mb_x; mb_x = s->mb_x;
mb_y = s->mb_y; 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 */ /* update DC predictors for P macroblocks */
if (!s->mb_intra) { if (!s->mb_intra) {
if (s->h263_pred) { if (s->h263_pred) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment