From 6da5358cb1e2d55dd24bbb9d00861402753ec64c Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Fri, 18 May 2012 12:55:44 -0500 Subject: gst-va-intel: add conditional vaapi implementation 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 --- common/recipes-multimedia/gstreamer/gst-va-intel.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/recipes-multimedia/gstreamer/gst-va-intel.bb b/common/recipes-multimedia/gstreamer/gst-va-intel.bb index 31bde4e3..4f7fe9ff 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 \ + " -- cgit v1.2.3-54-g00ecf