public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sergio Aguirre <saaguirre@ti.com>
To: <g.liakhovetski@gmx.de>, <linux-media@vger.kernel.org>
Subject: [Query][soc_camera] How to handle hosts w/color conversion built in?
Date: Mon, 7 Mar 2011 14:41:50 -0600	[thread overview]
Message-ID: <4D75430E.8070001@ti.com> (raw)

Hi Guennadi and all,

I've been trying to make my omap4 camera host driver to allow YUYV -> 
NV12 color conversion, and add that to the supported host-client 
formats, but I think I have hit the wall with the host design.

I noticed that the soc_camera seems to be designed to just pass-through 
the client supported formats (i.e. if my sensor supports YUYV and JPEG, 
those will be the supported formats only)

Now, in my host driver, I have a feature to do a color conversion to 
NV12, but I'm still not sure on how to expand the supported formats to, 
say: YUYV, JPEG, and NV12 (which would be available only if the client 
outputs YUYV, of course).

I was trying adding a customized get_formats function, but as 
soc_camera_init_user_formats anyways depends heavly on the sensor's 
enum_mbus_fmt, it's hard to add supported formats that the sensor 
doesn't directly support.

Has this been done before? Any advice?

Regards,
Sergio

             reply	other threads:[~2011-03-07 20:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 20:41 Sergio Aguirre [this message]
2011-03-07 21:05 ` [Query][soc_camera] How to handle hosts w/color conversion built in? Guennadi Liakhovetski
2011-03-07 21:19   ` Sergio Aguirre
2011-03-07 21:29     ` 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=4D75430E.8070001@ti.com \
    --to=saaguirre@ti.com \
    --cc=g.liakhovetski@gmx.de \
    --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