mirror of https://git.ffmpeg.org/ffmpeg.git
exporting qscale data for postprocessing (for MPlayer)
Originally committed as revision 164 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a6be81113e
commit
79e7b30557
|
@ -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 */
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue