iMX6S CSI0 16-bit YCbCr capture: one color channel data missing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX6S CSI0 16-bit YCbCr capture: one color channel data missing

882 次查看
pavela
Contributor I

Hello.

I capture signal from FPGA on iMX6solo CSI0.

I use data pins D19~D4. I have also configured all necessary pins in *.dts-file.

Input data format: 16-bit parallel YUYV (YUV422).

I have prepared my own camera driver with the following parameters:

    my_capture_data.pix.pixelformat = V4L2_PIX_FMT_YUYV;
    my_capture_data.pix.width = 1024;
    my_capture_data.pix.height = 768;

I have also changed data width in drivers/media/video/mxc/capture/mxc_v4l2_capture.c:

   csi_param.data_width = IPU_CSI_DATA_WIDTH_16;

I send an image with synthetic color data:

Y channel is from my image,

U channel is always 0x7F,

V channel is always 0x81.

I am able to capture the image and I see the following data:

Y 0x7F Y 0 Y 0x7F Y 0 ...

Y channel data is in its place.

U channel data is in its place.

V channel is always 0.

What might be the issue?

标记 (6)
0 项奖励
回复
1 回复

663 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Pavel

for using signal on pins D19~D4 & 16-bit parallel YUYV, it is necessary to

use “generic-data” format, according to footnote 6 on Table 64. Camera

Input Signal Cross Reference, Format, and Bits Per Cycle i.MX6SDL Datasheet
http://www.nxp.com/docs/en/data-sheet/IMX6SDLCEC.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复