Overview

Request 6070 (accepted)

new package (2nd attempt)

Submit package home:Aloysius:branches:Multimedia / uvg266 to package Multimedia / uvg266

uvg266.changes Added
x
 
1
@@ -0,0 +1,38 @@
2
+-------------------------------------------------------------------
3
+Mon Jul  8 12:27:04 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
4
+
5
+- Update to version 0.8.1
6
+  * Fix small problems in Dependent Quantization code
7
+  * Fix for MTS bitcost estimation
8
+  * Add selection of VVC tools to the presets
9
+  * Update flow control to print CTU stats to stats file when
10
+    the stats-file-prefix is set
11
+  * Remove incorrect AVX2 define
12
+- Refresh uvg266-fix_no_return_nonvoid.patch
13
+
14
+-------------------------------------------------------------------
15
+Wed Sep 27 06:40:44 UTC 2023 - Luigi Baldoni <aloisio@gmx.com>
16
+
17
+- Update to version 0.8.0
18
+  * Add experimental support for intra sub partition (ISP)
19
+    requires disabling some of the AVX2 optimizations, see
20
+    e32cf4f
21
+  * Add experimental support for multi type tree (MTT) for intra
22
+    slices, similarly to ISP requires disabling some AVX2
23
+    optimizations e32cf4f
24
+  * Support for dependent quantization (DQ)
25
+  * Experimental support for intra block copy (IBC) not
26
+    guaranteed to have positive impact in most cases, primarly
27
+    intented for screen content coding
28
+  * AVX2 optimizations for non-square transform blocks
29
+  * AVX2 optimizations for DQ
30
+  * Simplify the dual-tree implementation and enable 2 height
31
+    chroma block with dual tree
32
+  * Fix several issues in rate distortion cost calculation
33
+- Add uvg266-fix_no_return_nonvoid.patch and
34
+  uvg266-fix_i586_build.patch
35
+
36
+-------------------------------------------------------------------
37
+Wed Jan  4 11:38:42 UTC 2023 - Luigi Baldoni <aloisio@gmx.com>
38
+
39
+- Initial package (v0.4.1)
40
uvg266.spec Added
99
 
1
@@ -0,0 +1,97 @@
2
+#
3
+# spec file for package uvg266
4
+#
5
+# Copyright (c) 2024 Packman Team <packman@links2linux.de>
6
+#
7
+# All modifications and additions to the file contributed by third parties
8
+# remain the property of their copyright owners, unless otherwise agreed
9
+# upon. The license for this file, and modifications and additions to the
10
+# file, is the same license as for the pristine package itself (unless the
11
+# license for the pristine package is not an Open Source License, in which
12
+# case the license is the MIT License). An "Open Source License" is a
13
+# license that conforms to the Open Source Definition (Version 1.9)
14
+# published by the Open Source Initiative.
15
+
16
+# Please submit bugfixes or comments via https://bugs.links2linux.org
17
+#
18
+
19
+%define sover   081
20
+Name:           uvg266
21
+Version:        0.8.1
22
+Release:        0
23
+Summary:        VVC encoder based on Kvazaar
24
+License:        BSD-3-Clause AND ISC
25
+URL:            https://ultravideo.fi/#encoder
26
+Source0:        https://github.com/ultravideo/uvg266/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
27
+# PATCH-FIX-OPENSUSE uvg266-add_lm.patch
28
+Patch0:         uvg266-add_lm.patch
29
+# PATCH-FIX-OPENSUSE uvg266-add_library_version.patch
30
+Patch1:         uvg266-add_library_version.patch
31
+# PATCH-FIX-OPENSUSE uvg266-fix_no_return_nonvoid.patch
32
+Patch2:         uvg266-fix_no_return_nonvoid.patch
33
+BuildRequires:  cmake
34
+%if 0%{?suse_version} > 1500
35
+BuildRequires:  gcc-c++
36
+%else
37
+BuildRequires:  gcc12
38
+BuildRequires:  gcc12-c++
39
+%endif
40
+BuildRequires:  pkgconfig
41
+
42
+
43
+%description
44
+A VVC encoder based on Kvazaar.
45
+
46
+%package -n lib%{name}_%{sover}
47
+Summary:        VVC encoder based on Kvazaar
48
+
49
+%description -n lib%{name}_%{sover}
50
+A VVC encoder based on Kvazaar.
51
+
52
+%package devel
53
+Summary:        Development files for lib%{name}_%{sover}
54
+Requires:       lib%{name}_%{sover} = %{version}
55
+
56
+%description devel
57
+Contains development files for lib%{name}_%{sover}
58
+
59
+%prep
60
+%autosetup -p1
61
+# fix soname
62
+sed -i 's|__VERSION__|%{sover}|g' CMakeLists.txt src/uvg266.pc.in
63
+
64
+%build
65
+export CC=cc
66
+export CXX=g++
67
+test -x "$(type -p gcc-12)" && export CC=gcc-12
68
+test -x "$(type -p g++-12)" && export CXX=g++-12
69
+%cmake \
70
+  -DCMAKE_C_COMPILER=$CC \
71
+  -DCMAKE_CXX_COMPILER=$CXX
72
+%cmake_build
73
+
74
+%install
75
+%cmake_install
76
+
77
+%check
78
+
79
+%post -n lib%{name}_%{sover}
80
+/sbin/ldconfig
81
+
82
+%postun -n lib%{name}_%{sover}
83
+/sbin/ldconfig
84
+
85
+%files
86
+%license LICENSE LICENSE.EXT.greatest
87
+%doc README.md
88
+%{_bindir}/%{name}
89
+%{_mandir}/man1/%{name}.1%{?ext_man}
90
+
91
+%files -n lib%{name}_%{sover}
92
+%{_libdir}/lib%{name}-%{sover}.so
93
+
94
+%files devel
95
+%{_includedir}/uvg266.h
96
+%{_libdir}/pkgconfig/%{name}.pc
97
+
98
+%changelog
99
uvg266-add_library_version.patch Added
86
 
