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 11:56:48 +0100 [thread overview]
Message-ID: <8763mo6irz.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0811160142140.21494@axis700.grange> (Guennadi Liakhovetski's message of "Sun\, 16 Nov 2008 02\:55\:26 +0100 \(CET\)")
Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:
> Ok, I looked at your patches, I even have reviewed #8 and #9 (at least
> partially.) But I think I won't send those reviews. I have a different
> idea now:-) Don't worry, it probably won't mean more work for you. It will
> mean some more work for me, and some work for you too, but, simpler than
> what you have done in your patches, if we agree to my idea, of course:
>
> 1. On the first call to soc_camera_open() we generate a list of possible
> pixel formats.
Ack.
> 2. on format enumeration we just walk the generated above list, so, I
> don't see a need to let host drivers overload this function. If we agree,
> this can stay central in soc_camera.c for all, then we drop my patch
> "soc-camera: move pixel format handling to host drivers (part 2)," adding
> .enum_fmt method to struct soc_camera_host_ops.
Ack.
> 3. try_fmt and set_fmt are handled by the host driver, and that one
> decides which format to request from the sensor.
>
> Now, seeing all the complexity in your patch-series, I would like to
> simplify it. I don't think we need to export to struct soc_camera_device
> the list of host-provided format conversions (your
>
> const struct soc_camera_format_translate *translate_fmt;
>
> pointer.) So I would drop soc_camera_format_generate() and let host's
> ->add_extra_formats() method do all the work - add both format types
> "special" and "pass-through." And because it now would handle not only
> extra formats, it should be called just "add_formats" or "get_formats" or
> "generate_formats"... Then available_formats I would just make a list of
> pointers to struct soc_camera_data_format, so the host driver would just
> either assign a pointer to a sensor provided format struct in case of
> pass-through, or a pointer to its own struct. Hosts would then just define
> a static array of these "extra" structs, similar to sensors. And we don't
> need your struct soc_camera_computed_format - how the host generates the
> required format and which format it requests from the sensor is their
> intimate business, we don't want to intrude in their private life:-)
>
> How does this sound? If this is accepted, I would resend my patch-series
> without the above patch. And you can decide if you want to code this new
> patch or I shall do it.
Sounds good. Let me add one constraint though. There should be somewhere (at
format generation for example) a debug way to show (printk, ...) each format
translation between host format and sensor format.
This was in the patch serie if soc_camera format generation function, and
provided tracability to the translation process.
Would you also duplicate current_fmt, so that the current host format and sensor
current format are available at sight ?
> If you do it, please, only do this one patch at first. After we have got
> it right, then we can add support to PXA and SuperH. Also we should
> preserve the current behaviour at least until the drivers are ported -
> just assign pointers to all sensor-provided formats to the newly-allocated
> list if the host doesn't provide an .add_formats method.
I'll wait for your patches this time, and won't generate a new one. Would you
please, once your first throw is ready, post a full serie as I did, so that I
can apply it all for test and review ? ;)
Cheers.
--
Robert
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-11-16 10:57 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 [this message]
2008-11-16 13:24 ` Guennadi Liakhovetski
2008-11-16 14:22 ` Robert Jarzmik
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=8763mo6irz.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