cx3 在sensor 输入为Raw8 格式如何将mipi config data format设置位YUV

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
steven
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

pastedImage_0.png

我的Sensor输出是raw8  图像,如何将 mipi 端的设置为YUv格式,而不是UYVY格式。

0 点赞
1 解答
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

你可以在配置工具的 第一页 选择 16-bit 的接口,切换到题图的标签页的话,默认显示YUV的格式。

你可以看下,此时生成的描述符文件里,format ID 对应的是 YUY2

    /* GUID, globally unique identifier used to identify streaming-encoding format*/

    0X59,0X55,0X59,0X32,

     0X00,0X00,0X10,0X00,

     0X80,0X00,0X00,0XAA,

     0X00,0X38,0X9B,0X71,

在原帖中查看解决方案

0 点赞
2 回复数
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

你可以在配置工具的 第一页 选择 16-bit 的接口,切换到题图的标签页的话,默认显示YUV的格式。

你可以看下,此时生成的描述符文件里,format ID 对应的是 YUY2

    /* GUID, globally unique identifier used to identify streaming-encoding format*/

    0X59,0X55,0X59,0X32,

     0X00,0X00,0X10,0X00,

     0X80,0X00,0X00,0XAA,

     0X00,0X38,0X9B,0X71,

0 点赞
steven
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

pastedImage_0.png

pastedImage_1.png

为什么AMCAP 打开的是无法预览,显示白屏,好像不支持这个格式,如果我将描述符 改为 RGB565 

0x7B, 0xEB, 0x36, 0xE4,             /*MEDIASUBTYPE_RGB565 e436eb7b-524f-11ce-9f53-0020af0ba770  */

0x4F, 0x52, 0xCE, 0x11,

0x9F, 0x53, 0x00, 0x20,

0xAF, 0x0B, 0xA7, 0x70,

则AMCAP可以显示黑屏。

0 点赞