CX3 configuration for OV5680 RAW10 format
untitle1022 Nov 6, 2017 6:41 PMNow, I am working with CX3 dev board for bring up ov5680 sensor.
The problem is that I am not sure how should I modify uvc descriptor for raw10 bit.
I already implemented uvc raw8 format, and at host pc I can preview the raw8 stream as well.
But when I modify the descriptor for RAW10, It cannot preview.
Please help me to check below dscr, feedback to me.
Thanks
#ifdef BAYER_RAW10
/* Class specific Uncompressed VS format descriptor */
0x1B, /* Descriptor size */
NMG_UVC_CS_INTRFC_DESCR, /* Class-specific VS interface Type */
0x04, /* Subtype : VS_FORMAT_UNCOMPRESSED */
0x01, /* Format desciptor index */
0x01, /* Number of Frame Descriptors that follow this descriptor: 3 */
/* GUID, globally unique identifier used to identify streaming-encoding format: BY10 */
0x42, 0x59, 0x31, 0x30, /*MEDIASUBTYPE_BY10 GUID: 30315942-0000-0010-8000-00AA00389B71 */
0x00, 0x00, 0x10, 0x00,
0x80, 0x00, 0x00, 0xAA,
0x00, 0x38, 0x9B, 0x71,
0x0A, /* Number of bits per pixel: 10 */ => Is it correct bit size for RAW10 ?
0x01, /* Optimum Frame Index for this stream: 1 (1944p) */
0x00, /* X dimension of the picture aspect ratio; Non-interlaced */
0x00, /* Y dimension of the pictuer aspect ratio: Non-interlaced */
0x00, /* Interlace Flags: Progressive scanning, no interlace */
0x00, /* duplication of the video stream restriction: 0 - no restriction */
/* Class specific Uncompressed VS frame descriptor 1 - 5MP@30fps */
0x1E, /* Descriptor size */
NMG_UVC_CS_INTRFC_DESCR, /* Descriptor type*/
0x05, /* Subtype: Uncompressed frame interface*/
0x01, /* Frame Descriptor Index: 1 */
0x01, /* No Still image capture method supported */
0x20, 0x0A, /* Width in pixel: 2592 */
0x98, 0x07, /* Height in pixel: 1944 */
0x00, 0x04, 0x1A, 0x5A, /* Min bit rate @30fps (bits/s): 2592 x 1944 x 30 x 10 = 1511654400 */ => Is it correct bit rate for RAW10 @30fps?
0x00, 0x04, 0x1A, 0x5A, /* Max bit rate @30fps (bits/s): 2592 x 1944 x 30 x 10 = 1511654400 */
0xC0, 0x1B, 0x60, 0x00, /* Maximum video frame size in bytes(Deprecated): 2592 x 1944 x 10 / 8 = 5038848 */
//0x00, 0xA0, 0x29, 0x90, /* Min bit rate @30fps (bits/s): 2592 x 1944 x 30 x 16 = 2418647040 */
//0x00, 0xA0, 0x29, 0x90, /* Max bit rate @30fps (bits/s): 2592 x 1944 x 30 x 16 = 2418647040 */
//0x00, 0xC6, 0x99, 0x00, /* Maximum video frame size in bytes(Deprecated): 2592 x 1944 x 16 / 8 = 5038848 */
0x15, 0x16, 0x05, 0x00, /* Default frame interval (in 100ns units): (1/15)x10^7 */
0x01, /* Frame interval type : No of discrete intervals */
0x15, 0x16, 0x05, 0x00, /* Frame interval 3: Same as Default frame interval */
/* Still image descriptor -YUV with QVGA resolution */
0x0A,
0x24,
0x03,
0x00,
0x01, //No of frame Resolutions Follows
0x20,0x0A, //2592x1944
0x98,0x07,
0x00,
#endif /* BAYER_RAW10 */