[vlc-devel] [PATCH] opengl: use the default monitor target if there's none set by the user
Steve Lhomme
robux4 at ycbcr.xyz
Thu Feb 7 08:52:00 CET 2019
ping ?
I don't know if it's better to tell that we intend to display on a
regular screen (8 bits, SDR, sRGB) or let libplacebo figure out by
itself (if it can query the output or even select the better one).
On 29/01/2019 10:26, Steve Lhomme wrote:
> ---
> modules/video_output/opengl/fragment_shaders.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
> index f58b4467b6..f91738c70b 100644
> --- a/modules/video_output/opengl/fragment_shaders.c
> +++ b/modules/video_output/opengl/fragment_shaders.c
> @@ -564,6 +564,8 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
> struct pl_color_space dst_space = pl_color_space_unknown;
> dst_space.primaries = var_InheritInteger(tc->gl, "target-prim");
> dst_space.transfer = var_InheritInteger(tc->gl, "target-trc");
> + if (dst_space.primaries == PL_COLOR_PRIM_UNKNOWN && dst_space.transfer == PL_COLOR_TRC_UNKNOWN)
> + dst_space = pl_color_space_monitor;
>
> pl_shader_color_map(sh, &color_params,
> vlc_placebo_ColorSpace(&tc->fmt),
> --
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list