diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-07 21:06:21 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-07 21:06:21 +0000 |
commit | 7dd7068c7aaecb9db163629be0f6df7ed2ec9eed (patch) | |
tree | c6c1817ee21692f15e08479b95bf6b7af1b14a97 /libswscale/swscale_internal.h | |
parent | 6078a4b0e64bb7b0cb16d015b50c8bc5194f6061 (diff) | |
download | mpv-7dd7068c7aaecb9db163629be0f6df7ed2ec9eed.tar.bz2 mpv-7dd7068c7aaecb9db163629be0f6df7ed2ec9eed.tar.xz |
Fix accurate rounding mode on x86_64.
Fixes issue222.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27545 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 2efaa23bf5..39de0b141e 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -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[]); |