[PATCH 4/7] include: Add dxgicommon.idl.
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 21 15:29:35 CDT 2017
From: Ihsan Akmal <ihsanapps at gmail.com>
Signed-off-by: Ihsan Akmal <ihsanapps at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
include/dxgicommon.idl | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
include/dxgitype.idl | 13 +----------
2 files changed, 62 insertions(+), 12 deletions(-)
create mode 100644 include/dxgicommon.idl
diff --git a/include/dxgicommon.idl b/include/dxgicommon.idl
new file mode 100644
index 0000000..99ace03
--- /dev/null
+++ b/include/dxgicommon.idl
@@ -0,0 +1,61 @@
+/*
+ * 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
+ */
+
+cpp_quote("#if 0")
+typedef unsigned int UINT;
+cpp_quote("#endif")
+
+const UINT DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN = 0xffffffff;
+const UINT DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN = 0xfffffffe;
+
+typedef enum DXGI_COLOR_SPACE_TYPE
+{
+ DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 = 0x00,
+ DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 = 0x01,
+ DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709 = 0x02,
+ DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020 = 0x03,
+ DXGI_COLOR_SPACE_RESERVED = 0x04,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 = 0x05,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 = 0x06,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601 = 0x07,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 = 0x08,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709 = 0x09,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 = 0x0a,
+ DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 = 0x0b,
+ DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 = 0x0c,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_LEFT_P2020 = 0x0d,
+ DXGI_COLOR_SPACE_RGB_STUDIO_G2084_NONE_P2020 = 0x0e,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_TOPLEFT_P2020 = 0x0f,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_TOPLEFT_P2020 = 0x10,
+ DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020 = 0x11,
+ DXGI_COLOR_SPACE_YCBCR_STUDIO_GHLG_TOPLEFT_P2020 = 0x12,
+ DXGI_COLOR_SPACE_YCBCR_FULL_GHLG_TOPLEFT_P2020 = 0x13,
+ DXGI_COLOR_SPACE_CUSTOM = 0xffffffff,
+} DXGI_COLOR_SPACE_TYPE;
+
+typedef struct DXGI_SAMPLE_DESC
+{
+ UINT Count;
+ UINT Quality;
+} DXGI_SAMPLE_DESC;
+
+typedef struct DXGI_RATIONAL
+{
+ UINT Numerator;
+ UINT Denominator;
+} DXGI_RATIONAL;
diff --git a/include/dxgitype.idl b/include/dxgitype.idl
index e7d2b43..a9ed571 100644
--- a/include/dxgitype.idl
+++ b/include/dxgitype.idl
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+import "dxgicommon.idl";
import "dxgiformat.idl";
cpp_quote("#if 0")
@@ -59,18 +60,6 @@ typedef struct _D3DCOLORVALUE
cpp_quote("#endif")
typedef D3DCOLORVALUE DXGI_RGBA;
-typedef struct DXGI_SAMPLE_DESC
-{
- UINT Count;
- UINT Quality;
-} DXGI_SAMPLE_DESC;
-
-typedef struct DXGI_RATIONAL
-{
- UINT Numerator;
- UINT Denominator;
-} DXGI_RATIONAL;
-
typedef struct DXGI_MODE_DESC
{
UINT Width;
--
2.1.4
More information about the wine-patches
mailing list