Mercurial > libavcodec.hg
changeset 108:1e4a4af694d1 libavcodec
exporting qscale data for postprocessing (for MPlayer)
author | arpi_esp |
---|---|
date | Tue, 16 Oct 2001 23:10:38 +0000 |
parents | bd163e13a0fb |
children | dfa9fde4b72d |
files | avcodec.h mpegvideo.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Tue Oct 16 02:31:14 2001 +0000 +++ b/avcodec.h Tue Oct 16 23:10:38 2001 +0000 @@ -237,4 +237,12 @@ 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 */
--- a/mpegvideo.c Tue Oct 16 02:31:14 2001 +0000 +++ b/mpegvideo.c Tue Oct 16 23:10:38 2001 +0000 @@ -675,6 +675,11 @@ 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) {