summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/d3d11_helpers.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-10-13 22:51:26 +0300
committerJan Ekström <jeebjp@gmail.com>2019-10-30 02:41:25 +0200
commit93dd77b38e4eefd13bc2d3aab24adaa46e72f728 (patch)
treec805cc6b21e7ceb7ee5018fb29c58ec33d2bc2e0 /video/out/gpu/d3d11_helpers.h
parent4e712e627c5ef3c7499cd3143174e344af24a90f (diff)
downloadmpv-93dd77b38e4eefd13bc2d3aab24adaa46e72f728.tar.bz2
mpv-93dd77b38e4eefd13bc2d3aab24adaa46e72f728.tar.xz
vo_gpu/d3d11: add helpers for getting names for DXGI formats & CSPs
Additionally, define the few enum values that are currently missing in mingw-w64 headers.
Diffstat (limited to 'video/out/gpu/d3d11_helpers.h')
-rw-r--r--video/out/gpu/d3d11_helpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/gpu/d3d11_helpers.h b/video/out/gpu/d3d11_helpers.h
index 2ffc4ec40d..5ce23c68cb 100644
--- a/video/out/gpu/d3d11_helpers.h
+++ b/video/out/gpu/d3d11_helpers.h
@@ -28,6 +28,12 @@
#define D3D_FEATURE_LEVEL_12_0 (0xc000)
#define D3D_FEATURE_LEVEL_12_1 (0xc100)
+#define DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P709 ((DXGI_COLOR_SPACE_TYPE)20)
+#define DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P2020 ((DXGI_COLOR_SPACE_TYPE)21)
+#define DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P709 ((DXGI_COLOR_SPACE_TYPE)22)
+#define DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P2020 ((DXGI_COLOR_SPACE_TYPE)23)
+#define DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_TOPLEFT_P2020 ((DXGI_COLOR_SPACE_TYPE)24)
+
struct d3d11_device_opts {
// Enable the debug layer (D3D11_CREATE_DEVICE_DEBUG)
bool debug;