commit: aee47352bba3743f7d8209540ef7599761c9b23d Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Wed Nov 23 22:13:17 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Tue Dec 6 18:00:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee47352
media-libs/gst-plugins-bad: allow use of onevpl Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> ...ad-1.20.4.ebuild => gst-plugins-bad-1.20.4-r1.ebuild} | 16 ++++++++++++++-- media-libs/gst-plugins-bad/metadata.xml | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4.ebuild b/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4-r1.ebuild similarity index 86% rename from media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4.ebuild rename to media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4-r1.ebuild index 993674feb2b4..dbe21628b89f 100644 --- a/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4.ebuild +++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.4-r1.ebuild @@ -13,7 +13,7 @@ LICENSE="LGPL-2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" # TODO: egl and gtk IUSE only for transition -IUSE="X bzip2 +egl gles2 gtk +introspection +opengl +orc vnc wayland" # Keep default IUSE mirrored with gst-plugins-base where relevant +IUSE="X bzip2 +egl gles2 gtk +introspection +opengl +orc vnc wayland qsv" # Keep default IUSE mirrored with gst-plugins-base where relevant # X11 is automagic for now, upstream #709530 - only used by librfb USE=vnc plugin # We mirror opengl/gles2 from -base to ensure no automagic openglmixers plugin (with "opengl?" it'd still get built with USE=-opengl here) @@ -33,6 +33,8 @@ RDEPEND=" ) orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] ) + + qsv? ( media-libs/oneVPL[wayland?,X?] ) " DEPEND="${RDEPEND}" @@ -57,7 +59,7 @@ src_prepare() { } multilib_src_configure() { - GST_PLUGINS_NOAUTO="shm ipcpipeline librfb hls" + GST_PLUGINS_NOAUTO="shm ipcpipeline librfb msdk hls" local emesonargs=( -Dshm=enabled @@ -68,6 +70,16 @@ multilib_src_configure() { $(meson_feature wayland) ) + # Quick Sync Video is amd64 native only + if use qsv && multilib_is_native_abi; then + emesonargs+=( + -Dmsdk=enabled + -Dmfx_api=oneVPL + ) + else + emesonargs+=( -Dmsdk=disabled ) + fi + if use opengl || use gles2; then myconf+=( -Dgl=enabled ) else diff --git a/media-libs/gst-plugins-bad/metadata.xml b/media-libs/gst-plugins-bad/metadata.xml index bad90bcb4b37..6749b9b02477 100644 --- a/media-libs/gst-plugins-bad/metadata.xml +++ b/media-libs/gst-plugins-bad/metadata.xml @@ -9,5 +9,6 @@ <flag name="bzip2">Enable bzip2 encoder/decoder plugin</flag> <flag name="egl">Enable EGL support</flag> <flag name="gles2">Enable GLES2 support</flag> + <flag name="qsv">Enable Intel Quick Sync Video using the <pkg>media-libs/oneVPL</pkg> dispatcher</flag> </use> </pkgmetadata>