[FFmpeg-devel] Add JNI and Android content resolver support
nfxjfg at googlemail.com
Fri Oct 9 19:16:01 CEST 2015
On Fri, 9 Oct 2015 18:26:48 +0200
Matthieu Bouron <matthieu.bouron at gmail.com> wrote:
> The following patchset add support for the Java Native Interface in
> FFmpeg through different helpers to:
> * manage the JNI environment (attach/detach),
> * load classes/methods/fields from a single interface (avpriv_jni_init_jfields)
> * manage android application context and class loader, so FFmpeg will be able to
> load custom classes (which is needed if we want to use the MediaCodec ability to
> decode to a surface)
> * other helpers.
> Supporting JNI in FFmpeg will allow us to support hardware decoding on the Android
> platform through the MediaCodec API.
> The latest patch of the serie add support of the Android content resolver which is
> retreived from the application context and will allow FFmpeg to handle uris starting
> with content://
Java support has no place in libavutil, or anywhere else in ffmpeg.
Besides, even Google is gaining some sanity, and adding C APIs to some
components commonly needed by native code. (As j-b said, MediaCodec is
one of them.)
More information about the ffmpeg-devel