[sane-devel] [PATCH] v4l: convert to RGB
Marc Deslauriers
marc.deslauriers at canonical.com
Mon Nov 8 12:50:54 UTC 2010
Hi,
On Mon, 2010-11-08 at 12:26 +0100, Julien BLACHE wrote:
> Marc Deslauriers <marc.deslauriers at canonical.com> wrote:
> > Attached is a patch for the sane-backends v4l driver. When asking v4l1
> > for RGB, it actually returns BGR and applications are expected to adjust
> > appropriately.
>
> That shouldn't be needed with libv4l, have you checked that this isn't a
> bug somewhere else?
Yes, it is unfortunately still needed. libv4l1 maps VIDEO_PALETTE_RGB24
to V4L2_PIX_FMT_BGR24. I tried to fix libv4l1, but was told this is
legacy behaviour that cannot be changed. See the following thread:
http://www.mail-archive.com/linux-media@vger.kernel.org/msg23436.html
Thanks,
Marc.
More information about the sane-devel
mailing list