Decode JPEG in C code using VPU

cancel
Showing results for 
Search instead for 
Did you mean: 

Decode JPEG in C code using VPU

544 Views
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

Labels (3)
0 Kudos
5 Replies

112 Views
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

112 Views
timf
Contributor II

Thanks for the prompt reply.

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

0 Kudos

112 Views
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 Kudos

112 Views
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 Kudos

112 Views
LeonardoSandova
Specialist I

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