Question

Is it possible to use Android native code and OMX-IL (maybe using stagefright even) for HW decoding in Android 4.1 onward (maybe you will suggest creating an instance of OMXCodec). But I want to do my own surface allocation and handling done from the client application. The OMXCodec::Create expects a ANAtiveWindow but I want to bypass that and just use a decode function, where I would pass a buffer/eglSurface and get the decoded frame output. Any help would be highly appreciated!

Was it helpful?

Solution

In JellyBean, I feel you could employ MediaCodec object to achieve the decoding of a frame. You could refer to the SimplePlayer implementation as in http://androidxref.com/4.2.2_r1/xref/frameworks/av/cmds/stagefright/SimplePlayer.cpp#316 which provide you a good reference to develop your program.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top