Decode JPEG in C code using VPU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Decode JPEG in C code using VPU

2,108 次查看
timf
Contributor II

Hi All,

Just wondering can I decode single JPEG with VPU in C code?  Is there any reference to start with?

Our application need to decode a lot of JPEG every second. I know iMX6 it only support MJPEG stream. But I think I can pack JPEG to MJPEG first on the fly. Can anyone point me a right way to do it? Thanks.

  Also, please confirm that does i.MX6 only support baseline DCT or not?

Thanks,

Tim

标签 (3)
0 项奖励
回复
5 回复数

1,676 次查看
LeonardoSandova
Specialist I

" But I think I can pack JPEG to MJPEG first on the fly"

If you can do that, then I suggest GStreamer, using either gst-launch or a specific app with following elements

filesrc -> vpudec -> multifilesink.

Leo

1,676 次查看
timf
Contributor II

Thanks for the prompt reply.

If I have to run the app in multiple instance, does vpudec support decoding simultaneously?

0 项奖励
回复

1,676 次查看
Tarek
Senior Contributor I

I don't think the vpudec is  your limiting factor. The limiting factor is the sink you will use for display.

0 项奖励
回复

1,676 次查看
LeonardoSandova
Specialist I

You are right Tarek, in this case VPU is not the limiting factor. Tim is using multisink, so seems that your limiting factor is your storage device :smileyhappy:

Leo

0 项奖励
回复

1,676 次查看
LeonardoSandova
Specialist I

There is a limit of concurrent instances, but I do not know the exact number.