From: Marc Deslauriers <marc.deslauriers@ubuntu.com>
To: linux-media@vger.kernel.org
Cc: marc.deslauriers@ubuntu.com, hdegoede@redhat.com
Subject: [PATCH] v4l-utils: libv4l1: When asked for RGB, return RGB and not BGR
Date: Mon, 18 Oct 2010 08:44:32 -0400 [thread overview]
Message-ID: <1287405872.6471.23.camel@mdlinux> (raw)
libv4l1: When asked for RGB, return RGB and not BGR
Signed-off-by: Marc Deslauriers <marc.deslauriers@ubuntu.com>
---
lib/libv4l1/libv4l1.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/libv4l1/libv4l1.c b/lib/libv4l1/libv4l1.c
index cb53899..202f020 100644
--- a/lib/libv4l1/libv4l1.c
+++ b/lib/libv4l1/libv4l1.c
@@ -87,9 +87,9 @@ static unsigned int palette_to_pixelformat(unsigned
int palette)
case VIDEO_PALETTE_RGB565:
return V4L2_PIX_FMT_RGB565;
case VIDEO_PALETTE_RGB24:
- return V4L2_PIX_FMT_BGR24;
+ return V4L2_PIX_FMT_RGB24;
case VIDEO_PALETTE_RGB32:
- return V4L2_PIX_FMT_BGR32;
+ return V4L2_PIX_FMT_RGB32;
case VIDEO_PALETTE_YUYV:
return V4L2_PIX_FMT_YUYV;
case VIDEO_PALETTE_YUV422:
@@ -118,9 +118,9 @@ static unsigned int pixelformat_to_palette(unsigned
int pixelformat)
return VIDEO_PALETTE_RGB555;
case V4L2_PIX_FMT_RGB565:
return VIDEO_PALETTE_RGB565;
- case V4L2_PIX_FMT_BGR24:
+ case V4L2_PIX_FMT_RGB24:
return VIDEO_PALETTE_RGB24;
- case V4L2_PIX_FMT_BGR32:
+ case V4L2_PIX_FMT_RGB32:
return VIDEO_PALETTE_RGB32;
case V4L2_PIX_FMT_YUYV:
return VIDEO_PALETTE_YUYV;
--
1.7.1
next reply other threads:[~2010-10-18 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 12:44 Marc Deslauriers [this message]
2010-10-18 14:33 ` [PATCH] v4l-utils: libv4l1: When asked for RGB, return RGB and not BGR Hans de Goede
2010-10-18 14:42 ` Marc Deslauriers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1287405872.6471.23.camel@mdlinux \
--to=marc.deslauriers@ubuntu.com \
--cc=hdegoede@redhat.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox