1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

exporting qscale data for postprocessing (for MPlayer)

Originally committed as revision 164 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Arpi 2001-10-16 23:10:38 +00:00
parent a6be81113e
commit 79e7b30557
2 changed files with 13 additions and 0 deletions

View 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 */

View 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) {