public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: robert.jarzmik@free.fr
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: video4linux-list@redhat.com
Subject: Re: [RFC] soc_camera: endianness between camera and its host
Date: Wed, 13 Aug 2008 10:37:47 +0200	[thread overview]
Message-ID: <1218616667.48a29d5bcb7ea@imp.free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0808121612330.8089@axis700.grange>

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

> Sorry for a late reply. Looking at your mt9m111 patch, I realised we
> didn't finish this discussion:-)
No problem.

> Ok, I looked at them, I really did:-) Still, doesn't the following
> describe the situation:
>
> mt9m111 supported formats:
> rgb 565				(as specified in mt9m111 manual)
> rgb 565 swapped			(ditto swapped to match pxa270)
> ...
>
> pxa270 supports formats
> rgb 565 swapped			(pxa manual doesn't call it swapped)
> ...
Yes, that's exactly my point of view.

> So, when a user enumerates supported formats, we should report rgb 565
> swapped, but not report rgb 565. If you connect a mt9m111 to another host,
> maybe the non-swapped rgb 565 will be supported. So, mt9m111 should report
> both. The problem currently is, soc-camera doesn't ask the host controller
> whether it supports a specific pixel format. It only has a chance to fail
> an attempted VIDIOC_S_FMT, which is a bit too late. So, would adding pixel
> format negotiation with the camera host driver sufficiently fix the
> problem for you? One of us could try to cook a patch then.

Yes, pixel format negotiation is the key, that's the clean solution.
It will have impacts on existing camera drivers, like mt9m001, ..., and camera
hosts, but you must already be aware of it and ready to pay the price :)

Now, let's talk schedule. Until the end of the week, I'll be a bit busy. If I
don't see a patch you submitted by then, I'll cook one up. I only need to know
at which point you wish the format negociation should be performed, and on which
ground.

[RFC]
Would that be something like :
 - all begins which the binding of both a camera driver and host driver
 - soc_camera asks host controller which format it provides
 - soc_camera asks camera driver which format it supports
 - soc_camera make a table of possible pixel formats (which would be the common
subset of host and camera pixel formats)
 - soc_camera uses that table for format enumeration
 - soc_camera uses that table for preliminary check on VIDIOC_S_FMT

--
Robert

PS: I use an awfull web based mailer this morning, which I never use. Sorry if
it messes up linebreaks ...

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

  reply	other threads:[~2008-08-13  8:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-02 10:58 [RFC] soc_camera: endianness between camera and its host Robert Jarzmik
2008-08-02 20:09 ` Guennadi Liakhovetski
2008-08-02 23:38   ` Robert Jarzmik
2008-08-12 14:59     ` Guennadi Liakhovetski
2008-08-13  8:37       ` robert.jarzmik [this message]
2008-08-13  9:10         ` Guennadi Liakhovetski
2008-08-13 10:03           ` robert.jarzmik
2008-08-13 11:35             ` [PATCH] mt9m111: style cleanup Guennadi Liakhovetski
2008-08-13 16:38               ` Robert Jarzmik
2008-08-13 16:47                 ` Guennadi Liakhovetski
2008-08-13 16:54                   ` Robert Jarzmik
2008-08-13 17:12                     ` Guennadi Liakhovetski
2008-08-13 17:20                       ` Robert Jarzmik

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=1218616667.48a29d5bcb7ea@imp.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