Module: wine
Branch: master
Commit: e7824f105b1b0bbeadea4c0f7546ded4e45f2e7d
URL: https://gitlab.winehq.org/wine/wine/-/commit/e7824f105b1b0bbeadea4c0f7546de…
Author: Biswapriyo Nath <nathbappai(a)gmail.com>
Date: Fri Sep 22 13:22:57 2023 +0000
include: Add ID3D12VideoDecoder in d3d12video.idl.
---
include/Makefile.in | 1 +
include/d3d12video.idl | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index d2df2383ea2..7d7697bc015 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -132,6 +132,7 @@ SOURCES = \
d3d12.idl \
d3d12sdklayers.idl \
d3d12shader.idl \
+ d3d12video.idl \
d3d8.h \
d3d8caps.h \
d3d8types.h \
diff --git a/include/d3d12video.idl b/include/d3d12video.idl
new file mode 100644
index 00000000000..1c75b4b3f06
--- /dev/null
+++ b/include/d3d12video.idl
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2023 Biswapriyo Nath
+ *
+ * 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
+ */
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "dxgicommon.idl";
+import "d3d12.idl";
+
+typedef enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE
+{
+ D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0,
+ D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1,
+} D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE;
+
+typedef enum D3D12_BITSTREAM_ENCRYPTION_TYPE
+{
+ D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0,
+} D3D12_BITSTREAM_ENCRYPTION_TYPE;
+
+typedef struct D3D12_VIDEO_DECODE_CONFIGURATION
+{
+ GUID DecodeProfile;
+ D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption;
+ D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType;
+} D3D12_VIDEO_DECODE_CONFIGURATION;
+
+typedef struct D3D12_VIDEO_DECODER_DESC
+{
+ UINT NodeMask;
+ D3D12_VIDEO_DECODE_CONFIGURATION Configuration;
+} D3D12_VIDEO_DECODER_DESC;
+
+[
+ uuid(c59b6bdc-7720-4074-a136-17a156037470),
+ object,
+ local,
+ pointer_default(unique)
+]
+interface ID3D12VideoDecoder : ID3D12Pageable
+{
+ D3D12_VIDEO_DECODER_DESC GetDesc();
+}