public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean-Francois Moine <moinejf@free.fr>
To: Hans de Goede <j.w.r.degoede@hhs.nl>
Cc: Linux Media <linux-media@vger.kernel.org>
Subject: [PATCH] libv4l: spca508 UV inversion
Date: Tue, 5 May 2009 11:08:46 +0200	[thread overview]
Message-ID: <20090505110846.0780d860@free.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

Hello Hans,

People with a spca508 webcam report a color inversion in the images.
Here is a simple patch to fix this problem.

Cheers.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

[-- Attachment #2: patch.pat --]
[-- Type: application/octet-stream, Size: 693 bytes --]

libv4l: UV color inversion in spca508 decoding.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>

diff -r e7894eacbca7 v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
--- a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c	Tue May 05 10:01:11 2009 +0200
+++ b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c	Tue May 05 11:03:02 2009 +0200
@@ -585,7 +585,7 @@
 	  v4lconvert_spca505_to_yuv420(src, d, width, height, yvu);
 	  break;
 	case V4L2_PIX_FMT_SPCA508:
-	  v4lconvert_spca508_to_yuv420(src, d, width, height, yvu);
+	  v4lconvert_spca508_to_yuv420(src, d, width, height, !yvu);
 	  break;
 	case V4L2_PIX_FMT_SN9C20X_I420:
 	  v4lconvert_sn9c20x_to_yuv420(src, d, width, height, yvu);

             reply	other threads:[~2009-05-05  8:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05  9:08 Jean-Francois Moine [this message]
2009-05-10  7:11 ` [PATCH] libv4l: spca508 UV inversion Jean-Francois Moine
2009-05-10  7:24   ` Hans de Goede

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=20090505110846.0780d860@free.fr \
    --to=moinejf@free.fr \
    --cc=j.w.r.degoede@hhs.nl \
    --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