diff libswscale/swscale_internal.h @ 27513:2550d0c5bcb6

Fix accurate rounding mode on x86_64. Fixes issue222.
author michael
date Sun, 07 Sep 2008 21:06:21 +0000
parents 651ebfa4b7db
children fa98d451036f
line wrap: on
line diff
--- a/libswscale/swscale_internal.h	Sun Sep 07 18:22:29 2008 +0000
+++ b/libswscale/swscale_internal.h	Sun Sep 07 21:06:21 2008 +0000
@@ -29,6 +29,8 @@
 
 #include "libavutil/avutil.h"
 
+#define STR(s)         AV_TOSTRING(s) //AV_STINGIFY is too long
+
 #define MAX_FILTER_SIZE 256
 
 #define VOFW 2048
@@ -40,6 +42,16 @@
 #define ALT32_CORR   1
 #endif
 
+#ifdef ARCH_X86_64
+#   define APCK_PTR2 8
+#   define APCK_COEF 16
+#   define APCK_SIZE 24
+#else
+#   define APCK_PTR2 4
+#   define APCK_COEF 8
+#   define APCK_SIZE 16
+#endif
+
 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY,
              int srcSliceH, uint8_t* dst[], int dstStride[]);