]> git.sesse.net Git - vlc/commit
omxil: Allow using IOMX on Android
authorMartin Storsjö <martin@martin.st>
Wed, 21 Sep 2011 18:25:06 +0000 (21:25 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Sep 2011 20:05:28 +0000 (22:05 +0200)
commitc79789502fcc9f979afc47fc45bbb9a2150528ed
tree0fa7646973cbfeb7449e7802d453b4ed2e318521
parent507ebbfec559d5aaede258e53e18396dff7e574c
omxil: Allow using IOMX on Android

This adds a fake OMX core implementation, relying the calls
via IOMX to the media server, which contains the actual
OMX core.

Building with IOMX requires private Android headers from the
Android source tree, namely the frameworks/base and
system/core repositories. (Either froyo or gingerbread
should work for building.) This API is not public, has no
ABI guarantees and isn't supported.

Linking also requires libraries extracted from a
froyo/gingerbread device or emulator.

Since there are no ABI guarantees, linking to this API might
make the .so fail to load on some devices, so for proper use
it should be in a dynamically loaded module, separate from the
rest of the VLC core and modules.

Since this can lead to crashes on unsupported devices, it should
only be used in production on whitelisted device/firmware
combinations that are known to work.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac
modules/codec/omxil/Modules.am
modules/codec/omxil/iomx.cpp [new file with mode: 0644]
modules/codec/omxil/iomx.h [new file with mode: 0644]
modules/codec/omxil/omxil.c