changeset 2808:a78ac799a300

QP_store==null bugfix and no opendivx bugfix
author michael
date Sun, 11 Nov 2001 01:18:40 +0000
parents cfc61eef5a66
children b8e0d8204ff2
files postproc/postprocess.c postproc/postprocess_template.c
diffstat 2 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/postprocess.c	Sun Nov 11 01:14:09 2001 +0000
+++ b/postproc/postprocess.c	Sun Nov 11 01:18:40 2001 +0000
@@ -2750,12 +2750,14 @@
 		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 @@
 
 	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 @@
 		 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...
--- a/postproc/postprocess_template.c	Sun Nov 11 01:14:09 2001 +0000
+++ b/postproc/postprocess_template.c	Sun Nov 11 01:18:40 2001 +0000
@@ -2750,12 +2750,14 @@
 		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 @@
 
 	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 @@
 		 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...