# HG changeset patch # User michael # Date 1036011033 0 # Node ID a57c1fc0c2fcc048dd69c657ed71cf8dfb6c6daf # Parent 8344414c59cf4a681949060a278903d1120339ab change qscale type to int8 and fix qscale ordering diff -r 8344414c59cf -r a57c1fc0c2fc libmpcodecs/mp_image.h --- a/libmpcodecs/mp_image.h Wed Oct 30 19:26:05 2002 +0000 +++ b/libmpcodecs/mp_image.h Wed Oct 30 20:50:33 2002 +0000 @@ -73,7 +73,7 @@ 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 -r 8344414c59cf -r a57c1fc0c2fc libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Wed Oct 30 19:26:05 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Oct 30 20:50:33 2002 +0000 @@ -619,16 +619,9 @@ } /* 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 -r 8344414c59cf -r a57c1fc0c2fc libmpeg2/mpeg2_internal.h --- a/libmpeg2/mpeg2_internal.h Wed Oct 30 19:26:05 2002 +0000 +++ b/libmpeg2/mpeg2_internal.h Wed Oct 30 20:50:33 2002 +0000 @@ -59,7 +59,7 @@ #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 -r 8344414c59cf -r a57c1fc0c2fc postproc/postprocess.c --- a/postproc/postprocess.c Wed Oct 30 19:26:05 2002 +0000 +++ b/postproc/postprocess.c Wed Oct 30 20:50:33 2002 +0000 @@ -535,7 +535,7 @@ /* -pp Command line Help */ -char *postproc_help= +char *pp_help= "-npp [: