From a76cc1dafcf948cce93f6d258e33444206a83c45 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 28 Feb 2015 20:15:12 +0100 Subject: Revert "Revert recent vo_opengl related commits" Omitted a simple, but devastasting check. Fixed the relevant commits now. This reverts commit 8d24e9d9b8ad1b5d82139980eca148dc0f4a1eab. diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 9c8a643..f1ea03e 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1034,9 +1034,9 @@ static void compile_shaders(struct gl_video *p) shader_def_opt(&header_conv, "USE_CONV_GAMMA", use_conv_gamma); shader_def_opt(&header_conv, "USE_CONST_LUMA", use_const_luma); shader_def_opt(&header_conv, "USE_LINEAR_LIGHT_BT1886", - gamma_fun == MP_CSP_TRC_BT_1886); + use_linear_light && gamma_fun == MP_CSP_TRC_BT_1886); shader_def_opt(&header_conv, "USE_LINEAR_LIGHT_SRGB", - gamma_fun == MP_CSP_TRC_SRGB); + use_linear_light && gamma_fun == MP_CSP_TRC_SRGB); shader_def_opt(&header_conv, "USE_SIGMOID", use_sigmoid); if (p->opts.alpha_mode > 0 && p->has_alpha && p->plane_count > 3) shader_def(&header_conv, "USE_ALPHA_PLANE", "3"); --- DOCS/man/options.rst | 7 +++++++ old-configure | 6 ++++++ video/csputils.c | 33 +++++++++++++++++++++++++++++++++ video/csputils.h | 16 ++++++++++++---- video/decode/vd_lavc.c | 1 + video/image_writer.c | 8 ++++++++ video/image_writer.h | 1 + video/mp_image.c | 11 ++++++++++- video/mp_image.h | 1 + video/out/gl_video.c | 21 +++------------------ wscript | 7 +++++++ 11 files changed, 89 insertions(+), 23 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 1018cf5f95..4c83b170e2 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2641,6 +2641,13 @@ Screenshot :jpg: JPEG (default) :jpeg: JPEG (same as jpg, but with .jpeg file ending) +``--screenshot-tag-colorspace=`` + Tag screenshots with the appropriate colorspace. + + Note that not all formats are supported. + + Default: ``yes``. + ``--screenshot-template=