Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
27512:c1019e4096ca | 27513:2550d0c5bcb6 |
---|---|
27 #include <altivec.h> | 27 #include <altivec.h> |
28 #endif | 28 #endif |
29 | 29 |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define STR(s) AV_TOSTRING(s) //AV_STINGIFY is too long | |
33 | |
32 #define MAX_FILTER_SIZE 256 | 34 #define MAX_FILTER_SIZE 256 |
33 | 35 |
34 #define VOFW 2048 | 36 #define VOFW 2048 |
35 #define VOF (VOFW*2) | 37 #define VOF (VOFW*2) |
36 | 38 |
37 #ifdef WORDS_BIGENDIAN | 39 #ifdef WORDS_BIGENDIAN |
38 #define ALT32_CORR (-1) | 40 #define ALT32_CORR (-1) |
39 #else | 41 #else |
40 #define ALT32_CORR 1 | 42 #define ALT32_CORR 1 |
43 #endif | |
44 | |
45 #ifdef ARCH_X86_64 | |
46 # define APCK_PTR2 8 | |
47 # define APCK_COEF 16 | |
48 # define APCK_SIZE 24 | |
49 #else | |
50 # define APCK_PTR2 4 | |
51 # define APCK_COEF 8 | |
52 # define APCK_SIZE 16 | |
41 #endif | 53 #endif |
42 | 54 |
43 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, | 55 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, |
44 int srcSliceH, uint8_t* dst[], int dstStride[]); | 56 int srcSliceH, uint8_t* dst[], int dstStride[]); |
45 | 57 |