[vlc-commits] Add support for the new Android JellyBean MediaCodec API

Martin Storsjö git at videolan.org
Mon Oct 8 16:20:22 CEST 2012


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Oct  8 12:55:17 2012 +0300| [56020daa5f075ebaa0e0fdbe12a139cd56f3b5d8] | committer: Jean-Baptiste Kempf

Add support for the new Android JellyBean MediaCodec API

The MediaCodec API is a pretty thin layer on top of OMX, so
while it in principle doesn't gain us much, it is an official
API, while the OMX parts aren't. This API is a Java API, so
we have to use JNI to access it. While this is a few layers
extra, it is supposed to be a fixed API/ABI (contrary to the
IOMX layer which is unsupported in practice, but where the
ABI has been broken only between certain major releases).

This should in principle be enabled by default (without any
settings check box), since this is official public API and is
supposed to work. However in practice it might still be useful to
be able to disable/enable it at runtime, since there's currently
very little guarantees from Android about how to interpret the
decoded YUV data, and what pixel formats devices can use.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56020daa5f075ebaa0e0fdbe12a139cd56f3b5d8
---

 modules/codec/Modules.am                 |    5 +-
 modules/codec/omxil/android_mediacodec.c |  538 ++++++++++++++++++++++++++++++
 2 files changed, 542 insertions(+), 1 deletion(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=56020daa5f075ebaa0e0fdbe12a139cd56f3b5d8


More information about the vlc-commits mailing list