AnsweredAssumed Answered

i.MX6 JPEG hardware decoder in Android

Question asked by Philip Hopkins on Apr 15, 2014
Latest reply on Mar 22, 2017 by he yutong

I need i.MX6 hardware support for JPEG decoding in the land of Android.  I see the i.MX6 Android 4.3 AOSP release has the following video codec support for the android.media.MediaCodec: "video/mp4v-es", "video/3gpp", "video/avc", "x-vnd.on2.vp8".  However, I do not see support for decoding JPEG.  How would one do JPEG decoding using Java code and the imx6?  Do I need to make an NDK lib and refer to the JPEG decoding in OpenMAX somehow?  If so, is there an example on how to do this with the i.MX6 JPEG lib?

 

Project details:

--We are making an MJPEG stream realtime at 30FPS.  I have a version of it working with the BitmapFactory.decodeByteArray but this decoding is done in software and is too slow.

--I'm using an imx6 Wandboard Quad Core with their official Android 4.3 release.  I also have the Freescale Official 4.3 release compiled and working on our own hardware, if I need to inject anything in the source.

Outcomes