summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-11 01:18:40 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-11 01:18:40 +0000
commitd7bb86940c83e3011eee7389f5823332aaddac5d (patch)
treecc1347bcfdd77603eca152b5312dd8896ff9198f /postproc
parent20d9b4ff45af37cf5f20cb6aed6e3d4636a0d43b (diff)
downloadmpv-d7bb86940c83e3011eee7389f5823332aaddac5d.tar.bz2
mpv-d7bb86940c83e3011eee7389f5823332aaddac5d.tar.xz
QP_store==null bugfix and no opendivx bugfix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2809 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r--postproc/postprocess.c15
-rw-r--r--postproc/postprocess_template.c15
2 files changed, 30 insertions, 0 deletions
diff --git a/postproc/postprocess.c b/postproc/postprocess.c
index 7ea6b35b95..8dfef58cc5 100644
--- a/postproc/postprocess.c
+++ b/postproc/postprocess.c
@@ -2750,12 +2750,14 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
ppMode.error += numOfUnknownOptions;
}
+#ifdef HAVE_ODIVX_POSTPROCESS
if(ppMode.lumMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_H;
if(ppMode.lumMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_V;
if(ppMode.chromMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_H;
if(ppMode.chromMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_V;
if(ppMode.lumMode & DERING) ppMode.oldMode |= PP_DERING_Y;
if(ppMode.chromMode & DERING) ppMode.oldMode |= PP_DERING_C;
+#endif
return ppMode;
}
@@ -2781,6 +2783,12 @@ void postprocess(unsigned char * src[], int src_stride,
return;
*/
+ static QP_STORE_T zeroArray[2048/8];
+ if(QP_store==NULL)
+ {
+ QP_store= zeroArray;
+ QP_stride= 0;
+ }
#ifdef HAVE_ODIVX_POSTPROCESS
// Note: I could make this shit outside of this file, but it would mean one
@@ -2823,6 +2831,13 @@ void postprocess2(unsigned char * src[], int src_stride,
struct PPMode *mode)
{
+ static QP_STORE_T zeroArray[2048/8];
+ if(QP_store==NULL)
+ {
+ QP_store= zeroArray;
+ QP_stride= 0;
+ }
+
#ifdef HAVE_ODIVX_POSTPROCESS
// Note: I could make this shit outside of this file, but it would mean one
// more function call...
diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c
index 7ea6b35b95..8dfef58cc5 100644
--- a/postproc/postprocess_template.c
+++ b/postproc/postprocess_template.c
@@ -2750,12 +2750,14 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
ppMode.error += numOfUnknownOptions;
}
+#ifdef HAVE_ODIVX_POSTPROCESS
if(ppMode.lumMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_H;
if(ppMode.lumMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_V;
if(ppMode.chromMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_H;
if(ppMode.chromMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_V;
if(ppMode.lumMode & DERING) ppMode.oldMode |= PP_DERING_Y;
if(ppMode.chromMode & DERING) ppMode.oldMode |= PP_DERING_C;
+#endif
return ppMode;
}
@@ -2781,6 +2783,12 @@ void postprocess(unsigned char * src[], int src_stride,
return;
*/
+ static QP_STORE_T zeroArray[2048/8];
+ if(QP_store==NULL)
+ {
+ QP_store= zeroArray;
+ QP_stride= 0;
+ }
#ifdef HAVE_ODIVX_POSTPROCESS
// Note: I could make this shit outside of this file, but it would mean one
@@ -2823,6 +2831,13 @@ void postprocess2(unsigned char * src[], int src_stride,
struct PPMode *mode)
{
+ static QP_STORE_T zeroArray[2048/8];
+ if(QP_store==NULL)
+ {
+ QP_store= zeroArray;
+ QP_stride= 0;
+ }
+
#ifdef HAVE_ODIVX_POSTPROCESS
// Note: I could make this shit outside of this file, but it would mean one
// more function call...