Access StageFright API to decode JPEG from Application layer in Android

1.7k views Asked by At

Is there a way to access StageFright API's to decode JPEG image from application layer on Android 2.3?

2

There are 2 answers

0
Shash316 On BEST ANSWER

No, Stagefright APIs are not exposed at Android Application Framework level. Android Media Player class abstracts the internal player frameworks like StageFright and OpenCore.

If you have the source code for Android, then you can use JPEG decoder present in StageFright (probably wrapped as OMX Component) through JNI.

0
Alexy On

No, it is not possible to use stagefright apis directly from the app layer. You will have to go through the java apis. But yes, if you are ready to write the jni layers hack around a LOT of code, it is possible in principle