[MPlayer-cvslog] CVS: main/libmpdemux tvi_v4l2.c,1.20,1.21

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Thu May 12 17:30:42 CEST 2005


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv25148

Modified Files:
	tvi_v4l2.c 
Log Message:
v4l2 RGB15/16 is actually BGR

Index: tvi_v4l2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l2.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- tvi_v4l2.c	23 Apr 2005 21:23:58 -0000	1.20
+++ tvi_v4l2.c	12 May 2005 15:30:39 -0000	1.21
@@ -164,8 +164,8 @@
 {
     switch (fcc) {
     case IMGFMT_RGB8:	return V4L2_PIX_FMT_RGB332;
-    case IMGFMT_RGB15:	return V4L2_PIX_FMT_RGB555;
-    case IMGFMT_RGB16:	return V4L2_PIX_FMT_RGB565;
+    case IMGFMT_BGR15:	return V4L2_PIX_FMT_RGB555;
+    case IMGFMT_BGR16:	return V4L2_PIX_FMT_RGB565;
     case IMGFMT_RGB24:	return V4L2_PIX_FMT_RGB24;
     case IMGFMT_RGB32:	return V4L2_PIX_FMT_RGB32;
     case IMGFMT_BGR24:	return V4L2_PIX_FMT_BGR24;
@@ -187,8 +187,8 @@
 {
     switch (fcc) {
     case V4L2_PIX_FMT_RGB332:	return IMGFMT_RGB8;
-    case V4L2_PIX_FMT_RGB555:	return IMGFMT_RGB15;
-    case V4L2_PIX_FMT_RGB565:	return IMGFMT_RGB16;
+    case V4L2_PIX_FMT_RGB555:	return IMGFMT_BGR15;
+    case V4L2_PIX_FMT_RGB565:	return IMGFMT_BGR16;
     case V4L2_PIX_FMT_RGB24:	return IMGFMT_RGB24;
     case V4L2_PIX_FMT_RGB32:	return IMGFMT_RGB32;
     case V4L2_PIX_FMT_BGR24:	return IMGFMT_BGR24;




More information about the MPlayer-cvslog mailing list