문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top