- Please note that you cannot report RAW format in UVC format descriptor. UVC driver doesn't support RAW format.
- So the options available are:
a) Report the image format as YUY2 and then you have to write your Host application to take the data from the driver and convert into the required form.
b) Instead of UVC class, you can make the device come up as vendor class device and then write your Host application to handle the RAW16 data.
I have seen your comment: "I try to use the yuv422 configuration" - With this do you mean you have used that particular CyU3PMipicsiDataFormat_t ?
If yes, then please note that the format that the UVC driver sees is the one that you have mentioned in your UVC format descriptor.
And also please check the 'Number of bits per pixel' in your format descriptor.
hemanthr_06 Thank you for your answer. I can received the yuv2 format correctly and play on the e-cam, and when i changed the "CyU3PMipicsiDataFormat_t " to "CY_U3P_CSI_DF_RAW12", the e-cam can receive and play it on the screen also. But the color be with the green. So i think raw data frame have been transfer to the host correctly, but i don't known how to get the frame and deal with the header of the CX3 and UVC, so i confuse that about the endian and header of the UVC protocol, and is there CX3 do any process (e.g data rearraynge) on the raw data? thanks a lot.
No, CX3 doesn't process the RAW data. It just acts as a pipe to transfer the data to the Host. On the Host side as I said before, it has to be processed and make it displayable.