[vlc-devel] [PATCH 00/21] RFC/Testing patches for omxil on Android

Martin Storsjo martin at martin.st
Sun Sep 4 14:54:05 CEST 2011

From: Martin Storsjö <martin at martin.st>

As discussed on VDD today, I've been experimenting with modifying
the VLC omxil module for being able to use it on Android.
Here are the patches I have locally for doing this.

Some of them are proper individual bugfixes/features that probably
can be applied as such, while some are ugly hacks that shouldn't
go anywhere near git yet (please don't flame me for those ones :-).
I've tried to annotate each of the patches to explain their
status (these explanations can be stripped out if they are commited).

All of this is built on a vlc-android tree from July, so hopefully
they still apply without too many changes on the current relevant
tree - I haven't yet had time to rebase them on the new vlc-android
tree as cleaned up by j-b.

Martin Storsjö (21):
  Enable the omxil module
  Avoid duplicate symbols when linking the omxil module statically into
    the same module as the avcodec module
  Try loading the qualcomm omx core
  Increase the score for the omxil module
  Update the number of buffers when reconfiguring
  omxil: Only handle video
  Recognize some semiplanar 420 formats, too
  Pass the slice height to CopyOmxPicture
  Do manual copying of semiplanar->planar
  omxil: Feed H264 in annex b format
  Convert omxil.c to C++
  Convert utils.c to C++
  Add IOMX wrapping for the omxil module
  Enable the iomx module
  Don't trust a qcom decoder claiming to output 420 planar
  Add another qcom pixel format ID
  Pretend that the new qcom pixel format is normal I420
  Add a stub implementation of another IOMX callback function
  Only set the buffer size if it is smaller than what the codec
  Push a sentinel buffer on the input buffer fifo when the output needs
  Work in progress for fixing handling of

 configure.ac                               |   12 ++
 extras/package/android/Makefile            |    2 +-
 extras/package/android/configure.sh        |    8 +-
 modules/codec/omxil/Modules.am             |    6 +-
 modules/codec/omxil/iomx.cpp               |    2 +
 modules/codec/omxil/iomx_utils.cpp         |    2 +
 modules/codec/omxil/{omxil.c => omxil.cpp} |  291 ++++++++++++++++++++++++----
 modules/codec/omxil/omxil.h                |   99 ++++++++++
 modules/codec/omxil/omxil_utils.h          |   16 ++-
 modules/codec/omxil/{utils.c => utils.cpp} |  139 ++++++++++++--
 10 files changed, 509 insertions(+), 68 deletions(-)
 create mode 100644 modules/codec/omxil/iomx.cpp
 create mode 100644 modules/codec/omxil/iomx_utils.cpp
 rename modules/codec/omxil/{omxil.c => omxil.cpp} (84%)
 rename modules/codec/omxil/{utils.c => utils.cpp} (86%)


More information about the vlc-devel mailing list