From nobody Wed Dec 08 02:57:55 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7E39218B9C62; Wed, 8 Dec 2021 02:57:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J820M1mGwz4s1v; Wed, 8 Dec 2021 02:57:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1DED539B1; Wed, 8 Dec 2021 02:57:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B82vt5u043031; Wed, 8 Dec 2021 02:57:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B82vtNH043030; Wed, 8 Dec 2021 02:57:55 GMT (envelope-from git) Date: Wed, 8 Dec 2021 02:57:55 GMT Message-Id: <202112080257.1B82vtNH043030@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: b13ba26d1c9d - main - multimedia/onevpl: update to 2022.0.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b13ba26d1c9d5c5cf590f983a96cb8ae2e541e91 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638932275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ocyPSm6l+QDrM0erGb2pUW8eYcQ9FhPbDnXVfuShOJQ=; b=SuwEDAy3y4oU5C3/1ZdJ7ca5FMi5RSq1lQU1lATwjaQMEKwWd2i/hQrmaBmnkpvcbpN2mL 6tHk7yoPfZEGl9dnC7atwxqLG4Jxe65sqDNlFcG9Odppbw17djlf7y3RMY1aLoZHCzKpyw nVsaE5XKL6ZWSVzF5mbHmeCSHRXidgxHGZ/Dqv+cT2ZW9AVhmFRZWo8NwwlXMlLnDZpVBL /MOyPLAEvSBRLZn6eQ35zp3UmQ6sudU0JzxVgbjOV92xPteKf2BiBDnRBe1syA2IHZwEdX taGigaX7ID/9FTnkm7BIEqHGkyxXCh/HI8vJshACVPZtOQOZofYiFWHXTY0JdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638932275; a=rsa-sha256; cv=none; b=sL72ENh2DlqP1x7DJ/co+BAuj43IIyHmqpC6CX+3+uLyCNB4nZtOUwnTCxDRbZpEvaybWQ 8VQUuXpa6s0psQFVcT+Yh9i+h6YcxxCn++UblLIPz59NYKi1v7KsTJxrqpy8341L74Te57 1jo/wi5WvhAEYs5KC9IHNiwvt8SPybvnA8FmuYuIJiDoyAFhQL7sU2KKeP4y2nKicsMBvV g7KHiCzmwrO0x3SIt1tVbHqMVaeDcs1XQFI39M+flgAQSNP7KPuK2BiFa5xgYPkzxoG6wq 9IRvULslje6viRyujOkAh7kwRm9OGbThp7WiK9SmkTTugGB9lpO42G5TvrRI1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=b13ba26d1c9d5c5cf590f983a96cb8ae2e541e91 commit b13ba26d1c9d5c5cf590f983a96cb8ae2e541e91 Author: Jan Beich AuthorDate: 2021-12-07 00:05:44 +0000 Commit: Jan Beich CommitDate: 2021-12-08 02:38:37 +0000 multimedia/onevpl: update to 2022.0.0 Changes: https://github.com/oneapi-src/oneVPL/releases/tag/v2022.0.0 --- multimedia/onevpl/Makefile | 5 +- multimedia/onevpl/distinfo | 6 +- multimedia/onevpl/files/patch-basename | 22 ----- multimedia/onevpl/files/patch-include | 16 ---- multimedia/onevpl/files/patch-includes | 42 ++++++++++ multimedia/onevpl/files/patch-unix | 148 ++++++++++++++++++++++++--------- multimedia/onevpl/pkg-plist | 39 ++++++++- 7 files changed, 192 insertions(+), 86 deletions(-) diff --git a/multimedia/onevpl/Makefile b/multimedia/onevpl/Makefile index 24d1bf33a9eb..e6c3c7c09505 100644 --- a/multimedia/onevpl/Makefile +++ b/multimedia/onevpl/Makefile @@ -1,6 +1,6 @@ PORTNAME= oneVPL DISTVERSIONPREFIX= v -DISTVERSION= 2021.6.0 +DISTVERSION= 2022.0.0 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org @@ -16,9 +16,10 @@ LIB_DEPENDS= libdrm.so:graphics/libdrm \ libwayland-client.so:graphics/wayland \ libva.so:multimedia/libva -USES= cmake:testing compiler:c++17-lang localbase:ldflags pkgconfig +USES= cmake:testing compiler:c++17-lang localbase:ldflags pkgconfig xorg USE_GITHUB= yes USE_LDCONFIG= yes +USE_XORG= x11 xcb GH_ACCOUNT= oneapi-src CMAKE_TESTING_ON= BUILD_TESTS diff --git a/multimedia/onevpl/distinfo b/multimedia/onevpl/distinfo index 7a88bb23c4ea..5c874e0f00f8 100644 --- a/multimedia/onevpl/distinfo +++ b/multimedia/onevpl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1631573462 -SHA256 (oneapi-src-oneVPL-v2021.6.0_GH0.tar.gz) = c83590c4b0d12c4a48f4cbf4b6e8d595bf1f6f96bb262d21457793d19f7b2b6a -SIZE (oneapi-src-oneVPL-v2021.6.0_GH0.tar.gz) = 3034593 +TIMESTAMP = 1638835544 +SHA256 (oneapi-src-oneVPL-v2022.0.0_GH0.tar.gz) = cd0d34049e844602aed46928e8e110718e46a32fe76bc4f9f1e085ed7e54bc46 +SIZE (oneapi-src-oneVPL-v2022.0.0_GH0.tar.gz) = 3093492 diff --git a/multimedia/onevpl/files/patch-basename b/multimedia/onevpl/files/patch-basename deleted file mode 100644 index e0c6ae560c26..000000000000 --- a/multimedia/onevpl/files/patch-basename +++ /dev/null @@ -1,22 +0,0 @@ -POSIX basename allows modifying the argument, so make a local copy - -tools/legacy/sample_common/src/vaapi_utils.cpp:30:28: error: no matching function for call to 'basename' - so_handle = dlopen(basename(name), RTLD_GLOBAL | RTLD_NOW); - ^~~~~~~~ -/usr/include/libgen.h:39:7: note: candidate function not viable: 1st argument ('const char *') would lose const qualifier -char *basename(char *); - ^ - ---- tools/legacy/sample_common/src/vaapi_utils.cpp.orig 2021-09-13 22:51:02 UTC -+++ tools/legacy/sample_common/src/vaapi_utils.cpp -@@ -26,7 +26,9 @@ SimpleLoader::SimpleLoader(const char* name) { - dlerror(); - so_handle = dlopen(name, RTLD_GLOBAL | RTLD_NOW); - if (NULL == so_handle) { -- so_handle = dlopen(basename(name), RTLD_GLOBAL | RTLD_NOW); -+ char dlname[PATH_MAX + 1]; -+ strncpy(dlname, name, sizeof(dlname)); -+ so_handle = dlopen(basename(dlname), RTLD_GLOBAL | RTLD_NOW); - if (NULL == so_handle) { - std::cerr << dlerror() << std::endl; - throw std::runtime_error("Can't load library"); diff --git a/multimedia/onevpl/files/patch-include b/multimedia/onevpl/files/patch-include deleted file mode 100644 index f3c3559e96e1..000000000000 --- a/multimedia/onevpl/files/patch-include +++ /dev/null @@ -1,16 +0,0 @@ -Add missing headers - -tools/legacy/sample_common/src/vaapi_utils.cpp:29:28: error: use of undeclared identifier 'basename' - so_handle = dlopen(basename(name), RTLD_GLOBAL | RTLD_NOW); - ^ - ---- tools/legacy/sample_common/src/vaapi_utils.cpp.orig 2021-09-13 22:51:02 UTC -+++ tools/legacy/sample_common/src/vaapi_utils.cpp -@@ -8,6 +8,7 @@ - - #include "vaapi_utils.h" - #include -+ #include - #include - - //#if defined(LIBVA_DRM_SUPPORT) diff --git a/multimedia/onevpl/files/patch-includes b/multimedia/onevpl/files/patch-includes new file mode 100644 index 000000000000..def624979110 --- /dev/null +++ b/multimedia/onevpl/files/patch-includes @@ -0,0 +1,42 @@ +Adjust includes in various places. + +tools/legacy/sample_encode/src/sample_encode.cpp:1677:52: error: no member named 'ceil' in namespace 'std' + pParams->nBitRateMultiplier = (mfxU16)std::ceil(static_cast(maxVal) / mfxU16Limit); + ~~~~~^ +tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp:3943:55: error: no member named 'ceil' in namespace 'std' + mfxU32 framesForEncode = std::min(mfxU32(std::ceil(m_MaxFramesForTranscode / frcFactor)), + ~~~~~^ +tools/legacy/sample_multi_transcode/src/transcode_utils.cpp:2894:26: error: no member named 'ceil' in namespace 'std' + (mfxU16)std::ceil(static_cast(maxVal) / mfxU16Limit); + ~~~~~^ + +--- tools/legacy/sample_encode/src/sample_encode.cpp.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_encode/src/sample_encode.cpp +@@ -8,6 +8,7 @@ + #include "vpl_implementation_loader.h" + + #include ++#include + #include + #include + #include "pipeline_encode.h" +--- tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp +@@ -12,6 +12,7 @@ + + #include + #include ++#include + #include + #include + #include "mfx_itt_trace.h" +--- tools/legacy/sample_multi_transcode/src/transcode_utils.cpp.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_multi_transcode/src/transcode_utils.cpp +@@ -27,6 +27,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/multimedia/onevpl/files/patch-unix b/multimedia/onevpl/files/patch-unix index 1a5a4d2c1907..30e2036c3f9e 100644 --- a/multimedia/onevpl/files/patch-unix +++ b/multimedia/onevpl/files/patch-unix @@ -19,7 +19,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id if (libInfo->libNameFull.find(MSDK_LIB_NAME) != std::string::npos) { ^ ---- api/vpl/mfxdefs.h.orig 2021-09-13 22:51:02 UTC +--- api/vpl/mfxdefs.h.orig 2021-12-07 00:05:44 UTC +++ api/vpl/mfxdefs.h @@ -64,7 +64,7 @@ extern "C" #define MFX_PACK_BEGIN_STRUCT_W_PTR() MFX_PACK_BEGIN_X(8) @@ -39,7 +39,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #define MFX_DEPRECATED __attribute__((deprecated)) #if defined(__cplusplus) #define MFX_DEPRECATED_ENUM_FIELD_INSIDE(arg) arg __attribute__((deprecated)) ---- dispatcher/vpl/mfx_dispatcher_vpl.h.orig 2021-09-13 22:51:02 UTC +--- dispatcher/vpl/mfx_dispatcher_vpl.h.orig 2021-12-07 00:05:44 UTC +++ dispatcher/vpl/mfx_dispatcher_vpl.h @@ -47,7 +47,7 @@ typedef char CHAR_TYPE; // Windows x64 @@ -50,9 +50,9 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id // Linux x64 #define MSDK_LIB_NAME "libmfxhw64." #endif ---- dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp.orig 2021-09-13 22:51:02 UTC +--- dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp.orig 2021-12-07 00:05:44 UTC +++ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp -@@ -400,7 +400,9 @@ mfxU32 LoaderCtxVPL::GetSearchPathsSystemDefault(std:: +@@ -401,7 +401,9 @@ mfxU32 LoaderCtxVPL::GetSearchPathsSystemDefault(std:: #ifdef __linux__ // Add the standard path for libmfx1 install in Ubuntu searchDirs.push_back("/usr/lib/x86_64-linux-gnu"); @@ -62,7 +62,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id // Add other default paths searchDirs.push_back("/lib"); searchDirs.push_back("/usr/lib"); -@@ -1057,7 +1059,7 @@ mfxStatus LoaderCtxVPL::QueryLibraryCaps() { +@@ -1069,7 +1071,7 @@ mfxStatus LoaderCtxVPL::QueryLibraryCaps() { // update number of valid MSDK adapters numImplMSDK++; @@ -71,7 +71,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id // currently only one adapter on Linux (avoid multiple copies) break; #endif ---- dispatcher/vpl/mfx_dispatcher_vpl_lowlatency.cpp.orig 2021-09-13 22:51:02 UTC +--- dispatcher/vpl/mfx_dispatcher_vpl_lowlatency.cpp.orig 2021-12-07 00:05:44 UTC +++ dispatcher/vpl/mfx_dispatcher_vpl_lowlatency.cpp @@ -18,7 +18,7 @@ #define LIB_ONEVPL L"libmfx64-gen.dll" @@ -82,7 +82,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id // Linux x64 #define LIB_ONEVPL "libmfx-gen.so.1.2" #define LIB_MSDK "libmfxhw64.so.1" ---- dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp.orig 2021-09-13 22:51:02 UTC +--- dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp.orig 2021-12-07 00:05:44 UTC +++ dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp @@ -10,7 +10,7 @@ #include "vpl/mfx_dispatcher_vpl_win.h" @@ -111,7 +111,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id // require pthreads to be linked in for MSDK RT to load pthread_key_t pkey; if (pthread_key_create(&pkey, NULL) == 0) { ---- examples/coreAPI/legacy-decode/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/coreAPI/legacy-decode/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/coreAPI/legacy-decode/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -122,7 +122,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/coreAPI/legacy-encode/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/coreAPI/legacy-encode/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/coreAPI/legacy-encode/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -133,7 +133,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/coreAPI/legacy-vpp/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/coreAPI/legacy-vpp/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/coreAPI/legacy-vpp/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -144,7 +144,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/hello/hello-createsession/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/hello/hello-createsession/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/hello/hello-createsession/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -155,7 +155,18 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/hello/hello-decvpp/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/hello/hello-decode/src/util.h.orig 2021-12-07 00:05:44 UTC ++++ examples/hello/hello-decode/src/util.h +@@ -30,7 +30,7 @@ enum { + #include "vpl/mfxdispatcher.h" + #endif + +-#ifdef __linux__ ++#ifdef __unix__ + #include + #include + #endif +--- examples/hello/hello-decvpp/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/hello/hello-decvpp/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -166,7 +177,18 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/hello/hello-transcode/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/hello/hello-encode/src/util.h.orig 2021-12-07 00:05:44 UTC ++++ examples/hello/hello-encode/src/util.h +@@ -30,7 +30,7 @@ enum { + #include "vpl/mfxdispatcher.h" + #endif + +-#ifdef __linux__ ++#ifdef __unix__ + #include + #include + #endif +--- examples/hello/hello-transcode/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/hello/hello-transcode/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -177,7 +199,18 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #endif ---- examples/interop/advanced-decvpp-infer/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/hello/hello-vpp/src/util.h.orig 2021-12-07 00:05:44 UTC ++++ examples/hello/hello-vpp/src/util.h +@@ -30,7 +30,7 @@ enum { + #include "vpl/mfxdispatcher.h" + #endif + +-#ifdef __linux__ ++#ifdef __unix__ + #include + #include + #endif +--- examples/interop/advanced-decvpp-infer/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/interop/advanced-decvpp-infer/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -188,7 +221,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- examples/interop/hello-decode-infer/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/interop/hello-decode-infer/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/interop/hello-decode-infer/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -199,7 +232,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #endif ---- examples/interop/legacy-decode-infer/src/util.h.orig 2021-09-13 22:51:02 UTC +--- examples/interop/legacy-decode-infer/src/util.h.orig 2021-12-07 00:05:44 UTC +++ examples/interop/legacy-decode-infer/src/util.h @@ -30,7 +30,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -210,7 +243,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #include #include #endif ---- preview/cplusplus/examples/hello-decode-cpp/src/util.hpp.orig 2021-09-13 22:51:02 UTC +--- preview/cplusplus/examples/hello-decode-cpp/src/util.hpp.orig 2021-12-07 00:05:44 UTC +++ preview/cplusplus/examples/hello-decode-cpp/src/util.hpp @@ -21,7 +21,7 @@ #include "vpl/mfxdispatcher.h" @@ -230,7 +263,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #ifdef LIBVA_SUPPORT #include "va/va.h" #include "va/va_drm.h" ---- preview/cplusplus/examples/hello-encode-cpp/src/util.hpp.orig 2021-09-13 22:51:02 UTC +--- preview/cplusplus/examples/hello-encode-cpp/src/util.hpp.orig 2021-12-07 00:05:44 UTC +++ preview/cplusplus/examples/hello-encode-cpp/src/util.hpp @@ -21,7 +21,7 @@ #include "vpl/mfxdispatcher.h" @@ -250,7 +283,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #ifdef LIBVA_SUPPORT #include "va/va.h" #include "va/va_drm.h" ---- preview/python/binding/vpl_python.hpp.orig 2021-09-13 22:51:02 UTC +--- preview/python/binding/vpl_python.hpp.orig 2021-12-07 00:05:44 UTC +++ preview/python/binding/vpl_python.hpp @@ -15,6 +15,6 @@ @@ -260,7 +293,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id +#ifdef __unix__ #define strncpy_s(dst, size, src, cnt) strncpy((dst), (src), cnt) // NOLINT #endif ---- tools/cli/decvpp_tool/util.hpp.orig 2021-09-13 22:51:02 UTC +--- tools/cli/decvpp_tool/util.hpp.orig 2021-12-07 00:05:44 UTC +++ tools/cli/decvpp_tool/util.hpp @@ -31,7 +31,7 @@ enum { #include "vpl/mfxdispatcher.h" @@ -298,23 +331,58 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id #ifdef LIBVA_SUPPORT vaTerminate((VADisplay)accelHandle); close(fd); ---- tools/legacy/sample_encode/src/sample_encode.cpp.orig 2021-09-13 22:51:02 UTC -+++ tools/legacy/sample_encode/src/sample_encode.cpp -@@ -53,7 +53,7 @@ void PrintHelp(msdk_char* strAppName, const msdk_char* - - msdk_printf(MSDK_STRING(" If codecid is jpeg, -q option is mandatory.)\n")); - msdk_printf(MSDK_STRING("Options: \n")); --#if __linux__ -+#if __unix__ - msdk_printf(MSDK_STRING(" [-device /path/to/device] - set graphics device for processing\n")); - msdk_printf( - MSDK_STRING(" For example: '-device /dev/dri/card0'\n")); -@@ -532,7 +532,7 @@ mfxStatus ParseInputString(msdk_char* strInput[], mfxU - return MFX_ERR_UNSUPPORTED; - } - } --#if __linux__ -+#if __unix__ - else if (0 == msdk_strcmp(strInput[i], MSDK_STRING("-device"))) { - if (!pParams->strDevicePath.empty()) { - msdk_printf(MSDK_STRING("error: you can specify only one device\n")); +--- tools/legacy/sample_common/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_common/CMakeLists.txt +@@ -63,7 +63,7 @@ find_package(VPL REQUIRED) + target_link_libraries(sample_common PUBLIC VPL::dispatcher + media_sdk_compatibility_headers) + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + target_compile_definitions(sample_common PUBLIC LINUX64) + + find_package(PkgConfig REQUIRED) +--- tools/legacy/sample_decode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_decode/CMakeLists.txt +@@ -11,7 +11,7 @@ if(POLICY CMP0074) + cmake_policy(SET CMP0074 OLD) + endif() + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + if(NOT + (PKG_LIBVA_FOUND + AND PKG_LIBVA_DRM_FOUND +--- tools/legacy/sample_encode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_encode/CMakeLists.txt +@@ -11,7 +11,7 @@ if(POLICY CMP0074) + cmake_policy(SET CMP0074 OLD) + endif() + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + if(NOT (PKG_LIBVA_FOUND AND PKG_LIBVA_DRM_FOUND)) + message("Skipping sample_encode build.") + return() +--- tools/legacy/sample_multi_transcode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_multi_transcode/CMakeLists.txt +@@ -11,7 +11,7 @@ endif() + + find_package(VPL REQUIRED) + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + if(NOT + (PKG_LIBVA_FOUND + AND PKG_LIBVA_DRM_FOUND +--- tools/legacy/sample_vpp/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC ++++ tools/legacy/sample_vpp/CMakeLists.txt +@@ -25,7 +25,7 @@ if(POLICY CMP0074) + cmake_policy(SET CMP0074 OLD) + endif() + +-if(CMAKE_SYSTEM_NAME MATCHES Linux) ++if(UNIX AND NOT APPLE) + if(NOT (PKG_LIBVA_FOUND AND PKG_LIBVA_DRM_FOUND)) + message("Skipping sample_vpp build.") + return() diff --git a/multimedia/onevpl/pkg-plist b/multimedia/onevpl/pkg-plist index 6acf53c668ee..88a364a34819 100644 --- a/multimedia/onevpl/pkg-plist +++ b/multimedia/onevpl/pkg-plist @@ -1,4 +1,7 @@ bin/decvpp_tool +bin/hello-decode +bin/hello-encode +bin/hello-vpp bin/sample_decode bin/sample_encode bin/sample_multi_transcode @@ -31,14 +34,13 @@ include/vpl/preview/detail/variant.hpp include/vpl/preview/exception.hpp include/vpl/preview/extension_buffer.hpp include/vpl/preview/extension_buffer_list.hpp -include/vpl/preview/frame_pool.hpp include/vpl/preview/frame_surface.hpp include/vpl/preview/future.hpp include/vpl/preview/impl_caps.hpp include/vpl/preview/impl_selector.hpp +include/vpl/preview/option_tree.hpp include/vpl/preview/options.hpp include/vpl/preview/payload.hpp -include/vpl/preview/property_name.hpp include/vpl/preview/session.hpp include/vpl/preview/source_reader.hpp include/vpl/preview/stat.hpp @@ -49,7 +51,7 @@ lib/cmake/vpl/VPLConfig.cmake lib/cmake/vpl/VPLConfigVersion.cmake lib/libvpl.so lib/libvpl.so.2 -lib/libvpl.so.2.5 +lib/libvpl.so.2.6 lib/oneVPL/libvpl_wayland.so %%PYTHON%%%%PYTHON_LIBDIR%%/pyvpl%%PYTHON_EXT_SUFFIX%%.so libdata/pkgconfig/vpl.pc @@ -84,6 +86,13 @@ libdata/pkgconfig/vpl.pc %%DATADIR%%/examples/hello/hello-createsession/sample.json %%DATADIR%%/examples/hello/hello-createsession/src/hello-createsession.cpp %%DATADIR%%/examples/hello/hello-createsession/src/util.h +%%DATADIR%%/examples/hello/hello-decode/CMakeLists.txt +%%DATADIR%%/examples/hello/hello-decode/License.txt +%%DATADIR%%/examples/hello/hello-decode/PreLoad.cmake +%%DATADIR%%/examples/hello/hello-decode/README.md +%%DATADIR%%/examples/hello/hello-decode/sample.json +%%DATADIR%%/examples/hello/hello-decode/src/hello-decode.cpp +%%DATADIR%%/examples/hello/hello-decode/src/util.h %%DATADIR%%/examples/hello/hello-decvpp/CMakeLists.txt %%DATADIR%%/examples/hello/hello-decvpp/License.txt %%DATADIR%%/examples/hello/hello-decvpp/PreLoad.cmake @@ -91,25 +100,48 @@ libdata/pkgconfig/vpl.pc %%DATADIR%%/examples/hello/hello-decvpp/sample.json %%DATADIR%%/examples/hello/hello-decvpp/src/hello-decvpp.cpp %%DATADIR%%/examples/hello/hello-decvpp/src/util.h +%%DATADIR%%/examples/hello/hello-encode/CMakeLists.txt +%%DATADIR%%/examples/hello/hello-encode/License.txt +%%DATADIR%%/examples/hello/hello-encode/PreLoad.cmake +%%DATADIR%%/examples/hello/hello-encode/README.md +%%DATADIR%%/examples/hello/hello-encode/sample.json +%%DATADIR%%/examples/hello/hello-encode/src/hello-encode.cpp +%%DATADIR%%/examples/hello/hello-encode/src/util.h %%DATADIR%%/examples/hello/hello-transcode/CMakeLists.txt %%DATADIR%%/examples/hello/hello-transcode/License.txt %%DATADIR%%/examples/hello/hello-transcode/README.md %%DATADIR%%/examples/hello/hello-transcode/sample.json %%DATADIR%%/examples/hello/hello-transcode/src/hello-transcode.cpp %%DATADIR%%/examples/hello/hello-transcode/src/util.h +%%DATADIR%%/examples/hello/hello-vpp/CMakeLists.txt +%%DATADIR%%/examples/hello/hello-vpp/License.txt +%%DATADIR%%/examples/hello/hello-vpp/PreLoad.cmake +%%DATADIR%%/examples/hello/hello-vpp/README.md +%%DATADIR%%/examples/hello/hello-vpp/sample.json +%%DATADIR%%/examples/hello/hello-vpp/src/hello-vpp.cpp +%%DATADIR%%/examples/hello/hello-vpp/src/util.h %%DATADIR%%/examples/interop/advanced-decvpp-infer/CMakeLists.txt %%DATADIR%%/examples/interop/advanced-decvpp-infer/CPPLINT.cfg %%DATADIR%%/examples/interop/advanced-decvpp-infer/License.txt %%DATADIR%%/examples/interop/advanced-decvpp-infer/PreLoad.cmake %%DATADIR%%/examples/interop/advanced-decvpp-infer/README.md +%%DATADIR%%/examples/interop/advanced-decvpp-infer/docker/Dockerfile %%DATADIR%%/examples/interop/advanced-decvpp-infer/sample.json %%DATADIR%%/examples/interop/advanced-decvpp-infer/src/advanced-decvpp-infer.cpp %%DATADIR%%/examples/interop/advanced-decvpp-infer/src/util.h +%%DATADIR%%/examples/interop/dpcpp-blur/CMakeLists.txt +%%DATADIR%%/examples/interop/dpcpp-blur/License.txt +%%DATADIR%%/examples/interop/dpcpp-blur/PreLoad.cmake +%%DATADIR%%/examples/interop/dpcpp-blur/README.md +%%DATADIR%%/examples/interop/dpcpp-blur/sample.json +%%DATADIR%%/examples/interop/dpcpp-blur/src/dpcpp-blur.cpp +%%DATADIR%%/examples/interop/dpcpp-blur/src/util.h %%DATADIR%%/examples/interop/hello-decode-infer/CMakeLists.txt %%DATADIR%%/examples/interop/hello-decode-infer/CPPLINT.cfg %%DATADIR%%/examples/interop/hello-decode-infer/License.txt %%DATADIR%%/examples/interop/hello-decode-infer/PreLoad.cmake %%DATADIR%%/examples/interop/hello-decode-infer/README.md +%%DATADIR%%/examples/interop/hello-decode-infer/docker/Dockerfile %%DATADIR%%/examples/interop/hello-decode-infer/sample.json %%DATADIR%%/examples/interop/hello-decode-infer/src/hello-decode-infer.cpp %%DATADIR%%/examples/interop/hello-decode-infer/src/util.h @@ -117,6 +149,7 @@ libdata/pkgconfig/vpl.pc %%DATADIR%%/examples/interop/legacy-decode-infer/CPPLINT.cfg %%DATADIR%%/examples/interop/legacy-decode-infer/License.txt %%DATADIR%%/examples/interop/legacy-decode-infer/README.md +%%DATADIR%%/examples/interop/legacy-decode-infer/docker/Dockerfile %%DATADIR%%/examples/interop/legacy-decode-infer/sample.json %%DATADIR%%/examples/interop/legacy-decode-infer/src/legacy-decode-infer.cpp %%DATADIR%%/examples/interop/legacy-decode-infer/src/util.h