2019-01-30 11:07:29 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2019 Seungha Yang <seungha.yang@navercorp.com>
|
2020-12-20 17:47:45 +00:00
|
|
|
* Copyright (C) 2020 Seungha Yang <seungha@centricular.com>
|
2019-01-30 11:07:29 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_D3D11_FWD_H__
|
|
|
|
#define __GST_D3D11_FWD_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2020-12-20 17:47:45 +00:00
|
|
|
#include <gst/d3d11/gstd3d11config.h>
|
|
|
|
#include <gst/d3d11/d3d11-prelude.h>
|
2019-01-30 11:07:29 +00:00
|
|
|
|
|
|
|
#ifndef INITGUID
|
|
|
|
#include <initguid.h>
|
|
|
|
#endif
|
|
|
|
|
2020-12-20 17:47:45 +00:00
|
|
|
#if (GST_D3D11_HEADER_VERSION >= 4)
|
2020-01-10 14:54:43 +00:00
|
|
|
#include <d3d11_4.h>
|
2020-12-20 17:47:45 +00:00
|
|
|
#elif (GST_D3D11_HEADER_VERSION >= 3)
|
2020-01-10 14:54:43 +00:00
|
|
|
#include <d3d11_3.h>
|
2020-12-20 17:47:45 +00:00
|
|
|
#elif (GST_D3D11_HEADER_VERSION >= 2)
|
2020-01-10 14:54:43 +00:00
|
|
|
#include <d3d11_2.h>
|
2020-12-20 17:47:45 +00:00
|
|
|
#elif (GST_D3D11_HEADER_VERSION >= 1)
|
2020-01-10 14:54:43 +00:00
|
|
|
#include <d3d11_1.h>
|
|
|
|
#else
|
2019-01-30 11:07:29 +00:00
|
|
|
#include <d3d11.h>
|
2020-01-10 14:54:43 +00:00
|
|
|
#endif
|
2019-12-18 04:21:31 +00:00
|
|
|
|
2021-03-02 11:37:04 +00:00
|
|
|
#if (GST_D3D11_DXGI_HEADER_VERSION >= 6)
|
2019-12-18 04:21:31 +00:00
|
|
|
#include <dxgi1_6.h>
|
2021-03-02 11:37:04 +00:00
|
|
|
#elif (GST_D3D11_DXGI_HEADER_VERSION >= 5)
|
2019-01-30 11:07:29 +00:00
|
|
|
#include <dxgi1_5.h>
|
2021-03-02 11:37:04 +00:00
|
|
|
#elif (GST_D3D11_DXGI_HEADER_VERSION >= 4)
|
2019-12-18 04:21:31 +00:00
|
|
|
#include <dxgi1_4.h>
|
2021-03-02 11:37:04 +00:00
|
|
|
#elif (GST_D3D11_DXGI_HEADER_VERSION >= 3)
|
2019-12-18 04:21:31 +00:00
|
|
|
#include <dxgi1_3.h>
|
2021-03-02 11:37:04 +00:00
|
|
|
#elif (GST_D3D11_DXGI_HEADER_VERSION >= 2)
|
2019-12-18 04:21:31 +00:00
|
|
|
#include <dxgi1_2.h>
|
2019-01-30 11:07:29 +00:00
|
|
|
#else
|
|
|
|
#include <dxgi.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GstD3D11Device GstD3D11Device;
|
|
|
|
typedef struct _GstD3D11DeviceClass GstD3D11DeviceClass;
|
|
|
|
typedef struct _GstD3D11DevicePrivate GstD3D11DevicePrivate;
|
|
|
|
|
|
|
|
typedef struct _GstD3D11AllocationParams GstD3D11AllocationParams;
|
|
|
|
typedef struct _GstD3D11Memory GstD3D11Memory;
|
2020-12-20 17:47:45 +00:00
|
|
|
typedef struct _GstD3D11MemoryPrivate GstD3D11MemoryPrivate;
|
2021-03-18 13:31:55 +00:00
|
|
|
|
2019-01-30 11:07:29 +00:00
|
|
|
typedef struct _GstD3D11Allocator GstD3D11Allocator;
|
|
|
|
typedef struct _GstD3D11AllocatorClass GstD3D11AllocatorClass;
|
2021-06-06 16:49:26 +00:00
|
|
|
typedef struct _GstD3D11AllocatorPrivate GstD3D11AllocatorPrivate;
|
2021-03-18 13:31:55 +00:00
|
|
|
|
|
|
|
typedef struct _GstD3D11PoolAllocator GstD3D11PoolAllocator;
|
|
|
|
typedef struct _GstD3D11PoolAllocatorClass GstD3D11PoolAllocatorClass;
|
|
|
|
typedef struct _GstD3D11PoolAllocatorPrivate GstD3D11PoolAllocatorPrivate;
|
2019-01-30 11:07:29 +00:00
|
|
|
|
|
|
|
typedef struct _GstD3D11BufferPool GstD3D11BufferPool;
|
|
|
|
typedef struct _GstD3D11BufferPoolClass GstD3D11BufferPoolClass;
|
|
|
|
typedef struct _GstD3D11BufferPoolPrivate GstD3D11BufferPoolPrivate;
|
|
|
|
|
2022-02-05 14:08:48 +00:00
|
|
|
typedef struct _GstD3D11StagingBufferPool GstD3D11StagingBufferPool;
|
|
|
|
typedef struct _GstD3D11StagingBufferPoolClass GstD3D11StagingBufferPoolClass;
|
|
|
|
typedef struct _GstD3D11StagingBufferPoolPrivate GstD3D11StagingBufferPoolPrivate;
|
|
|
|
|
2019-11-06 10:37:33 +00:00
|
|
|
typedef struct _GstD3D11Format GstD3D11Format;
|
|
|
|
|
2019-01-30 11:07:29 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_D3D11_FWD_H__ */
|