cx3,fx3可以把yuv转换为mjpg格式后输出吗?

公告

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

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

cross mob
liuzhengxiang
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

你好,目前ov5640给到cx3的数据是yuv格式的,请问cx3可以转换成mjpg视频流输出吗?

0 点赞
1 解答
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

CX3 FX3的机能是不足以支持转换的运算的,你需要直接向FX3/CX3输入MJPEG格式的视频流。

在原帖中查看解决方案

0 点赞
7 回复数
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

CX3 FX3的机能是不足以支持转换的运算的,你需要直接向FX3/CX3输入MJPEG格式的视频流。

0 点赞
liuzhengxiang
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

你好,我现在按ov5640的资料,配置为jpeg格式输出,但是打开时总是报dma错误CX3_DMA_RESET_EVENT:

DMA RESET
CyCx3AppStop

但是原来的yuv输出是正常的。我现在是在测试jpeg输出方式

0 点赞
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

您可以参考SDK中的MJPEG例程:

The MJPEG example firmware is available as part of FX3 SDK. Once you install the FX3 SDK, you can find the example   project at the following directory:

  • On 32-bit Windows: C:\Program Files Cypress\EZ-USB FX3 SDK\<SDK Version>\firmware\uvc_examples
  • On 64-bit Windows: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\<SDK Version>\firmware\uvc_examples
0 点赞
liuzhengxiang
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

你们这例子只是模拟数据,把静态数据glUVCVidFrames,通过dma方式发送出去。而不是通过sensor的数据呀

0 点赞
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

DMA 报错你可以调试,DMACallback中是可以获取buffer数据的,比如串口打印数据量。我觉得这里是你sensor的数据就有问题,MIPI bridge解析就没有成功

0 点赞
liuzhengxiang
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

我也觉得sensor数据有问题,CyCx3AppDmaCallback函数根本没有调用。请问你们有ov5640配置mjpeg输出的参数吗?

0 点赞
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

这个寄存器表属于OV的资料,我们没有办法给的

0 点赞