Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 5517:a3337d7b853f
export qscale for postproc
author | arpi |
---|---|
date | Sun, 07 Apr 2002 16:40:54 +0000 |
parents | f2c4cace6450 |
children | b545d56314d2 |
comparison
equal
deleted
inserted
replaced
5516:113ed5725b47 | 5517:a3337d7b853f |
---|---|
28 #else | 28 #else |
29 #include "libavcodec/avcodec.h" | 29 #include "libavcodec/avcodec.h" |
30 #endif | 30 #endif |
31 | 31 |
32 int avcodec_inited=0; | 32 int avcodec_inited=0; |
33 | |
34 #ifdef FF_POSTPROCESS | |
35 int quant_store[MBR+1][MBC+1]; | |
36 #endif | |
33 | 37 |
34 typedef struct { | 38 typedef struct { |
35 AVCodecContext *avctx; | 39 AVCodecContext *avctx; |
36 int last_aspect; | 40 int last_aspect; |
37 int do_slices; | 41 int do_slices; |
195 if(avctx->pix_fmt==PIX_FMT_YUV422P){ | 199 if(avctx->pix_fmt==PIX_FMT_YUV422P){ |
196 mpi->stride[1]*=2; | 200 mpi->stride[1]*=2; |
197 mpi->stride[2]*=2; | 201 mpi->stride[2]*=2; |
198 } | 202 } |
199 | 203 |
204 #ifdef FF_POSTPROCESS | |
205 mpi->qscale=&quant_store[0][0]; | |
206 mpi->qstride=MBC+1; | |
207 #endif | |
208 | |
200 return mpi; | 209 return mpi; |
201 } | 210 } |
202 | 211 |
203 #endif | 212 #endif |
204 | 213 |