Re: How to handle different media bus format and actual video output format in soc camera?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14 September 2011 12:34, javier Martin
<javier.martin@xxxxxxxxxxxxxxxxx> wrote:
> Hi,
> I'm trying to add support for YUV420 format to mx2_camera.c soc-camera
> host driver.
>
> In my system, an imx27_visstrim_m10 board, this host is connected to a
> tvp5151 chip which is only
> able to transfer pixels in this format through the media  bus:
> V4L2_MBUS_FMT_YUYV8_2X8. However,
> imx27 eMMa has the possibility to get this data from the bus and
> convert it to a YUV420 format on the fly.
>
> What is the right way to handle this properly in soc-camera?
>
> I've been analyzing some code related to the matter and it seems
> "soc_camera_xlate_by_fourcc()" [1]
> only supports raw formats from the sensor [2].

OK, I think I found a good example of this in the pxa driver.
I post it here just in case someone has the same problem in a future:

http://lxr.linux.no/#linux+v3.0.4/drivers/media/video/pxa_camera.c#L1246

-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux