changeset 15418:c2bbb228011c

v4l2 RGB15/16 is actually BGR
author henry
date Thu, 12 May 2005 15:30:39 +0000
parents 319653d62e93
children da39fe11c872
files libmpdemux/tvi_v4l2.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l2.c	Thu May 12 11:29:12 2005 +0000
+++ b/libmpdemux/tvi_v4l2.c	Thu May 12 15:30:39 2005 +0000
@@ -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;