All of lore.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: soc-camera: pixelfmt translation serie
Date: Sun, 16 Nov 2008 15:22:39 +0100	[thread overview]
Message-ID: <87abbz698w.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0811161409350.4368@axis700.grange> (Guennadi Liakhovetski's message of "Sun\, 16 Nov 2008 14\:24\:31 +0100 \(CET\)")

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

> On Sun, 16 Nov 2008, Robert Jarzmik wrote:
>
>> Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:
> Yes, I saw this, and although it does look useful, I tend not to add the 
> whole host format - sensor format infrastructure alone for this debug 
> feature. I would restrict this generated format list to user (host) 
> formats only - without exposing which sensor format the host has decided 
> to use for it. We can either add this debug functionality either on a 
> per-host basis, or implement a debug hook in host drivers? In any case I 
> would prefer not to make this a part of the infrastructure for debugging 
> alone.

Ah, but I think it is neceesary. The true purpose of soc_camera is to provide a
generic infrastructure to match sensors to hosts, isn't it ? So there should be
a way to dynamically display all available formats, and where they come from
(ie. which sensor provides it, and with which of its own formats => thinking
debugfs here).

Ideally, you will have a debugfs part telling what are the available formats, to
which (host format, sensor format) they refer, and which couple is the current
one.

>> Would you also duplicate current_fmt, so that the current host format and sensor
>> current format are available at sight ?
>
> Why? Give me a real reason (apart from debugging) why we need to know in 
> soc_camera.c which formats the host requests from the sensor for a 
> specific output format or which format is currently configured on the 
> sensor?
Exactly what you said, debug and tracability.

> Well, would it be enough if I put the current state somewhere up as a 
> quilt patch series, for instance? I don't want to repost all patches on 
> each iteration.
Very well, so just in the cover which of the previous patches should be applied
before your new serie. Or a git repository if you have one ...

Ah, and before I forget. The original idea behind the translation API was to
have the less code in each host for format list creation. I hope you keep in
mind that purpose. The less code in pxa_camera and sh_mobile_ceu_camera.c, the
better. Anyway, I'll see it in your post, and compare to the translation
framework, it's always easier to compare code than specifications :)

--
Robert

--
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-11-16 14:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 20:29 soc-camera: pixelfmt translation serie Robert Jarzmik
2008-11-12 20:29 ` [PATCH 01/13] soc-camera: merge .try_bus_param() into .try_fmt_cap() Robert Jarzmik
2008-11-12 20:29   ` [PATCH 02/13] soc-camera: formatting fixes Robert Jarzmik
2008-11-12 20:29     ` [PATCH 03/13] soc-camera: let camera host drivers decide upon pixel format Robert Jarzmik
2008-11-12 20:29       ` [PATCH 04/13] soc-camera: simplify naming Robert Jarzmik
2008-11-12 20:29         ` [PATCH 05/13] soc-camera: move pixel format handling to host drivers (part 2) Robert Jarzmik
     [not found]           ` <1226521783-19806-7-git-send-email-robert.jarzmik@free.fr>
2008-11-12 20:29             ` [PATCH 07/13] soc-camera: initialise fields on device-registration, more formatting cleanup Robert Jarzmik
2008-11-12 20:29               ` [PATCH 08/13] soc_camera: add format translation framework Robert Jarzmik
2008-11-12 20:29                 ` [PATCH 09/13] pxa_camera: use the " Robert Jarzmik
2008-11-12 20:29                   ` [PATCH 10/13] sh_mobile_ceu_camera: (ab)use " Robert Jarzmik
2008-11-12 20:29                     ` [PATCH 11/13] pxa_camera: check that YUV formats are always 8 bit wide Robert Jarzmik
2008-11-12 20:29                       ` [PATCH 12/13] pxa_camera: Fix YUV format handling Robert Jarzmik
2008-11-13 19:08                         ` [PATCH 13/13] pxa_camera: add sensor format passthrough Robert Jarzmik
2008-11-12 21:19                   ` [PATCH 09/13] pxa_camera: use the translation framework Guennadi Liakhovetski
2008-11-13  7:46                     ` Magnus Damm
2008-11-13 17:37                       ` Robert Jarzmik
2008-11-14  1:11                         ` Magnus Damm
2008-11-13 19:10                     ` Robert Jarzmik
2008-11-16  1:55 ` soc-camera: pixelfmt translation serie Guennadi Liakhovetski
2008-11-16 10:56   ` Robert Jarzmik
2008-11-16 13:24     ` Guennadi Liakhovetski
2008-11-16 14:22       ` Robert Jarzmik [this message]
2008-11-16 15:30         ` 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=87abbz698w.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.