4606688dd6964fa90c5b177d8cc4a37d80341361
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-bad / gst-libs / gst / d3d11 / gstd3d11_fwd.h
1 /* GStreamer
2  * Copyright (C) 2019 Seungha Yang <seungha.yang@navercorp.com>
3  * Copyright (C) 2020 Seungha Yang <seungha@centricular.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef __GST_D3D11_FWD_H__
22 #define __GST_D3D11_FWD_H__
23
24 #include <gst/gst.h>
25 #include <gst/d3d11/gstd3d11config.h>
26 #include <gst/d3d11/d3d11-prelude.h>
27
28 #ifndef INITGUID
29 #include <initguid.h>
30 #endif
31
32 #if (GST_D3D11_HEADER_VERSION >= 4)
33 #include <d3d11_4.h>
34 #elif (GST_D3D11_HEADER_VERSION >= 3)
35 #include <d3d11_3.h>
36 #elif (GST_D3D11_HEADER_VERSION >= 2)
37 #include <d3d11_2.h>
38 #elif (GST_D3D11_HEADER_VERSION >= 1)
39 #include <d3d11_1.h>
40 #else
41 #include <d3d11.h>
42 #endif
43
44 #if (GST_D3D11_DXGI_HEADER_VERSION >= 6)
45 #include <dxgi1_6.h>
46 #elif (GST_D3D11_DXGI_HEADER_VERSION >= 5)
47 #include <dxgi1_5.h>
48 #elif (GST_D3D11_DXGI_HEADER_VERSION >= 4)
49 #include <dxgi1_4.h>
50 #elif (GST_D3D11_DXGI_HEADER_VERSION >= 3)
51 #include <dxgi1_3.h>
52 #elif (GST_D3D11_DXGI_HEADER_VERSION >= 2)
53 #include <dxgi1_2.h>
54 #else
55 #include <dxgi.h>
56 #endif
57
58 G_BEGIN_DECLS
59
60 typedef struct _GstD3D11Device GstD3D11Device;
61 typedef struct _GstD3D11DeviceClass GstD3D11DeviceClass;
62 typedef struct _GstD3D11DevicePrivate GstD3D11DevicePrivate;
63
64 typedef struct _GstD3D11AllocationParams GstD3D11AllocationParams;
65 typedef struct _GstD3D11Memory GstD3D11Memory;
66 typedef struct _GstD3D11MemoryPrivate GstD3D11MemoryPrivate;
67
68 typedef struct _GstD3D11Allocator GstD3D11Allocator;
69 typedef struct _GstD3D11AllocatorClass GstD3D11AllocatorClass;
70 typedef struct _GstD3D11AllocatorPrivate GstD3D11AllocatorPrivate;
71
72 typedef struct _GstD3D11PoolAllocator GstD3D11PoolAllocator;
73 typedef struct _GstD3D11PoolAllocatorClass GstD3D11PoolAllocatorClass;
74 typedef struct _GstD3D11PoolAllocatorPrivate GstD3D11PoolAllocatorPrivate;
75
76 typedef struct _GstD3D11BufferPool GstD3D11BufferPool;
77 typedef struct _GstD3D11BufferPoolClass GstD3D11BufferPoolClass;
78 typedef struct _GstD3D11BufferPoolPrivate GstD3D11BufferPoolPrivate;
79
80 typedef struct _GstD3D11StagingBufferPool GstD3D11StagingBufferPool;
81 typedef struct _GstD3D11StagingBufferPoolClass GstD3D11StagingBufferPoolClass;
82 typedef struct _GstD3D11StagingBufferPoolPrivate GstD3D11StagingBufferPoolPrivate;
83
84 typedef struct _GstD3D11Format GstD3D11Format;
85
86 G_END_DECLS
87
88 #endif /* __GST_D3D11_FWD_H__ */