From 31642e274476f8a068e0110675b2ad16b345ec78 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 30 Oct 2002 20:50:33 +0000 Subject: [PATCH] change qscale type to int8 and fix qscale ordering git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7985 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/mp_image.h | 2 +- libmpcodecs/vd_ffmpeg.c | 11 ++--------- libmpeg2/mpeg2_internal.h | 2 +- postproc/postprocess.c | 2 +- postproc/postprocess.h | 12 +++++++----- postproc/postprocess_template.c | 4 ++-- 6 files changed, 14 insertions(+), 19 deletions(-) diff --git a/libmpcodecs/mp_image.h b/libmpcodecs/mp_image.h index 8414aa47aa..f5a26ac5a2 100644 --- a/libmpcodecs/mp_image.h +++ b/libmpcodecs/mp_image.h @@ -73,7 +73,7 @@ typedef struct mp_image_s { int x,y,w,h; // visible dimensions unsigned char* planes[MP_MAX_PLANES]; unsigned int stride[MP_MAX_PLANES]; - int* qscale; + char * qscale; int qstride; int pict_type; // 0->unknown, 1->I, 2->P, 3->B int num_planes; diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 1908089570..595c11a95d 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -619,16 +619,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ } /* to comfirm with newer lavc style */ -#if !defined(FF_POSTPROCESS) && (LIBAVCODEC_BUILD > 4612) - mpi->qscale=avctx->quant_store; -#if LIBAVCODEC_BUILD > 4613 +#if LIBAVCODEC_BUILD >= 4633 + mpi->qscale=avctx->display_qscale_table; mpi->qstride=avctx->qstride; -#else - mpi->qstride=MBC+1; -#endif -#elif defined(FF_POSTPROCESS) - mpi->qscale=&quant_store[0][0]; - mpi->qstride=MBC+1; #endif { diff --git a/libmpeg2/mpeg2_internal.h b/libmpeg2/mpeg2_internal.h index be883bd613..6f1c48425b 100644 --- a/libmpeg2/mpeg2_internal.h +++ b/libmpeg2/mpeg2_internal.h @@ -59,7 +59,7 @@ typedef struct vo_frame_s { #ifdef MPEG12_POSTPROC #define MPEG2_MBC 120 #define MPEG2_MBR 72 - int quant_store[MPEG2_MBR+1][MPEG2_MBC+1]; + int8_t quant_store[MPEG2_MBR+1][MPEG2_MBC+1]; #endif // int slice; diff --git a/postproc/postprocess.c b/postproc/postprocess.c index c804e1d568..42c8fc820c 100644 --- a/postproc/postprocess.c +++ b/postproc/postprocess.c @@ -535,7 +535,7 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int /* -pp Command line Help */ -char *postproc_help= +char *pp_help= "-npp [: