[PATCH v2 1/4] include: Add DXGI_COLOR_SPACE_TYPE enum in dxgicommon.h

Ihsan Akmal ihsanapps at gmail.com
Wed Sep 20 01:18:23 CDT 2017


Signed-off-by: Ihsan Akmal <ihsanapps at gmail.com>
---
 include/Makefile.in  |  1 +
 include/dxgicommon.h | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/dxgitype.h   |  1 +
 3 files changed, 61 insertions(+)
 create mode 100644 include/dxgicommon.h

diff --git a/include/Makefile.in b/include/Makefile.in
index 6bc63de..7b3bc0e 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -368,6 +368,7 @@ HEADER_SRCS = \
 	dxerr8.h \
 	dxerr9.h \
 	dxfile.h \
+	dxgicommon.h \
 	dxgiformat.h \
 	dxgitype.h \
 	errorrep.h \
diff --git a/include/dxgicommon.h b/include/dxgicommon.h
new file mode 100644
index 0000000..67ee712
--- /dev/null
+++ b/include/dxgicommon.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2017 Ihsan Akmal
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __dxgicommon_h__
+#define __dxgicommon_h__
+
+typedef struct DXGI_RATIONAL
+{
+    UINT Numerator;
+    UINT Denominator;
+} DXGI_RATIONAL;
+
+typedef struct DXGI_SAMPLE_DESC
+{
+    UINT Count;
+    UINT Quality;
+} DXGI_SAMPLE_DESC;
+
+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_RGB_FULL_G2084_NONE_P2020          = 12,
+    DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_LEFT_P2020      = 13,
+    DXGI_COLOR_SPACE_RGB_STUDIO_G2084_NONE_P2020        = 14,
+    DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_TOPLEFT_P2020     = 15,
+    DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_TOPLEFT_P2020   = 16,
+    DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020            = 17,
+    DXGI_COLOR_SPACE_YCBCR_STUDIO_GHLG_TOPLEFT_P2020    = 18,
+    DXGI_COLOR_SPACE_YCBCR_FULL_GHLG_TOPLEFT_P2020      = 19,
+    DXGI_COLOR_SPACE_CUSTOM                             = 0xFFFFFFFF,
+} DXGI_COLOR_SPACE_TYPE;
+
+#endif
diff --git a/include/dxgitype.h b/include/dxgitype.h
index 13df046..018cc01 100644
--- a/include/dxgitype.h
+++ b/include/dxgitype.h
@@ -19,6 +19,7 @@
 #ifndef __dxgitype_h__
 #define __dxgitype_h__
 
+#include "dxgicommon.h"
 #include "dxgiformat.h"
 
 #ifndef D3DCOLORVALUE_DEFINED
-- 
2.14.1




More information about the wine-patches mailing list