1
@@ -0,0 +1,84 @@
2
+Index: uvg266-0.4.1/CMakeLists.txt
3
+===================================================================
4
+--- uvg266-0.4.1.orig/CMakeLists.txt
5
++++ uvg266-0.4.1/CMakeLists.txt
6
+@@ -128,9 +128,8 @@ if(MSVC)
7
+ endif()
8
+ 
9
+ if(BUILD_SHARED_LIBS)
10
+-  list( APPEND CMAKE_INSTALL_RPATH "${UVG266_INSTALL_LIBDIR}" "./" "../lib" )
11
+-  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
12
+-  add_library(uvg266 SHARED ${LIB_SOURCES})
13
++  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
14
++  add_library(uvg266-__VERSION__ SHARED ${LIB_SOURCES})
15
+ else()
16
+   add_library(uvg266 STATIC ${LIB_SOURCES})
17
+   if(MSVC) # Fix a linking problem with visual studio when the library is the same name as the binary
18
+@@ -139,9 +138,9 @@ else()
19
+   
20
+ endif()
21
+ 
22
+-target_include_directories(uvg266 PUBLIC src)
23
+-target_include_directories(uvg266 PUBLIC src/extras)
24
+-target_include_directories(uvg266 PUBLIC src/strategies)
25
++target_include_directories(uvg266-__VERSION__ PUBLIC src)
26
++target_include_directories(uvg266-__VERSION__ PUBLIC src/extras)
27
++target_include_directories(uvg266-__VERSION__ PUBLIC src/strategies)
28
+ 
29
+ file(GLOB LIB_SOURCES_STRATEGIES_AVX2 RELATIVE ${PROJECT_SOURCE_DIR} "src/strategies/avx2/*.c")
30
+ file(GLOB LIB_SOURCES_STRATEGIES_SSE41 RELATIVE ${PROJECT_SOURCE_DIR} "src/strategies/sse41/*.c")
31
+@@ -162,7 +161,7 @@ endif()
32
+ 
33
+ add_executable(uvg266-bin ${CLI_SOURCES})
34
+ 
35
+-target_link_libraries(uvg266-bin PUBLIC uvg266)
36
++target_link_libraries(uvg266-bin PUBLIC uvg266-__VERSION__)
37
+ 
38
+ set_target_properties(uvg266-bin PROPERTIES OUTPUT_NAME uvg266)
39
+ set_target_properties(uvg266-bin PROPERTIES RUNTIME_OUTPUT_NAME uvg266)
40
+@@ -179,7 +178,7 @@ else()
41
+   endif()
42
+   set(THREADS_PREFER_PTHREAD_FLAG ON)
43
+   find_package(Threads REQUIRED)
44
+-  target_link_libraries(uvg266 PUBLIC Threads::Threads)
45
++  target_link_libraries(uvg266-__VERSION__ PUBLIC Threads::Threads)
46
+ 
47
+   include(CheckLibraryExists)
48
+ 
49
+@@ -189,7 +188,7 @@ else()
50
+       set(EXTRA_LIBS ${EXTRA_LIBS} m)
51
+   endif (HAVE_LIB_M)
52
+ 
53
+-  target_link_libraries(uvg266 PUBLIC ${EXTRA_LIBS})
54
++  target_link_libraries(uvg266-__VERSION__ PUBLIC ${EXTRA_LIBS})
55
+   target_link_libraries(uvg266-bin PUBLIC ${EXTRA_LIBS})
56
+ endif()
57
+ 
58
+@@ -239,7 +238,7 @@ source_group( "" FILES ${SOURCE_GROUP_TO
59
+ 
60
+ install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.pc DESTINATION ${UVG266_INSTALL_LIBDIR}/pkgconfig)
61
+ install(TARGETS uvg266-bin DESTINATION ${UVG266_INSTALL_BINDIR})
62
+-install(TARGETS uvg266 ARCHIVE DESTINATION "${UVG266_INSTALL_LIBDIR}" LIBRARY DESTINATION "${UVG266_INSTALL_LIBDIR}" RUNTIME DESTINATION "${UVG266_INSTALL_BINDIR}")
63
++install(TARGETS uvg266-__VERSION__ ARCHIVE DESTINATION "${UVG266_INSTALL_LIBDIR}" LIBRARY DESTINATION "${UVG266_INSTALL_LIBDIR}" RUNTIME DESTINATION "${UVG266_INSTALL_BINDIR}")
64
+ install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.h DESTINATION ${UVG266_INSTALL_INCLUDEDIR})
65
+ install(FILES ${PROJECT_SOURCE_DIR}/doc/uvg266.1 DESTINATION ${UVG266_INSTALL_MANDIR})
66
+ 
67
+Index: uvg266-0.4.1/src/uvg266.pc.in
68
+===================================================================
69
+--- uvg266-0.4.1.orig/src/uvg266.pc.in
70
++++ uvg266-0.4.1/src/uvg266.pc.in
71
+@@ -1,12 +1,12 @@
72
+ prefix=@CMAKE_INSTALL_PREFIX@
73
+ exec_prefix=${prefix}
74
+-libdir=${prefix}/lib
75
++libdir=${prefix}/lib@LIB_SUFFIX@
76
+ incdir=${prefix}/include
77
+ 
78
+ Name: libuvg266
79
+ Description: @CMAKE_PROJECT_DESCRIPTION@
80
+ URL: @CMAKE_PROJECT_HOMEPAGE_URL@
81
+ Version: @PROJECT_VERSION@
82
+-Libs: -L${libdir} -luvg266
83
++Libs: -L${libdir} -luvg266-__VERSION__
84
+ Libs.private: @LIBS@
85
+ Cflags: -I${incdir}
86
uvg266-add_lm.patch Added
14
 
