diff dsputil.c @ 403:2c3e25f4c496 libavcodec

removed unused stuff - added dsputil_set_bit_exact() support for easier testing
author glantau
date Mon, 20 May 2002 16:37:58 +0000
parents d7008d1c5bd0
children 718a22dc121f
line wrap: on
line diff
--- a/dsputil.c	Mon May 20 16:25:09 2002 +0000
+++ b/dsputil.c	Mon May 20 16:37:58 2002 +0000
@@ -599,6 +599,7 @@
 #undef op_avg
 #undef op_put
 
+#if 0
 /* FIXME this stuff could be removed as its ot really used anymore */
 #define PIXOP(BTYPE, OPNAME, OP, INCR)                                                   \
                                                                                          \
@@ -699,7 +700,6 @@
     OPNAME ## _pixels_xy2,                                                               \
 };
 
-
 /* rounding primitives */
 #define avg2(a,b) ((a+b+1)>>1)
 #define avg4(a,b,c,d) ((a+b+c+d+2)>>2)
@@ -719,11 +719,11 @@
 
 #undef avg2
 #undef avg4
+#endif
+
 #define avg2(a,b) ((a+b+1)>>1)
 #define avg4(a,b,c,d) ((a+b+c+d+2)>>2)
 
-/* end of removeale stuff */
-
 static void gmc1_c(UINT8 *dst, UINT8 *src, int srcStride, int h, int x16, int y16, int rounder)
 {
     const int A=(16-x16)*(16-y16);
@@ -1332,6 +1332,14 @@
     build_zigzag_end();
 }
 
+/* remove any non bit exact operation (testing purpose) */
+void avcodec_set_bit_exact(void)
+{
+#ifdef HAVE_MMX
+    dsputil_set_bit_exact_mmx();
+#endif
+}
+
 void get_psnr(UINT8 *orig_image[3], UINT8 *coded_image[3],
               int orig_linesize[3], int coded_linesize,
               AVCodecContext *avctx)