Overview

Request 5462 (accepted)

No description set
Submit package Staging / vlc-beta to package Essentials / vlc-beta

vlc-beta.spec Changed
x
 
1
@@ -37,6 +37,7 @@
2
 Patch0:         vlc-beta.patch
3
 Patch1:         vlc.a52dec.patch
4
 Patch2:         vlc.hostname.patch
5
+Patch3:         vlc.libplacebo.patch
6
 Patch5:         fix_lib_version.patch
7
 Patch6:         fix_freerdp2_detection.patch
8
 Patch7:         fix_lua53_luaL_checkint.patch
9
@@ -131,7 +132,7 @@
10
 BuildRequires:  pkgconfig(zvbi-0.2) >= 0.2.28
11
 BuildRequires:  pkgconfig(dvdnav) >= 6.0.0
12
 BuildRequires:  pkgconfig(dvdread) >= 6.0.0
13
-BuildRequires:  pkgconfig(libplacebo) >= 1.7
14
+BuildRequires:  pkgconfig(libplacebo) >= 2.43
15
 BuildRequires:  pkgconfig(vulkan) >= 1.0.26
16
 BuildRequires:  pkgconfig(libbluray) >= 0.6.2
17
 %if %{with vlc_opencv}
18
@@ -202,6 +203,7 @@
19
 BuildRequires:  pkgconfig(xcursor)
20
 BuildRequires:  pkgconfig(xcb-randr) >= 1.3
21
 BuildRequires:  pkgconfig(xcb-keysyms) >= 0.3.4
22
+BuildRequires:  pkgconfig(xcb-damage)
23
 BuildRequires:  pkgconfig(vdpau) >= 0.6
24
 BuildRequires:  pkgconfig(libva-wayland)
25
 BuildRequires:  pkgconfig(wayland-client) >= 1.5.91
26
@@ -492,7 +494,7 @@
27
    --enable-vlc \
28
    --enable-nls
29
 
30
-%make_build
31
+%make_build --no-print-directory
32
 
33
 %install
34
 %make_install
35
vlc.hostname.patch Changed
10
 
1
@@ -2,7 +2,7 @@
2
 +++ b/configure.ac
3
 @@ -4208,7 +4208,7 @@ AC_SUBST(VERSION_MINOR)
4
     VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname`
5
- fi
6
+ ])
7
  AC_DEFINE_UNQUOTED([VLC_COMPILE_HOST], "$VLC_COMPILE_HOST", [host which ran configure])
8
 -AC_DEFINE_UNQUOTED([VLC_COMPILER], "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ *$//'`", [compiler])
9
 +AC_DEFINE_UNQUOTED([VLC_COMPILER], "gcc", [compiler])
10
vlc.libplacebo.patch Added
110
 
