diff options
author | Niklas Haas <git@haasn.dev> | 2022-12-12 21:38:23 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-02-13 21:53:41 +0100 |
commit | 5078132b2893e577a75aec8d8f69aa1deff18ad2 (patch) | |
tree | f4aa1edf195a14f6b76280dfe55f340930862048 /video/out | |
parent | 4f84d91df2ad28f0418aae87362bc1af3d6dba50 (diff) | |
download | mpv-5078132b2893e577a75aec8d8f69aa1deff18ad2.tar.bz2 mpv-5078132b2893e577a75aec8d8f69aa1deff18ad2.tar.xz |
vo_gpu_next: only apply target options in window screenshot mode
When taking an unscaled screenshot, always render to an unspecified
SDR-like space. (Subject to change) Apply output-specific options (ICC
profile, color space overrides, custom LUT) only in window screenshot
mode.
I decided to split this off from subsequent refactors because it is IMO
a bug fix deserving of its own commit.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index ed9aec8b2e..fae36164ec 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1226,7 +1226,11 @@ static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args) }, }; - apply_target_options(p, &target); + if (args->scaled) { + // Apply target LUT, ICC profile and CSP override only in window mode + apply_target_options(p, &target); + } + apply_crop(&image, src, mpi->params.w, mpi->params.h); apply_crop(&target, dst, fbo->params.w, fbo->params.h); |