plugin: simplify caps feature selection
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 28 Mar 2016 17:26:02 +0000 (19:26 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 18 Apr 2016 16:28:43 +0000 (18:28 +0200)
commitce6275020e7c1ff7af646857933f93726b73053a
treed5eb368c208e979e455b9985ff98b09db5edb21e
parent8c260701514ad3d5a7cf2952cd8a55f9f10f4ebb
plugin: simplify caps feature selection

This patch simplifies the function gst_vaapi_find_preferred_caps_feature().

Instead of intersecting custom caps to find the preferred feature, the peer
caps are traversed in order to find the preferred feature, according to an
ordered feature priority list.

In the case of GLTextureUploadMeta, the colour format is computed using
GstVideoInfo of the selected fixed caps.

https://bugzilla.gnome.org/show_bug.cgi?id=765223
gst/vaapi/gstvaapipluginutil.c