summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/context.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-10-12 16:08:11 +0300
committerJan Ekström <jeebjp@gmail.com>2019-10-30 02:41:25 +0200
commit4e712e627c5ef3c7499cd3143174e344af24a90f (patch)
tree12d78be4d572b72d3ad52326871e0824fc8146ec /video/out/gpu/context.h
parentb27836011e26f04ec51645e41ac31b84d3d593da (diff)
downloadmpv-4e712e627c5ef3c7499cd3143174e344af24a90f.tar.bz2
mpv-4e712e627c5ef3c7499cd3143174e344af24a90f.tar.xz
vo_gpu: add and utilize color space information from ra_fbo
This lets us set primaries, transfer function and the target peak based on what the presenting layer would want us to have. Now that this mechanism is available, warn if the user has overridden values such as primaries or transfer function.
Diffstat (limited to 'video/out/gpu/context.h')
-rw-r--r--video/out/gpu/context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h
index b080e836c8..4cf2af9e3e 100644
--- a/video/out/gpu/context.h
+++ b/video/out/gpu/context.h
@@ -1,6 +1,7 @@
#pragma once
#include "video/out/vo.h"
+#include "video/csputils.h"
#include "config.h"
#include "ra.h"
@@ -62,6 +63,10 @@ struct ra_swapchain {
struct ra_fbo {
struct ra_tex *tex;
bool flip; // rendering needs to be inverted
+
+ // Host system's colorspace that it will be interpreting
+ // the frame buffer as.
+ struct mp_colorspace color_space;
};
struct ra_swapchain_fns {