As defined in the documentation https://learn.microsoft.com/en-us/windows/win32/api/dxvahd/ns-dxvahd-dxvahd_blt_state_output_color_space_data

and https://learn.microsoft.com/en-us/windows/win32/api/dxvahd/ns-dxvahd-dxvahd_stream_state_input_color_space_data

See attached patch.
From 2e138a4eabb31f76455fed8fb4da9ab56f7cb4f3 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <[email protected]>
Date: Fri, 17 Mar 2023 11:07:18 +0100
Subject: [PATCH] headers: explicitly define Reserved bits in DXVAHD_BLT_STATE
 structures

As defined in the documentation 
https://learn.microsoft.com/en-us/windows/win32/api/dxvahd/ns-dxvahd-dxvahd_blt_state_output_color_space_data

and 
https://learn.microsoft.com/en-us/windows/win32/api/dxvahd/ns-dxvahd-dxvahd_stream_state_input_color_space_data
---
 mingw-w64-headers/include/dxvahd.idl | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/mingw-w64-headers/include/dxvahd.idl 
b/mingw-w64-headers/include/dxvahd.idl
index bf00ca67f..3bb5e50ac 100644
--- a/mingw-w64-headers/include/dxvahd.idl
+++ b/mingw-w64-headers/include/dxvahd.idl
@@ -212,10 +212,16 @@ typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA {
 } DXVAHD_BLT_STATE_CONSTRICTION_DATA;
 
 typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA {
-  UINT Usage  :1;
-  UINT RGB_Range  :1;
-  UINT YCbCr_Matrix  :1;
-  UINT YCbCr_xvYCC  :1;
+  union {
+    struct {
+      UINT Usage  :1;
+      UINT RGB_Range  :1;
+      UINT YCbCr_Matrix  :1;
+      UINT YCbCr_xvYCC  :1;
+      UINT Reserved : 28;
+    };
+    UINT Value;
+  };
 } DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA;
 
 typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA {
@@ -308,10 +314,15 @@ typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA {
 } DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA;
 
 typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA {
-  UINT Type  :1;
-  UINT RGB_Range  :1;
-  UINT YCbCr_Matrix  :1;
-  UINT YCbCr_xvYCC  :1;
+  union {
+    struct {
+      UINT Type  :1;
+      UINT RGB_Range  :1;
+      UINT YCbCr_Matrix  :1;
+      UINT YCbCr_xvYCC  :1;
+    };
+    UINT Value;
+  };
 } DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA;
 
 typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA {
-- 
2.37.3.windows.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to