[Mplayer-cvslog] CVS: main/libmpcodecs vd_raw.c,1.4,1.5
Arpi of Ize
arpi at mplayerhq.hu
Mon Apr 29 18:03:40 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv14102
Modified Files:
vd_raw.c
Log Message:
8bpp raw avi support
Index: vd_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_raw.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vd_raw.c 23 Mar 2002 14:26:53 -0000 1.4
+++ vd_raw.c 29 Apr 2002 16:03:37 -0000 1.5
@@ -32,6 +32,7 @@
// set format fourcc for raw RGB:
if(sh->format==0){
switch(sh->bih->biBitCount){
+ case 8: sh->format=IMGFMT_BGR8; break;
case 15:
case 16: sh->format=IMGFMT_BGR15; break;
case 24: sh->format=IMGFMT_BGR24; break;
@@ -72,6 +73,10 @@
} else {
mpi->planes[0]=data;
mpi->stride[0]=mpi->width*(mpi->bpp/8);
+ if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){
+ // export palette:
+ mpi->planes[1]=((unsigned char*)&sh->bih)+40;
+ }
}
return mpi;
More information about the MPlayer-cvslog
mailing list