[vlc-commits] hw:d3d11: add d3d11_processor_t for generic VideoProcessor handling

Steve Lhomme git at videolan.org
Mon May 28 13:24:53 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Nov 30 13:15:07 2017 +0100| [a672bff22ecd0f2d26cbccb6e0e022967713d542] | committer: Steve Lhomme

hw:d3d11: add d3d11_processor_t for generic VideoProcessor handling

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a672bff22ecd0f2d26cbccb6e0e022967713d542
---

 modules/hw/d3d11/Makefile.am       |  3 ++-
 modules/hw/d3d11/d3d11_processor.h | 40 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/modules/hw/d3d11/Makefile.am b/modules/hw/d3d11/Makefile.am
index 33d17efd8f..bae0edaf91 100644
--- a/modules/hw/d3d11/Makefile.am
+++ b/modules/hw/d3d11/Makefile.am
@@ -4,7 +4,8 @@ libdirect3d11_filters_plugin_la_SOURCES = hw/d3d11/d3d11_filters.h \
     hw/d3d11/d3d11_filters.c \
     hw/d3d11/d3d11_deinterlace.c \
     hw/d3d11/d3d11_surface.c \
-    hw/d3d11/d3d11_instance.c
+    hw/d3d11/d3d11_instance.c \
+    hw/d3d11/d3d11_processor.h
 libdirect3d11_filters_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(d3d11dir)'
 libdirect3d11_filters_plugin_la_LIBADD = libchroma_copy.la libdeinterlace_common.la libd3d11_common.la
 if HAVE_WINSTORE
diff --git a/modules/hw/d3d11/d3d11_processor.h b/modules/hw/d3d11/d3d11_processor.h
new file mode 100644
index 0000000000..1d93bfd98a
--- /dev/null
+++ b/modules/hw/d3d11/d3d11_processor.h
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * d3d11_processor.h: D3D11 VideoProcessor helper
+ *****************************************************************************
+ * Copyright © 2017 VLC authors, VideoLAN and VideoLabs
+ *
+ * Authors: Steve Lhomme <robux4 at gmail.com>
+ *
+ * This program 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 program 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 program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifndef VLC_D3D11_PROCESSOR_H
+#define VLC_D3D11_PROCESSOR_H
+
+#include <vlc_common.h>
+
+#include "../../video_chroma/d3d11_fmt.h"
+
+#ifdef ID3D11VideoContext_VideoProcessorBlt
+typedef struct
+{
+    ID3D11VideoDevice              *d3dviddev;
+    ID3D11VideoContext             *d3dvidctx;
+    ID3D11VideoProcessorEnumerator *procEnumerator;
+    ID3D11VideoProcessor           *videoProcessor;
+} d3d11_processor_t;
+#endif
+
+#endif /* VLC_D3D11_PROCESSOR_H */



More information about the vlc-commits mailing list