Overview

Request 5556 (accepted)

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

vlc-beta.spec Changed
x
 
1
@@ -37,10 +37,6 @@
2
 Patch0:         vlc-beta.patch
3
 Patch1:         vlc.a52dec.patch
4
 Patch2:         vlc.hostname.patch
5
-%if 0%{?sle_version} == 150300
6
-BuildRequires:  pkgconfig(placebo) >= 321
7
-Patch3:         vlc.libplacebo.patch
8
-%endif
9
 Patch5:         fix_lib_version.patch
10
 Patch6:         fix_freerdp2_detection.patch
11
 Patch7:         fix_lua53_luaL_checkint.patch
12
@@ -139,7 +135,7 @@
13
 BuildRequires:  pkgconfig(zvbi-0.2) >= 0.2.28
14
 BuildRequires:  pkgconfig(dvdnav) >= 6.0.0
15
 BuildRequires:  pkgconfig(dvdread) >= 6.0.0
16
-BuildRequires:  pkgconfig(libplacebo) >= 2.43
17
+BuildRequires:  pkgconfig(libplacebo)
18
 BuildRequires:  pkgconfig(vulkan) >= 1.0.26
19
 BuildRequires:  pkgconfig(libbluray) >= 0.6.2
20
 %if %{with vlc_opencv}
21
@@ -214,7 +210,7 @@
22
 BuildRequires:  pkgconfig(xcb-xfixes)
23
 BuildRequires:  pkgconfig(vdpau) >= 0.6
24
 BuildRequires:  pkgconfig(libva-wayland)
25
-BuildRequires:  pkgconfig(wayland-client) >= 1.5.91
26
+BuildRequires:  pkgconfig(wayland-client)
27
 BuildRequires:  pkgconfig(wayland-cursor)
28
 BuildRequires:  pkgconfig(wayland-egl)
29
 BuildRequires:  pkgconfig(wayland-protocols) >= 1.15
30
@@ -440,7 +436,9 @@
31
 %endif
32
    --enable-xcb \
33
    --enable-vdpau \
34
+%if 0
35
    --enable-wayland \
36
+%endif
37
    --enable-freetype \
38
    --enable-fribidi \
39
    --enable-harfbuzz \
40
@@ -495,7 +493,9 @@
41
    --enable-gbm \
42
    --enable-notify \
43
    --disable-vulkan \
44
+%if 0
45
    --enable-libplacebo \
46
+%endif
47
    --enable-vulkan \
48
    --disable-medialibrary \
49
    --with-kde-solid=%{_datadir}/kde4/apps/solid \
50
vlc.libplacebo.patch Deleted
112
 
1
@@ -1,110 +0,0 @@
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
- 
25
- #if PL_API_VER >= 185
26
-     struct pl_dovi_metadata dovi_metadata;
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,10 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
39
- 
40
-     struct pl_image img = {
41
-         .num_planes = pic->i_planes,
42
-+#if PL_API_VER < 192
43
-+        .width      = pic->format.i_visible_width,
44
-+        .height     = pic->format.i_visible_height,
45
-+#endif
46
-         .color      = vlc_placebo_ColorSpace(vd->fmt),
47
-         .repr       = vlc_placebo_ColorRepr(vd->fmt),
48
-         .src_rect = {
49
-@@ -511,6 +517,7 @@ error:
50
- }
51
- #endif
52
- 
53
-+#if PL_API_VER >= 58
54
- static void LoadUserShader(vout_display_sys_t *sys, const char *filepath)
55
- {
56
-     if (!filepath || !*filepath) {
57
-@@ -556,6 +563,7 @@ error:
58
-         fclose(fs);
59
-     return;
60
- }
61
-+#endif
62
- 
63
- // Options
64
- 
65
-@@ -572,8 +580,10 @@ vlc_module_begin ()
66
-     add_shortcut ("libplacebo", "pl")
67
-     add_module ("pl-gpu", "libplacebo gpu", "any", PROVIDER_TEXT, PROVIDER_LONGTEXT)
68
- 
69
-+#if PL_API_VER >= 58
70
-     set_section("Custom shaders", NULL)
71
-     add_loadfile("pl-user-shader", NULL, USER_SHADER_FILE_TEXT, USER_SHADER_FILE_LONGTEXT)
72
-+#endif
73
- 
74
-     set_section("Scaling", NULL)
75
-     add_integer("pl-upscaler-preset", SCALE_BUILTIN,
76
-@@ -828,6 +838,7 @@ static void UpdateParams(vout_display_t *vd)
77
-     }
78
- #endif
79
- 
80
-+#if PL_API_VER >= 58
81
-     char *shader_file = var_InheritString(vd, "pl-user-shader");
82
-     LoadUserShader(sys, shader_file);
83
-     free(shader_file);
84
-@@ -837,4 +848,5 @@ static void UpdateParams(vout_display_t *vd)
85
-     } else {
86
-         sys->params.num_hooks = 0;
87
-     }
88
-+#endif
89
- }
90
---- a/modules/video_output/libplacebo/utils.h
91
-+++ b/modules/video_output/libplacebo/utils.h
92
-@@ -185,7 +185,9 @@ static const char * const lut_mode_text = {
93
- #define TONEMAPPING_LONGTEXT "Algorithm to use when converting from wide gamut to standard gamut, or from HDR to SDR."
94
- 
95
- static const int tone_values = {
96
-+#if PL_API_VER >= 68
97
-     PL_TONE_MAPPING_BT_2390,
98
-+#endif
99
-     PL_TONE_MAPPING_HABLE,
100
-     PL_TONE_MAPPING_MOBIUS,
101
-     PL_TONE_MAPPING_REINHARD,
102
-@@ -195,7 +197,9 @@ static const int tone_values = {
103
- };
104
- 
105
- static const char * const tone_text = {
106
-+#if PL_API_VER >= 68
107
-     "ITU-R BT.2390 EETF (recommended)",
108
-+#endif
109
-     "Hable (filmic mapping)",
110
-     "Mobius (linear + knee)",
111
-     "Reinhard (simple non-linear)",
112
Refresh
Refresh
Request History
Olaf Hering's avatar

olh created request almost 3 years ago


Olaf Hering's avatar

olh accepted request almost 3 years ago