public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: video4linux-list@redhat.com
Subject: Re: [PATCH] pxa_camera: Fix YUV format handling.
Date: Fri, 07 Nov 2008 18:14:20 +0100	[thread overview]
Message-ID: <874p2jlaqb.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0811070040130.8681@axis700.grange> (Guennadi Liakhovetski's message of "Fri\, 7 Nov 2008 00\:52\:12 +0100 \(CET\)")

Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:

> On Fri, 7 Nov 2008, Robert Jarzmik wrote:
>
>> Allows all YUV formats on pxa interface. Even if PXA capture
>> interface expects data in UYVY format, we allow all formats
>
> Here you call it UYVY, and I agree with it, however, in the comment in the 
> patch you call it VYUY, which, I think is less natural.
Yes, the patch is wrong.
It's UYVY (Cb Y Cr Y). I'll amend the patch.

> i.e., you call mt9m111's default format "UYVY", and again, I think, this 
> is logical. If both datasheets are correct, this is also the format 
> expected by the PXA, so, you should translate YUV planar to UYVY. Have you 
> tested it?
Yes, I had.
And I didn't saw the problem. I checked again today, and the image is greyish.

I was using my phone and myself as the picture model. My pullover is white, I'm
grey lately, the background is grey also, as is the phone. Thus, even if the
image looked correct, it was not.

I tried again today the planar YUV422P, but with a bright red pullover. With
either UYVY or VYUY, the colors are not displayed, all remains grey. I don't
really know if the problem comes from my image transformation (yuvsplittoppm),
or from the pxa_camera driver. I'll dig deeper this week-end.

> Do I understand it right from the pxa270 datasheet, that UYVY would be the 
> only possible format if it were used for overlay2? Then I would mention 
> this here as well.
As you wish.

> So, let's just get the naming consistent. Are you also planning to update 
> your "Add new pixel format VYUY 16 bits wide" patch as requested by Hans 
> Verkuil? Then you could put all these patches in a patch series to make it 
> easier to manage them:-)
I didn't get that mail, either on direct destination or from the mailing
list. I'll look into the archives.

> Also, I would _at the very least_ give credit to Antonio Ospite for 
> reporting the problem and suggesting a first fix in your patch for 
> mt9m111. Eventually we would also like to have a Tested-by from him.
Yes, of course.

--
Robert

PS: I didn't mentioned it yet, but I had amended the mt9m111 patch, because
format_by_fourcc() in soc_camera.c is looking for YUV422P in mt9m111 formats,
even if pxa_camera translates the format.
This would deserve a cleaner patch, if you can think of one ...

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

  parent reply	other threads:[~2008-11-07 17:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06 23:04 [PATCH] pxa_camera: Fix YUV format handling Robert Jarzmik
2008-11-06 23:52 ` Guennadi Liakhovetski
2008-11-07  7:10   ` Antonio Ospite
2008-11-07 17:14   ` Robert Jarzmik [this message]
2008-11-16 22:23     ` [PATCH] Add new pixel format VYUY 16 bits wide Guennadi Liakhovetski
2008-11-16 22:33       ` [PATCH v2] " Robert Jarzmik
2008-11-16 22:39         ` Guennadi Liakhovetski
2008-11-16 22:44           ` Guennadi Liakhovetski

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=874p2jlaqb.fsf@free.fr \
    --to=robert.jarzmik@free.fr \
    --cc=g.liakhovetski@gmx.de \
    --cc=video4linux-list@redhat.com \
    /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