Commit 09d306f0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

contrib: d3d11: Provide DXGI_COLOR_SPACE_TYPE within dxgi1_4.idl

Patching dxgitype.h might fail, because the system one will take
precedence over any other version.
Using -I doesn't work, since widl will search in the folder containing
the .idl file including the other
parent 26a9e2f4
......@@ -18,6 +18,22 @@
import "dxgi1_3.idl";
typedef enum DXGI_COLOR_SPACE_TYPE {
DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 = 0,
DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 = 1,
DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709 = 2,
DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020 = 3,
DXGI_COLOR_SPACE_RESERVED = 4,
DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 = 5,
DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 = 6,
DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601 = 7,
DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 = 8,
DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709 = 9,
DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 = 10,
DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 = 11,
DXGI_COLOR_SPACE_CUSTOM = 0xFFFFFFFF,
} DXGI_COLOR_SPACE_TYPE;
[
object,
local,
......
--- include/dxgitype.h.new 2015-09-03 05:13:15.000000000 +0300
+++ include/dxgitype.h 2016-04-16 14:52:29.751438300 +0300
@@ -93,4 +93,20 @@ typedef struct DXGI_GAMMA_CONTROL {
DXGI_RGB GammaCurve[1025];
} DXGI_GAMMA_CONTROL;
+typedef enum DXGI_COLOR_SPACE_TYPE {
+ DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 = 0,
+ DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 = 1,
+ DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709 = 2,
+ DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020 = 3,
+ DXGI_COLOR_SPACE_RESERVED = 4,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 = 5,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 = 6,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601 = 7,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 = 8,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709 = 9,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 = 10,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 = 11,
+ DXGI_COLOR_SPACE_CUSTOM = 0xFFFFFFFF,
+} DXGI_COLOR_SPACE_TYPE;
+
#endif
......@@ -57,7 +57,7 @@ $(DST_DXGIDEBUG_H): $(TARBALLS)/dxgidebug.idl
$(DST_DXGITYPE_H): $(TARBALLS)/dxgitype.h
mkdir -p -- "$(PREFIX)/include/"
cp $(TARBALLS)/dxgitype.h $@ && cd "$(PREFIX)/include/" && patch -fp1 < ../$(SRC)/d3d11/dxgitype.patch
cp $(TARBALLS)/dxgitype.h $@
$(DST_DXGI12_H): dxgi12
mkdir -p -- "$(PREFIX)/include/"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment