[Mplayer-cvslog] CVS: main/postproc swscale.c,1.13,1.14
Arpi of Ize
arpi at mplayer.dev.hu
Fri Oct 19 04:21:49 CEST 2001
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv9499
Modified Files:
swscale.c
Log Message:
xinc scaled by 16 instead of 8
Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- swscale.c 19 Oct 2001 01:53:45 -0000 1.13
+++ swscale.c 19 Oct 2001 02:21:47 -0000 1.14
@@ -71,7 +71,7 @@
// *** bilinear scaling and yuv->rgb conversion of yv12 slices:
// *** Note: it's called multiple times while decoding a frame, first time y==0
// *** Designed to upscale, but may work for downscale too.
-// s_xinc = (src_width << 8) / dst_width
+// s_xinc = (src_width << 16) / dst_width
// s_yinc = (src_height << 16) / dst_height
void SwScale_YV12slice_brg24(unsigned char* srcptr[],int stride[], int y, int h,
unsigned char* dstptr, int dststride, int dstw, int dstbpp,
@@ -104,7 +104,7 @@
int canMMX2BeUsed;
// we need that precission at least for the mmx2 code
-s_xinc*= 256;
+//s_xinc*= 256;
s_xinc2=s_xinc>>1;
canMMX2BeUsed= (s_xinc <= 0x10000 && (dstw&31)==0) ? 1 : 0;
More information about the MPlayer-cvslog
mailing list