After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734936 - Add libhybris loader support for OpenMAX IL on Android
Add libhybris loader support for OpenMAX IL on Android
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-omx
1.2.0
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-17 10:22 UTC by Mohammed Sameer
Modified: 2018-05-07 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed libhybris loader patch (12.11 KB, patch)
2014-08-17 10:22 UTC, Mohammed Sameer
needs-work Details | Review

Description Mohammed Sameer 2014-08-17 10:22:02 UTC
Created attachment 283641 [details] [review]
proposed libhybris loader patch

libhybris is a library used by Ubuntu touch, SailfishOS (Jolla phone and friends) and probably others to load Android bionic libraries inside glibc based systems.

This allows reusing Android adaptation.

Attaching a patch which adds a new "loader" keyword to gstomx.conf allowing gst-omx to use libhybris for loading OpenMAX IL cores built for Android.

Here is the MPEG4 video decoder part of gstomx.conf using the hybris loader (as an example):

[omxmpeg4videodec]
type-name=GstOMXMPEG4VideoDec
core-name=/system/lib/libmm-omxcore.so
component-name=OMX.qcom.video.decoder.mpeg4
rank=256
in-port-index=0
out-port-index=1
loader=hybris
hacks=no-empty-eos-buffer;no-disable-outport
sink-template-caps=video/mpeg,mpegversion=(int)4,systemstream=(boolean)false,width=(int) [1,MAX],height=(int) [1,MAX]
Comment 1 Sebastian Dröge (slomo) 2014-08-27 07:43:54 UTC
Review of attachment 283641 [details] [review]:

Looks generally good but the core loading will not do what you would expect if you use the same core with the hybris loader and without in the config file. Maybe it shouldn't be a runtime configuration at all and just a compile time configuration?
Comment 2 Mohammed Sameer 2014-08-27 15:48:10 UTC
My original approach was to have a compile time setting that will disable the glib based loader and enable hybris loader. I thought it'd be a good idea to make it runtime so one could mix bionic omx cores and non-bionic ones.

I however don't have a real preference towards either.

I can do it so that --enable-hybris would make it the only omx loader.
Comment 3 Sebastian Dröge (slomo) 2014-08-28 07:37:45 UTC
Sounds simpler for me. If anybody needs something else we can still change that later and try to find a better solution for the above mentioned inconsistency.
Comment 4 Julien Isorce 2017-05-24 09:27:29 UTC
Comment on attachment 283641 [details] [review]
proposed libhybris loader patch

As per comment 2 and 3, just need to remove "gboolean use_hybris" and its usage.
Comment 5 Sebastian Dröge (slomo) 2018-05-07 15:44:08 UTC
There does not seem to be any progress happening on this anymore, so let's close it for now. Feel free to reopen if someone wants to work on this again