Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 and BAYER configurations of CSI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alberto Panizzo
Date: Monday, January 3, 2011 - 9:06 am

On Wed, 2010-12-01 at 19:54 +0100, Guennadi Liakhovetski wrote:

This change follows what I described upward. The CSI can manage only RGB 8 bits
per component or YUV 4:4:4. Marking the stream with other types (take rgb565 as
example) produce a packing-to-memory task from what the CSI is setup to transfer
(RGB-8 or YUV4:4:4) to the IPU pixel format chosen. So the only way to manage
pixel formats that are not native for the CSI is through: BAYER format for CSI
and IPU_PIX_FMT_GENERIC for IPU.


This is a way to maintain the previous behaviour that I consider wrong
and object of a second patch.

SBGGR10 pixel types are managed in a strange way within the mx3_camera code
I think because the previous code were not able to manage pixel formats
with multiple bytes for pixel.

That's why there is a first handshake of the pixel format in mx3_camera_get_formats
with the needs of a "pixel format translation" to support SBGGR10 through
real SBGGR8.

This translation is not needed with the tools I introduce in this patch
and the future is moving in this way. But what I want to do is to show
first that translation is not needed (without breaking any userspace code)
and next fix it.


Yes I agree. Shall this code be pushed in a different patch?
...I think yes because of it could be useful also for other drivers..

But this code will be used only when we will get rid of the
pixel code translations.


All other code-style changes are object of the version 2 of this patch :)

Guennadi, how do you consider the path I've shown? Can I continue in this
way or shall I present a patch that get rid of translations and manage
all the pixel format in the way I understood the manual speak about?

I prefer this way that maintain the usability of the whole set of pixel codes
for everyone after this step and then fix together the translations. 
I don't hold a camera that output a grey format..

Best Regards,
Alberto!

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] soc_camera: Add the ability to bind regula ..., Guennadi Liakhovetski, (Sun Nov 28, 12:05 pm)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Tue Nov 30, 7:31 am)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Wed Dec 1, 11:54 am)
Re: [PATCH 3/3] V4L2: Add a v4l2-subdev (soc-camera) drive ..., Guennadi Liakhovetski, (Wed Dec 1, 4:32 pm)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Sat Dec 18, 9:24 am)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Thu Dec 30, 12:38 pm)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Alberto Panizzo, (Mon Jan 3, 9:06 am)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Mon Jan 3, 9:24 am)
Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 a ..., Guennadi Liakhovetski, (Mon Jan 3, 12:37 pm)