changeset 27542:090bf8535df8

Make the 2point linear interpolation coefficients correct even for the nearly never occurring 0.0, 1.0.
author michael
date Wed, 10 Sep 2008 22:41:55 +0000
parents 022dc2be8cf5
children 1e0b48b2b253
files libswscale/swscale_template.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Wed Sep 10 20:47:16 2008 +0000
+++ b/libswscale/swscale_template.c	Wed Sep 10 22:41:55 2008 +0000
@@ -1204,8 +1204,8 @@
 static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,
                           uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
 {
-    int yalpha1=yalpha^4095;
-    int uvalpha1=uvalpha^4095;
+    int  yalpha1=4095- yalpha;
+    int uvalpha1=4095-uvalpha;
     int i;
 
 #if 0 //isn't used