cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

NoAr_1540581
New Contributor II

Hello

Re: CX3 configuration for OV5680 RAW10 format

I am understanding  that RAW10 input data can be converted to YUV422 with CX3 based on the above Link,and the conversion data can be viewed as standard UVC data with UVC applications such as AMcap and e-CAMView.

Q1)

If they change the data format mentioned above, is it ok to think that it can be changed only by customizing the CX3 FW? No need to change the UVC driver?


Q2)

Could you please explain in details how the data array of YUV422 is converted when RAW10 is packed with 16bits?

Best Regards,

Arai

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator

Hello,

For streaming RAW videos in YUY2 format, you need to develop your own Host Application. Let me make it more clear.

Example 1: RAW 10 output data format (CY_U3P_CSI_DF_RAW10)

In this, the MIPI receiver gives out 10 bits of pixel data to GPIF II block per PCLK. The remaining 6 bits will be 0 padded to make each pixel to have 16 bits so as to conform to YUY2 format. In this case, you need a host application that can accept the 16 bits of pixel data and discard the padded zeros.

Example 2: 16-bit output data format (CY_U3P_CSI_DF_YUV422_8_2)

In this, bits from successive pixels will be packed as as shown in fig 3 of the KBA which was sent before. In this case, the 16 bits obtained after packing will contain information about multiple pixels. So you need to develop a host application that can differentiate the packed bits properly.

Also, please refer to Question 10 of following document for some additional information:

CX3 Firmware: Frequently Asked Questions - KBA91297 

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post

3 Replies
JayakrishnaT_76
Moderator
Moderator

Hello,

Please find the following KBA which explains the answers for both of your questions in detail:

Streaming RAW10 Format Input Data to 16/24-bit Output Format in CX3 MIPI CSI-2 - KBA224387

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes
NoAr_1540581
New Contributor II

Hello Jayakrishna san

Thank you for your reply.

Please let me know whether my understanding is correct, or not. I understand that the following examples apply to the conversion from RAW10 to YUV422.

>> Example 2: 16-bit output data format (CY_U3P_CSI_DF_YUV422_8_2)

My understanding is that if Set CY_U3P_CSI_DF_YUV422_8_2 as the output format in cyu3mipicsi.c by replacing CY_U3P_CSI_DF_RAW10, to remove padded zeros. it means that it can convert to YUV422. Also, I understood that the HOST side can recognize UVC by adding a UVC header to this conversion data in CX3 firmware. In the case of UVC, there is no need to modify the HOST side driver. Is it correct recognition?

Best Regards

Arai

0 Likes
JayakrishnaT_76
Moderator
Moderator

Hello,

For streaming RAW videos in YUY2 format, you need to develop your own Host Application. Let me make it more clear.

Example 1: RAW 10 output data format (CY_U3P_CSI_DF_RAW10)

In this, the MIPI receiver gives out 10 bits of pixel data to GPIF II block per PCLK. The remaining 6 bits will be 0 padded to make each pixel to have 16 bits so as to conform to YUY2 format. In this case, you need a host application that can accept the 16 bits of pixel data and discard the padded zeros.

Example 2: 16-bit output data format (CY_U3P_CSI_DF_YUV422_8_2)

In this, bits from successive pixels will be packed as as shown in fig 3 of the KBA which was sent before. In this case, the 16 bits obtained after packing will contain information about multiple pixels. So you need to develop a host application that can differentiate the packed bits properly.

Also, please refer to Question 10 of following document for some additional information:

CX3 Firmware: Frequently Asked Questions - KBA91297 

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post