[Android] [RFC PATCH 0/2] Use HW Decoders before Android 4.3 for a list of known devices
Thomas Guillem
thomas.guillem at gmail.com
Tue Oct 7 15:30:58 CEST 2014
Hi there,
I added a utility class that contains a list of devices that are known to work
with MediaCodec and/or OMX before android 4.3. The list is not exhaustive, and
it would be great if some other developers add some devices on that list.
So, when we are in automatic decoder mode (by default), either we use
MediaCodec if Android version >= 4.3 or we use HWDecoderUtil to get the best
decoder for that device (with HW_ACCELERATION_FULL flag).
I also use that table when user force HW Decoder from the menu. So if someone
force HW decoder on a device that is blacklisted, it won't try any HW Decoders.
And if someone force HW Decoder on a device that is known to work only on OMX,
it won't try MediaCodec.
My main issue is that iomx will be more used (see the list), and I only tested
OMX with direct rendering (I can't test anymore since I don't have these
devices anymore). By the way, I think that iomx-dr is more reliable than iomx.
So, I'm not sure if we should use these patches for 1.0 (that use vlc 2.2
branch without iomx-dr), or if we should push iomx-dr patches into 2.2. I don't
know, it's a big change just before a release...
Thomas Guillem (2):
LibVLC: factorize getMediaOptions
Use HW Decoders before 4.3 for a list of known devices
vlc-android/jni/libvlcjni.c | 51 ++++-----
.../src/org/videolan/libvlc/HWDecoderUtil.java | 123 +++++++++++++++++++++
vlc-android/src/org/videolan/libvlc/LibVLC.java | 76 +++++++++++--
vlc-android/src/org/videolan/libvlc/MediaList.java | 25 +----
4 files changed, 217 insertions(+), 58 deletions(-)
create mode 100644 vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java
--
2.1.0
More information about the Android
mailing list