mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
d3d11: Add d3d11testsrc element
Adding Direct3D11 based videotestsrc element Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2554>
This commit is contained in:
parent
cf793d6678
commit
45dd8bf35a
4 changed files with 1867 additions and 0 deletions
1829
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp
Normal file
1829
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp
Normal file
File diff suppressed because it is too large
Load diff
34
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.h
Normal file
34
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2022 Seungha Yang <seungha@centricular.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
#include <gst/base/gstbasesrc.h>
|
||||
#include <gst/d3d11/gstd3d11.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_D3D11_TEST_SRC (gst_d3d11_test_src_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstD3D11TestSrc, gst_d3d11_test_src,
|
||||
GST, D3D11_TEST_SRC, GstBaseSrc);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
@ -14,6 +14,7 @@ d3d11_sources = [
|
|||
'gstd3d11overlaycompositor.cpp',
|
||||
'gstd3d11pluginutils.cpp',
|
||||
'gstd3d11shader.cpp',
|
||||
'gstd3d11testsrc.cpp',
|
||||
'gstd3d11upload.cpp',
|
||||
'gstd3d11videoprocessor.cpp',
|
||||
'gstd3d11videosink.cpp',
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
#include "gstd3d11mpeg2dec.h"
|
||||
#include "gstd3d11av1dec.h"
|
||||
#include "gstd3d11deinterlace.h"
|
||||
#include "gstd3d11testsrc.h"
|
||||
|
||||
#if !GST_D3D11_WINAPI_ONLY_APP
|
||||
#include "gstd3d11screencapturesrc.h"
|
||||
|
@ -228,6 +229,8 @@ plugin_init (GstPlugin * plugin)
|
|||
"d3d11compositorelement", GST_RANK_NONE, GST_TYPE_D3D11_COMPOSITOR);
|
||||
gst_element_register (plugin,
|
||||
"d3d11compositor", GST_RANK_SECONDARY, GST_TYPE_D3D11_COMPOSITOR_BIN);
|
||||
gst_element_register (plugin,
|
||||
"d3d11testsrc", GST_RANK_NONE, GST_TYPE_D3D11_TEST_SRC);
|
||||
|
||||
#if !GST_D3D11_WINAPI_ONLY_APP
|
||||
if (gst_d3d11_is_windows_8_or_greater ()) {
|
||||
|
|
Loading…
Reference in a new issue