[yocto] [PATCH 11/20] gst-va-intel: add conditional vaapi implementation

tom.zanussi at intel.com tom.zanussi at intel.com
Wed May 23 12:52:38 PDT 2012


From: Tom Zanussi <tom.zanussi at intel.com>

Use different versions of vaapi interface implementaion depending on
what a machine specifies.  The default if no MACHINE_FEATURE is
specified is gstreamer-vaapi.  Other machines may need a different
implementation e.g. a machine using emgd would specify
'gst-va-mixvideo' in its MACHINE_FEATURES in order to have the
implementation satisfied by emgd instead of gstreamer-vaapi, which
this also implements.

Signed-off-by: Tom Zanussi <tom.zanussi at intel.com>
---
 .../recipes-multimedia/gstreamer/gst-va-intel.bb   |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/common/recipes-multimedia/gstreamer/gst-va-intel.bb b/common/recipes-multimedia/gstreamer/gst-va-intel.bb
index 31bde4e..4f7fe9f 100644
--- a/common/recipes-multimedia/gstreamer/gst-va-intel.bb
+++ b/common/recipes-multimedia/gstreamer/gst-va-intel.bb
@@ -6,10 +6,14 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
 
 PR = "r0"
 
+VAAPI_IMPL = "${@base_contains('MACHINE_FEATURES', 'gst-va-mixvideo', 'gst-va-mixvideo-vaapi', \
+             'gst-va-intel-vaapi', d)}"
+
 PACKAGES = "\
     gst-va-intel \
     gst-va-intel-general \
     gst-va-intel-video \
+    ${VAAPI_IMPL} \
     "
 
 ALLOW_EMPTY = "1"
@@ -17,6 +21,7 @@ ALLOW_EMPTY = "1"
 RDEPENDS_gst-va-intel = "\
     gst-va-intel-general \
     gst-va-intel-video \
+    ${VAAPI_IMPL} \
     "
 
 RDEPENDS_gst-va-intel-general = "\
@@ -26,3 +31,11 @@ RDEPENDS_gst-va-intel-general = "\
 RDEPENDS_gst-va-intel-video = "\
     gst-plugins-good-isomp4 \
     "
+
+RDEPENDS_gst-va-intel-vaapi = "\
+    gstreamer-vaapi \
+    "
+
+RDEPENDS_gst-va-mixvideo-vaapi = "\
+    emgd-driver-bin \
+    "
-- 
1.7.0.4




More information about the yocto mailing list