public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] soc_camera: endianness between camera and its host
@ 2008-08-02 10:58 Robert Jarzmik
  2008-08-02 20:09 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 13+ messages in thread
From: Robert Jarzmik @ 2008-08-02 10:58 UTC (permalink / raw)
  To: video4linux-list

Modern camera chips provide ways to invert their data output, as well in colors
swap as in byte order. To be more precise, the one I know (mt9m111) enables :
 - swapping Red and Blue in RGB formats
 - swapping first and second byte in RGB formats
 - swapping Cb and Cr in YUV formats
 - swapping chrominance and luminance in YUV formats

This swap is necessary to adapt the camera chip output to the capture
interface. For example, pxa_camera on pxa27x CPUs expects RGB and YUV formats
in a very specific order. This order is not the default one on mt9m111 chip, so
the mt9m111 driver has to have a way to know how to order its output.

The question I have is where to put such information, so that board specific
code (arch/arm/mach-pxa/xxx.c) can setup this for a dedicated camera chip ?

One easy way would be to put it in soc_camera_link, but is it the right place ?

--
Robert

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-08-13 17:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox