Provides a hardware video decoder and zero-copy rendering solution for the Ubuntu Touch platform. This is the initial commit.
Improved zero-copy rendering in some instances when gst_mir_buffer_pool_release_buffer gets called before gst_amc_video_dec_fill_buffer actually gets called. This prevents a segfault.
Remove all mention of miralloc since the real GstAllocator library is in gst-libs/gst/mir
The video decoder and mirsink now both work with playbin, although mirsink must be explicitly set with playbin's video-sink property to be used. Playbin can't yet automatically select mirsink from a list of possible sinks that it could use.
Some build fixes

  - Path qualify hybris includes
  - Use the CFLAGS and LDFLAGS in androidmedia since we need to use
    headers elsewhere in this project.
Fix some more include paths
Various additional build / linking fixes
Added a signal to mirsink to signal to QtMultimedia GStreamer when a frame is ready to be rendered. Also added color formats to gstamc for the Nexus 4 decoder.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Create a SurfaceTextureClientHybris instance based on a texture id from the app. This disables support of creating a SurfaceTextureClientHybris instance from an eglNativeWindow. Also some code cleanup.
Remove libubuntu_application_api dependency from mirsink since it's no longer used for setting up a texture.
Change jsize to size_t so that gstamchybris.c builds without jni.h
Build clean-up for the mirsink changes

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
gstamcvideodechybris: add proper support for new qualcomm colorspace

Based on a patch by Jorge Luis Zapata <jzapata@fluendo.com>, from
upstream.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
gstamchybris.c: in our case, media_codecs.xml is available under /system/etc

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
gstamchybris.c: verifying if compat is available in plugin_init

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Disable color format conversion QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka for now since the plugins don't support non-accelerated buffer copying at the moment.
Fix the segfault issue for when the EOS is reached. Also removed some unused code.
Use an EGLNativeWindowType by default so that playback works with playbin and not just the qtmultimedia scenario only.
Use the display dimensions for setting the window dimensions for the pure playbin scenario.
Enable software rendering so that this decoder plugin can work with other video sinks.