1
@@ -0,0 +1,12 @@
2
+Index: uvg266-0.4.1/CMakeLists.txt
3
+===================================================================
4
+--- uvg266-0.4.1.orig/CMakeLists.txt
5
++++ uvg266-0.4.1/CMakeLists.txt
6
+@@ -189,6 +189,7 @@ else()
7
+       set(EXTRA_LIBS ${EXTRA_LIBS} m)
8
+   endif (HAVE_LIB_M)
9
+ 
10
++  target_link_libraries(uvg266 PUBLIC ${EXTRA_LIBS})
11
+   target_link_libraries(uvg266-bin PUBLIC ${EXTRA_LIBS})
12
+ endif()
13
+ 
14
uvg266-fix_i586_build.patch Added
24
 
1
@@ -0,0 +1,22 @@
2
+From e5e32d67f43ba73db4a1a17aa975a070f15496be Mon Sep 17 00:00:00 2001
3
+From: Joose Sainio <joose.sainio@tuni.fi>
4
+Date: Wed, 27 Sep 2023 12:54:53 +0300
5
+Subject: PATCH avx2 Remove a define that was never meant to be committed
6
+
7
+---
8
+ src/strategies/avx2/dct-avx2.c | 2 --
9
+ 1 file changed, 2 deletions(-)
10
+
11
+diff --git a/src/strategies/avx2/dct-avx2.c b/src/strategies/avx2/dct-avx2.c
12
+index 081b1b25..01b1b4bb 100644
13
+--- a/src/strategies/avx2/dct-avx2.c
14
++++ b/src/strategies/avx2/dct-avx2.c
15
+@@ -52,8 +52,6 @@ extern const int16_t uvg_g_dct_8_t88;
16
+ extern const int16_t uvg_g_dct_16_t1616;
17
+ extern const int16_t uvg_g_dct_32_t3232;
18
+ 
19
+-#define COMPILE_INTEL_AVX2 1
20
+-
21
+ #if COMPILE_INTEL_AVX2 
22
+ #include "uvg266.h"
23
+ #if UVG_BIT_DEPTH == 8
24
uvg266-fix_no_return_nonvoid.patch Added
15
 
1
@@ -0,0 +1,13 @@
2
+Index: uvg266-0.8.1/src/search_ibc.c
3
+===================================================================
4
+--- uvg266-0.8.1.orig/src/search_ibc.c
5
++++ uvg266-0.8.1/src/search_ibc.c
6
+@@ -226,7 +226,7 @@ static bool check_mv_cost_satd(ibc_searc
7
+                           double* best_bits,
8
+                           vector2d_t *best_mv)
9
+ {
10
+-
11
++  return 0;
12
+  }
13
+ /**
14
+  * \brief Calculate cost for an integer motion vector.
15
uvg266-0.8.1.tar.gz Added
Refresh
Refresh
Request History
Luigi Baldoni's avatar

Aloysius created request about 1 year ago

new package (2nd attempt)


Luigi Baldoni's avatar

Aloysius accepted request about 1 year ago