[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.24,1.25
Nick Kurshev
nick at mplayer.dev.hu
Mon Nov 5 18:57:04 CET 2001
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv13048/main/postproc
Modified Files:
rgb2rgb.c
Log Message:
Fixed rgb32(24)to15 stuff
Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- rgb2rgb.c 5 Nov 2001 17:46:20 -0000 1.24
+++ rgb2rgb.c 5 Nov 2001 17:56:11 -0000 1.25
@@ -238,7 +238,7 @@
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}
@@ -266,7 +266,7 @@
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}
More information about the MPlayer-cvslog
mailing list