1
@@ -0,0 +1,108 @@
2
+revert 5be0a1e3dd35d6c93cf3766a506d3bd0ead6f9a5
3
+--- a/configure.ac
4
++++ b/configure.ac
5
+@@ -3163,7 +3163,7 @@ AC_ARG_ENABLE([libplacebo],
6
+       [disable libplacebo support (default auto)]))
7
+ 
8
+ AS_IF([test "$enable_libplacebo" != "no"], [
9
+-  PKG_CHECK_MODULES([LIBPLACEBO], [libplacebo >= 2.72], [
10
++  PKG_CHECK_MODULES([LIBPLACEBO], [libplacebo], [
11
+     AC_DEFINE([HAVE_LIBPLACEBO], [1], [Define to 1 if libplacebo is enabled.])
12
+     AC_CHECK_HEADER([libplacebo/vulkan.h], [VLC_ADD_PLUGIN([placebo_vk])])
13
+     AC_CHECK_HEADER([libplacebo/opengl.h], [
14
+--- a/modules/video_output/libplacebo/display.c
15
++++ b/modules/video_output/libplacebo/display.c
16
+@@ -82,8 +82,10 @@ typedef struct vout_display_sys_t
17
+     int lut_mode;
18
+ #endif
19
+ 
20
++#if PL_API_VER >= 58
21
+     const struct pl_hook *hook;
22
+     char *hook_path;
23
++#endif
24
+ } vout_display_sys_t;
25
+ 
26
+ // Display callbacks
27
+@@ -204,8 +206,10 @@ static void Close(vout_display_t *vd)
28
+     free(sys->lut_path);
29
+ #endif
30
+ 
31
++#if PL_API_VER >= 58
32
+     pl_mpv_user_shader_destroy(&sys->hook);
33
+     free(sys->hook_path);
34
++#endif
35
+ 
36
+     vlc_placebo_Release(sys->pl);
37
+ }
38
+@@ -229,6 +233,8 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
39
+ 
40
+     struct pl_image img = {
41
+         .num_planes = pic->i_planes,
42
++        .width      = pic->format.i_visible_width,
43
++        .height     = pic->format.i_visible_height,
44
+         .color      = vlc_placebo_ColorSpace(vd->fmt),
45
+         .repr       = vlc_placebo_ColorRepr(vd->fmt),
46
+         .src_rect = {
47
+@@ -511,6 +517,7 @@ error:
48
+ }
49
+ #endif
50
+ 
51
++#if PL_API_VER >= 58
52
+ static void LoadUserShader(vout_display_sys_t *sys, const char *filepath)
53
+ {
54
+     if (!filepath || !*filepath) {
55
+@@ -556,6 +563,7 @@ error:
56
+         fclose(fs);
57
+     return;
58
+ }
59
++#endif
60
+ 
61
+ // Options
62
+ 
63
+@@ -572,8 +580,10 @@ vlc_module_begin ()
64
+     add_shortcut ("libplacebo", "pl")
65
+     add_module ("pl-gpu", "libplacebo gpu", NULL, PROVIDER_TEXT, PROVIDER_LONGTEXT)
66
+ 
67
++#if PL_API_VER >= 58
68
+     set_section("Custom shaders", NULL)
69
+     add_loadfile("pl-user-shader", NULL, USER_SHADER_FILE_TEXT, USER_SHADER_FILE_LONGTEXT)
70
++#endif
71
+ 
72
+     set_section("Scaling", NULL)
73
+     add_integer("pl-upscaler-preset", SCALE_BUILTIN,
74
+@@ -828,6 +838,7 @@ static void UpdateParams(vout_display_t *vd)
75
+     }
76
+ #endif
77
+ 
78
++#if PL_API_VER >= 58
79
+     char *shader_file = var_InheritString(vd, "pl-user-shader");
80
+     LoadUserShader(sys, shader_file);
81
+     free(shader_file);
82
+@@ -837,4 +848,5 @@ static void UpdateParams(vout_display_t *vd)
83
+     } else {
84
+         sys->params.num_hooks = 0;
85
+     }
86
++#endif
87
+ }
88
+--- a/modules/video_output/libplacebo/utils.h
89
++++ b/modules/video_output/libplacebo/utils.h
90
+@@ -185,7 +185,9 @@ static const char * const lut_mode_text[] = {
91
+ #define TONEMAPPING_LONGTEXT "Algorithm to use when converting from wide gamut to standard gamut, or from HDR to SDR."
92
+ 
93
+ static const int tone_values[] = {
94
++#if PL_API_VER >= 68
95
+     PL_TONE_MAPPING_BT_2390,
96
++#endif
97
+     PL_TONE_MAPPING_HABLE,
98
+     PL_TONE_MAPPING_MOBIUS,
99
+     PL_TONE_MAPPING_REINHARD,
100
+@@ -195,7 +197,9 @@ static const int tone_values[] = {
101
+ };
102
+ 
103
+ static const char * const tone_text[] = {
104
++#if PL_API_VER >= 68
105
+     "ITU-R BT.2390 EETF (recommended)",
106
++#endif
107
+     "Hable (filmic mapping)",
108
+     "Mobius (linear + knee)",
109
+     "Reinhard (simple non-linear)",
110
Refresh
Refresh
Request History
Olaf Hering's avatar

olh created request over 3 years ago


Olaf Hering's avatar

olh accepted request over 3 years ago