[Android] [RFC PATCH 0/3] OMX: android hardware buffers

Thomas Guillem guillem at archos.com
Mon Jun 30 10:48:27 CEST 2014


I pushed my patches in my github here:
https://github.com/tguillem/vlc-android .

I think it's always better to use MediaCodec than IOMX when it's available.

I don't think we should pull my last patch that enable iomx for jb, jbmr2,
and kitkat (or maybe put a debug/config to enable it) since it may cause
some instability.

Indeed, with a Nexus 7v2 (QCOM) on android 4.4, IOMX (with or without
hwbuf) make mediaserver crash. No problem for vlc because it fallback to
libav.
It need to check that crash later, I tested on Archos Video Player and I
can't reproduce it using the same conditions.


2014-06-29 22:08 GMT+02:00 Martin Storsjö <martin at martin.st>:

> On Thu, 26 Jun 2014, Thomas Guillem wrote:
>
>  Hi,
>>
>> Here is my set of patches that goes with my other set of patches I
>> proposed on
>> vlc-devel mailing list that enable android hardware buffers on OMX.
>>
>> - I added some symbols on android-libs that are needed by GraphicBuffer on
>>   iomx.cpp.
>>
>> - I also added some gingerbread headers to enable iomx_hwbuffer.c build,
>> but
>>   I'm not sure that we can use HW buffer on gingerbread, I need to check
>> that
>>   later.
>>
>> I also have local big patches that add headers for jb, jbmr2 and kitkat,
>> but I
>> don't know if submitting a 6MB patch is well appreciated on a mailing
>> list.
>>
>
> It's probably better to push those to a git clone somewhere (e.g. github)
> and we can fetch them from there, instead of mailing them.
>
> I'm pretty sure plain jb used to work with the ics headers at least for
> the normal indirect rendering, but the ABI for direct rendering might
> require separate headers.
>
> I also thought that the normal iomx decoding on jbmr2 worked fine with ics
> headers, but when I tested this now I do indeed need new headers for this
> as well. So either we should add those and build a separate
> libiomx-jbmr2.so, or change the limits in vlc-android/src/org/videolan/libvlc/LibVLC.java
> to make sure we don't try to load libiomx-ics.so on JB MR 2. (Is there any
> modern device where MediaCodec is available, where it works worse than
> IOMX?)
>
> // Martin
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
>

-- 


This email and any files transmitted with it are confidential and are 
intended solely for the use of the individual or entity to which they are 
addressed. Access to this e-mail by anyone else is unauthorised. If you are 
not the intended recipient, any disclosure, copying, distribution or any 
action taken or omitted to be taken in reliance on it, is prohibited. 
E-mail messages are not necessarily secure. Archos does not accept 
responsibility for any changes made to this message after it was sent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20140630/224360bb/attachment.html>


More information about the Android mailing list