Re: Current status report of mt9p031.

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

 



Hi Javier,

On Tuesday 10 May 2011 16:14:09 javier Martin wrote:
> Hi Laurent,
> information for data lane shifter is passed through platform data:
> 
> /**
>  * struct isp_parallel_platform_data - Parallel interface platform data
>  * @data_lane_shift: Data lane shifter
>  *		0 - CAMEXT[13:0] -> CAM[13:0]
>  *		1 - CAMEXT[13:2] -> CAM[11:0]
>  *		2 - CAMEXT[13:4] -> CAM[9:0]
>  *		3 - CAMEXT[13:6] -> CAM[7:0]
>  * @clk_pol: Pixel clock polarity
>  *		0 - Non Inverted, 1 - Inverted
>  * @bridge: CCDC Bridge input control
>  *		ISPCTRL_PAR_BRIDGE_DISABLE - Disable
>  *		ISPCTRL_PAR_BRIDGE_LENDIAN - Little endian
>  *		ISPCTRL_PAR_BRIDGE_BENDIAN - Big endian
>  */
> struct isp_parallel_platform_data {
> 	unsigned int data_lane_shift:2;
> 	unsigned int clk_pol:1;
> 	unsigned int bridge:4;
> };
> 
> This way I am able to convert from 12bpp to 8bpp:
> data_lane_shift = 2  and  bridge = ISPCTRL_PAR_BRIDGE_DISABLE

That's usually used to define a static conversion, when sensor data lines 7-0 
are connected to ISP data lines 11-3. Capturing 8-bit raw bayer data from a 
12-bit raw bayer sensor should be done by dynamically configuring the 
pipeline.

I'm not at home and don't have access to my OMAP3 hardware now, I'll try your 
use case when I'll come back (end of the week or during the weekend).

-- 
Regards,

Laurent Pinchart
--
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