diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-24 10:36:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-24 10:36:06 +0000 |
commit | bca11e75fbc6b922438670733c6cb418c70433b4 (patch) | |
tree | 16e66dc954b1c00e609786c928333c978b5a2fd4 /libswscale/swscale_internal.h | |
parent | fc8833a1ad8b22c34918125fb880aa6071aea860 (diff) | |
download | ffmpeg-bca11e75fbc6b922438670733c6cb418c70433b4.tar.gz |
vertical scaler with accurate rounding, some people on doom9 can see +-1 errors
the +-1 issue is limited to >2tap vertical filters, so bilinear upscale was unaffected
the new code is sometime faster sometimes slower but the difference is significant (~20%) so its optional and enabled with arnd=1
Originally committed as revision 19177 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index bc8f08d1db..177074d6a5 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -126,7 +126,9 @@ typedef struct SwsContext{ #define DSTW_OFFSET "11*8+4*4*256*2" //do not change, its hardcoded in the asm #define ESP_OFFSET "11*8+4*4*256*2+8" #define VROUNDER_OFFSET "11*8+4*4*256*2+16" - +#define U_TEMP "11*8+4*4*256*2+24" +#define V_TEMP "11*8+4*4*256*2+32" + uint64_t redDither __attribute__((aligned(8))); uint64_t greenDither __attribute__((aligned(8))); uint64_t blueDither __attribute__((aligned(8))); @@ -144,6 +146,8 @@ typedef struct SwsContext{ int dstW; uint64_t esp __attribute__((aligned(8))); uint64_t vRounder __attribute__((aligned(8))); + uint64_t u_temp __attribute__((aligned(8))); + uint64_t v_temp __attribute__((aligned(8))); #ifdef HAVE_ALTIVEC |