commit c9bdd251787f62f45ccca7e5c11e85918719e4a780bf40baec0381f76b13dd85 Author: Adrian Schröter Date: Fri May 3 16:05:58 2024 +0200 Sync from SUSE:SLFO:Main libvpl revision fc7fcd891176d4f9d5aa2db27cee418d diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/libvpl-2.10.1.tar.gz b/libvpl-2.10.1.tar.gz new file mode 100644 index 0000000..eb0fb91 --- /dev/null +++ b/libvpl-2.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:524299a7b920ac0de1f6913ca90515858ea3a8ea2daaea60f8e0be62f22c8041 +size 11872022 diff --git a/libvpl.changes b/libvpl.changes new file mode 100644 index 0000000..a471420 --- /dev/null +++ b/libvpl.changes @@ -0,0 +1,196 @@ +------------------------------------------------------------------- +Mon Feb 5 10:46:27 UTC 2024 - Guillaume GARDET + +- Re-enable build on aarch64 + +------------------------------------------------------------------- +Sat Jan 20 10:02:00 UTC 2024 - Stefan Dirsch + +- u_buildfix-i586.patch + * fixed build on i586 + +------------------------------------------------------------------- +Fri Jan 19 16:06:29 UTC 2024 - Hans-Peter Jansen + +- Update to version 2.10.1 + + Changed + * Project name to Intel® Video Processing Library (Intel® VPL) + * Project versioning scheme to align with library and API + version + + Added + * Intel® VPL specification and associated build scripts + + Known Issues + * sample_decode may report "DeliverOutput return error = -1" + when run using -r option + * vpl-infer example will fail to load model if built with CMake + version higher than 3.25.3 on Windows +- Add libva build dep + +------------------------------------------------------------------- +Mon Dec 4 12:25:24 UTC 2023 - Stefan Dirsch + +- This includes latest version of one of the components needed for + Video (processing) hardware support on Intel GPUs (bsc#1217770) + +------------------------------------------------------------------- +Mon Dec 4 12:21:30 UTC 2023 - Stefan Dirsch + +- Update to version 2023.4.0 + * Added + + oneVPL API 2.10 support + + New command line parameters to sample_multi_transcode for setting + B Frame QP Offsets based on Pyramid Level + + New command line parameters to the sample_vpp tool to enable video + signal information + + New APIs for importing and exporting shared surfaces + + New APIs for string-based parameter configuration + * Removed + + Environment module support + + Unused files and folders + * Fixed + + NV12 wayland render for MTL + + Buffer starvation when wayland window is moved + + Missing profile strings in vpl-inspect tool + + Rdrm to use card node instead of render node + + Rdrm tile4 selection based DRM/KMS query + + Rdrm NV12 and P010 render for MTL + * Changed + + Directory layout and name of dispatcher directory + + Location of image files used by documentation + + Runtime library search path to remove current directory + +------------------------------------------------------------------- +Wed Nov 29 16:47:50 UTC 2023 - Stefan Dirsch + +- only build %ix86 for Tumbleweed; otherwise just build it for + x86_64 (bsc#1217662) + +------------------------------------------------------------------- +Mon Apr 10 15:58:39 UTC 2023 - Stefan Brüns + +- Update to version 2023.2.0 + * Added + + oneVPL API 2.9 support + + Perceptual encoding prefilter option to + sample_multi_transcode + * Fixed + + VPP processing for YUV input + + Sample_multi_transcode segfault on wayland + + Missing prerequisites in vpl-infer README + * Changed + + vpl-infer Dockerfile and Linux setup steps to better align + with https://dgpu-docs.intel.com/ + * Removed + + dpcpp-blur example +- Drop upstreamed fix_arm_ilp32.patch + +------------------------------------------------------------------- +Tue Jan 17 23:36:53 UTC 2023 - Stefan Brüns + +- Update to version 2023.1.1 + * Added + + Help screen listing valid options for vpl-inspect + + YUV400 option for JPEG encoding with sample_encode + + Build option --disable_experimental to build with + ONEVPL_EXPERIMENTAL disabled + * Changed + + Session creation example to request a minimum API version +- Update to version 2023.1.0 + * Added + + oneVPL API 2.8 support + + New infer sample + + xdg_shell for weston10 + * Fixed + + NOT_ENOUGH_BUFFER error when HRD off in ExtBRC + + Legacy tools using x86/x86_64 specific assembler code + + Pkg-config files not installing in correct location in cross + compilation scenarios +- Reenable other architectures again for all products. + * Add fix_arm_ilp32.patch +- Drop upstream remove_x86_64_check.patch + +------------------------------------------------------------------- +Tue Nov 15 12:14:20 UTC 2022 - Stefan Dirsch + +- missed part of specfile to limit build to x86_64 on older + products than factory + +------------------------------------------------------------------- +Tue Nov 8 09:19:49 UTC 2022 - Stefan Dirsch + +- limit build again to x86_64 on older products than factory + +------------------------------------------------------------------- +Mon Nov 7 12:57:38 UTC 2022 - Stefan Dirsch + +- needed for jira#PED-1174 (Video decoding/encoding support + (VA-API, ...) for Intel GPUs is outside of Mesa) + +------------------------------------------------------------------- +Wed Nov 2 12:58:37 UTC 2022 - Stefan Dirsch + +- Update to version 2023.0.0 + * new bump from master branch + +------------------------------------------------------------------- +Sat Sep 24 11:43:47 UTC 2022 - Stefan Brüns + +- Update to version 2022.2.4 + * Add SMPTE ST 2084A color description preset + * Add parallel encoding support + * Add dynamic bitstream buffer reallocation + +------------------------------------------------------------------- +Mon Sep 19 23:46:34 UTC 2022 - Stefan Brüns + +- Update to version 2022.2.3 + * Multiple hardware adapters are supported as part of the 2.6 + API update. They provide faster performance by taking advantage + of available platform resources. + * MPEG2 decode is now supported in a CPU implementation to + improve codec coverage for systems that do not have dedicated + hardware. + +------------------------------------------------------------------- +Mon Sep 19 23:27:26 UTC 2022 - Stefan Brüns + +- Enable build on all archs, oneVPL is platform agnostic, add + remove_x86_64_check.patch + +------------------------------------------------------------------- +Mon Jul 11 09:40:17 UTC 2022 - Stefan Dirsch + +- Update to version 2022.1.5 + * oneVPL 2022.1.0 has been updated to include functional and + security updates. + * part of oneVPL GPU Runtime 2022Q2 Release - 22.4.4 +- third-party-programs.txt issue has been fixed; license.txt removed + as well +- examples moved to /usr/share/vpl +- packaged new config scripts /usr/etc/modulefiles/vpl and + /usr/etc/vpl/vars.sh + +------------------------------------------------------------------- +Tue Nov 2 18:49:30 UTC 2021 - Stefan Dirsch + +- remove third-party-programs.txt during setup + * When not building on Windows using Visual Studio, the Visual + Studio runtimes are not needed to be installed so we can remove + these licenses from being mentioned. On Linux we're using + cmake/make/gcc for building/installation and we don't have any + (need for) MS Visual Studio runtime. (oneapi-src/oneVPL issue#27) + --> https://github.com/oneapi-src/oneVPL/issues/27 + +------------------------------------------------------------------- +Mon Oct 4 15:20:51 UTC 2021 - Stefan Dirsch + +- fixed JIRA number in previous changelog + +------------------------------------------------------------------- +Thu Sep 23 11:19:11 UTC 2021 - Stefan Dirsch + +- created package libvpl (jira#SLE/SLE-19361) + * oneAPI Video Processing Library (oneVPL) dispatcher, tools, and + examples: The oneAPI Video Processing Library (oneVPL) provides + a single video processing API for encode, decode, and video + processing that works across a wide range of accelerators. diff --git a/libvpl.spec b/libvpl.spec new file mode 100644 index 0000000..21eae70 --- /dev/null +++ b/libvpl.spec @@ -0,0 +1,119 @@ +# +# spec file for package libvpl +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} < 1550 + %define _distconfdir %{_prefix}%{_sysconfdir} +%endif + +%bcond_without tools + +%global sover 2 +Name: libvpl +%define lname libvpl%{sover} +Version: 2.10.1 +Release: 0 +Summary: oneAPI Video Processing Library (oneVPL) dispatcher, tools, and examples +License: MIT +Group: Development/Languages/C and C++ +URL: https://github.com/oneapi-src/oneVPL +Source0: https://github.com/oneapi-src/oneVPL/archive/refs/tags/v%{version}.tar.gz#/libvpl-%{version}.tar.gz +Patch0: u_buildfix-i586.patch +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(wayland-client) +%if 0%{?suse_version} > 1600 +ExclusiveArch: x86_64 %ix86 aarch64 +%else +ExclusiveArch: x86_64 aarch64 +%endif + +%description +The oneAPI Video Processing Library (oneVPL) provides a single video processing +API for encode, decode, and video processing that works across a wide range of +accelerators. + +%package -n %lname +Summary: oneAPI Video Processing Library (oneVPL) dispatcher +Group: System/Libraries + +%description -n %lname +The oneAPI Video Processing Library (oneVPL) provides a single video processing +API for encode, decode, and video processing that works across a wide range of +accelerators. + +%package devel +Summary: Development files for oneAPI Video Processing Library (oneVPL) dispatcher +Group: Development/Languages/C and C++ +Requires: %lname = %version + +%description devel +This package contains the development headers and pkgconfig files for +the oneAPI Video Processing Library (oneVPL) dispatcher + +%package samples +Summary: Examples for the oneAPI Video Processing Library (oneVPL) dispatcher +Group: Development/Languages/C and C++ + +%description samples +This package contains example applications for the oneAPI Video Processing Library (oneVPL) dispatcher. + +%prep +%autosetup -p1 -n libvpl-%{version} + +%build +%cmake \ + -DBUILD_TOOLS:BOOL=%{?with_tools:ON}%{!?with_tools:OFF} \ + %{nil} +%cmake_build + +%install +%cmake_install + +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + +%files +%doc README.md third-party-programs.txt + +%files -n %lname +%license LICENSE +%dir %{_distconfdir} +#%dir %{_distconfdir}/modulefiles +%dir %{_distconfdir}/vpl +#%{_distconfdir}/modulefiles/vpl +%{_distconfdir}/vpl/vars.sh +%{_libdir}/libvpl.so.%{sover} +%{_libdir}/libvpl.so.%{sover}.* + +%if %{with tools} +%files samples +%{_bindir}/* +%endif + +%files devel +%doc +%{_includedir}/vpl/ +%{_libdir}/libvpl.so +%{_libdir}/pkgconfig/vpl.pc +%{_libdir}/cmake/vpl/ +%{_datadir}/vpl/ + +%changelog diff --git a/u_buildfix-i586.patch b/u_buildfix-i586.patch new file mode 100644 index 0000000..168c9da --- /dev/null +++ b/u_buildfix-i586.patch @@ -0,0 +1,11 @@ +--- libvpl-2.10.1.orig/tools/legacy/sample_common/src/vaapi_utils.cpp 2024-01-20 09:55:42.622941953 +0000 ++++ libvpl-2.10.1/tools/legacy/sample_common/src/vaapi_utils.cpp 2024-01-20 09:57:05.012571878 +0000 +@@ -348,7 +348,7 @@ VAStatus CLibVA::AcquireVASurface(void** + MSDK_ZERO_MEMORY(extsrf); + MSDK_ZERO_MEMORY(bufferInfo); + extsrf.num_buffers = 1; +- extsrf.buffers = &handle; ++ extsrf.buffers = (uintptr_t*) &handle; + + attribs[0].type = (VASurfaceAttribType)VASurfaceAttribMemoryType; + attribs[0].flags = VA_SURFACE_ATTRIB_SETTABLE;