1/*
2 * Copyright 2017 Ihsan Akmal
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19cpp_quote("#if 0")
20typedef unsigned int UINT;
21cpp_quote("#endif")
22
23const UINT DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN = 0xffffffff;
24const UINT DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN = 0xfffffffe;
25
26typedef enum DXGI_COLOR_SPACE_TYPE
27{
28    DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709             = 0x00,
29    DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709             = 0x01,
30    DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709           = 0x02,
31    DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020          = 0x03,
32    DXGI_COLOR_SPACE_RESERVED                           = 0x04,
33    DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601      = 0x05,
34    DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601         = 0x06,
35    DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601           = 0x07,
36    DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709         = 0x08,
37    DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709           = 0x09,
38    DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020        = 0x0a,
39    DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020          = 0x0b,
40    DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020          = 0x0c,
41    DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_LEFT_P2020      = 0x0d,
42    DXGI_COLOR_SPACE_RGB_STUDIO_G2084_NONE_P2020        = 0x0e,
43    DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_TOPLEFT_P2020     = 0x0f,
44    DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_TOPLEFT_P2020   = 0x10,
45    DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020            = 0x11,
46    DXGI_COLOR_SPACE_YCBCR_STUDIO_GHLG_TOPLEFT_P2020    = 0x12,
47    DXGI_COLOR_SPACE_YCBCR_FULL_GHLG_TOPLEFT_P2020      = 0x13,
48    DXGI_COLOR_SPACE_CUSTOM                             = 0xffffffff,
49} DXGI_COLOR_SPACE_TYPE;
50
51typedef struct DXGI_SAMPLE_DESC
52{
53    UINT Count;
54    UINT Quality;
55} DXGI_SAMPLE_DESC;
56
57typedef struct DXGI_RATIONAL
58{
59    UINT Numerator;
60    UINT Denominator;
61} DXGI_RATIONAL;
62