Projects
Staging
vlc-beta
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 104
View file
vlc-beta.spec
Changed
@@ -37,6 +37,7 @@ Patch0: vlc-beta.patch Patch1: vlc.a52dec.patch Patch2: vlc.hostname.patch +Patch3: vlc.libplacebo.patch Patch5: fix_lib_version.patch Patch6: fix_freerdp2_detection.patch Patch7: fix_lua53_luaL_checkint.patch @@ -131,7 +132,7 @@ BuildRequires: pkgconfig(zvbi-0.2) >= 0.2.28 BuildRequires: pkgconfig(dvdnav) >= 6.0.0 BuildRequires: pkgconfig(dvdread) >= 6.0.0 -BuildRequires: pkgconfig(libplacebo) >= 2.72 +BuildRequires: pkgconfig(libplacebo) >= 2.43 BuildRequires: pkgconfig(vulkan) >= 1.0.26 BuildRequires: pkgconfig(libbluray) >= 0.6.2 %if %{with vlc_opencv} @@ -493,7 +494,7 @@ --enable-vlc \ --enable-nls -%make_build +%make_build --no-print-directory %install %make_install
View file
vlc.libplacebo.patch
Added
@@ -0,0 +1,97 @@ +revert 5be0a1e3dd35d6c93cf3766a506d3bd0ead6f9a5 +--- a/modules/video_output/libplacebo/display.c ++++ b/modules/video_output/libplacebo/display.c +@@ -82,8 +82,10 @@ typedef struct vout_display_sys_t + int lut_mode; + #endif + ++#if PL_API_VER >= 58 + const struct pl_hook *hook; + char *hook_path; ++#endif + } vout_display_sys_t; + + // Display callbacks +@@ -204,8 +206,10 @@ static void Close(vout_display_t *vd) + free(sys->lut_path); + #endif + ++#if PL_API_VER >= 58 + pl_mpv_user_shader_destroy(&sys->hook); + free(sys->hook_path); ++#endif + + vlc_placebo_Release(sys->pl); + } +@@ -229,6 +233,8 @@ static void PictureRender(vout_display_t *vd, picture_t *pic, + + struct pl_image img = { + .num_planes = pic->i_planes, ++ .width = pic->format.i_visible_width, ++ .height = pic->format.i_visible_height, + .color = vlc_placebo_ColorSpace(vd->fmt), + .repr = vlc_placebo_ColorRepr(vd->fmt), + .src_rect = { +@@ -511,6 +517,7 @@ error: + } + #endif + ++#if PL_API_VER >= 58 + static void LoadUserShader(vout_display_sys_t *sys, const char *filepath) + { + if (!filepath || !*filepath) { +@@ -556,6 +563,7 @@ error: + fclose(fs); + return; + } ++#endif + + // Options + +@@ -572,8 +580,10 @@ vlc_module_begin () + add_shortcut ("libplacebo", "pl") + add_module ("pl-gpu", "libplacebo gpu", NULL, PROVIDER_TEXT, PROVIDER_LONGTEXT) + ++#if PL_API_VER >= 58 + set_section("Custom shaders", NULL) + add_loadfile("pl-user-shader", NULL, USER_SHADER_FILE_TEXT, USER_SHADER_FILE_LONGTEXT) ++#endif + + set_section("Scaling", NULL) + add_integer("pl-upscaler-preset", SCALE_BUILTIN, +@@ -828,6 +838,7 @@ static void UpdateParams(vout_display_t *vd) + } + #endif + ++#if PL_API_VER >= 58 + char *shader_file = var_InheritString(vd, "pl-user-shader"); + LoadUserShader(sys, shader_file); + free(shader_file); +@@ -837,4 +848,5 @@ static void UpdateParams(vout_display_t *vd) + } else { + sys->params.num_hooks = 0; + } ++#endif + } +--- a/modules/video_output/libplacebo/utils.h ++++ b/modules/video_output/libplacebo/utils.h +@@ -185,7 +185,9 @@ static const char * const lut_mode_text[] = { + #define TONEMAPPING_LONGTEXT "Algorithm to use when converting from wide gamut to standard gamut, or from HDR to SDR." + + static const int tone_values[] = { ++#if PL_API_VER >= 68 + PL_TONE_MAPPING_BT_2390, ++#endif + PL_TONE_MAPPING_HABLE, + PL_TONE_MAPPING_MOBIUS, + PL_TONE_MAPPING_REINHARD, +@@ -195,7 +197,9 @@ static const int tone_values[] = { + }; + + static const char * const tone_text[] = { ++#if PL_API_VER >= 68 + "ITU-R BT.2390 EETF (recommended)", ++#endif + "Hable (filmic mapping)", + "Mobius (linear + knee)", + "Reinhard (simple non-linear)",
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.