[FFmpeg-cvslog] r27574 - trunk/libswscale/swscale_template.c
michael
subversion
Thu Sep 11 00:41:56 CEST 2008
Author: michael
Date: Thu Sep 11 00:41:55 2008
New Revision: 27574
Log:
Make the 2point linear interpolation coefficients correct even for the
nearly never occuring 0.0, 1.0.
Modified:
trunk/libswscale/swscale_template.c
Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c (original)
+++ trunk/libswscale/swscale_template.c Thu Sep 11 00:41:55 2008
@@ -1204,8 +1204,8 @@ static inline void RENAME(yuv2packedX)(S
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
More information about the ffmpeg-cvslog
mailing list