QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwTypes.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
6
enum class
HwVideoBufferPath
7
{
8
None
,
9
DmaBuf
,
10
GlMemory
,
11
D3D11
,
12
D3D12
,
13
IOSurface
,
14
AHardwareBuffer
,
15
Vulkan
,
16
Count
,
17
};
18
22
struct
HwVideoBufferContext
23
{
24
bool
gpuEnabled
=
false
;
27
void
*
dmaBufImporter
=
nullptr
;
28
void
*
ahbEglDisplay
=
nullptr
;
29
};
30
31
namespace
GstHw
{
32
33
inline
constexpr
std::size_t
kPathCount
=
static_cast<
std::size_t
>
(
HwVideoBufferPath::Count
);
34
37
constexpr
const
char
*
toString
(
HwVideoBufferPath
path)
noexcept
38
{
39
switch
(path) {
40
case
HwVideoBufferPath::None
:
41
return
"CPU"
;
42
case
HwVideoBufferPath::DmaBuf
:
43
return
"DMABuf"
;
44
case
HwVideoBufferPath::GlMemory
:
45
return
"GL"
;
46
case
HwVideoBufferPath::D3D11
:
47
return
"D3D11"
;
48
case
HwVideoBufferPath::D3D12
:
49
return
"D3D12"
;
50
case
HwVideoBufferPath::IOSurface
:
51
return
"IOSurface"
;
52
case
HwVideoBufferPath::AHardwareBuffer
:
53
return
"AHWBuf"
;
54
case
HwVideoBufferPath::Vulkan
:
55
return
"Vulkan"
;
56
case
HwVideoBufferPath::Count
:
57
break
;
58
}
59
return
"Unknown"
;
60
}
61
62
}
// namespace GstHw
HwVideoBufferPath
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
Definition
GstHwTypes.h:7
HwVideoBufferPath::IOSurface
@ IOSurface
Definition
GstHwTypes.h:13
HwVideoBufferPath::Vulkan
@ Vulkan
Definition
GstHwTypes.h:15
HwVideoBufferPath::None
@ None
Definition
GstHwTypes.h:8
HwVideoBufferPath::DmaBuf
@ DmaBuf
Definition
GstHwTypes.h:9
HwVideoBufferPath::D3D11
@ D3D11
Definition
GstHwTypes.h:11
HwVideoBufferPath::Count
@ Count
Definition
GstHwTypes.h:16
HwVideoBufferPath::D3D12
@ D3D12
Definition
GstHwTypes.h:12
HwVideoBufferPath::AHardwareBuffer
@ AHardwareBuffer
Definition
GstHwTypes.h:14
HwVideoBufferPath::GlMemory
@ GlMemory
Definition
GstHwTypes.h:10
GstHw
Defined only in builds with the DMABuf path (QGC_HAS_GST_DMABUF_GPU_PATH) on GStreamer 1....
Definition
GstHwImportCache.h:9
GstHw::kPathCount
constexpr std::size_t kPathCount
Definition
GstHwTypes.h:33
GstHw::toString
constexpr const char * toString(HwVideoBufferPath path) noexcept
Definition
GstHwTypes.h:37
HwVideoBufferContext
Definition
GstHwTypes.h:23
HwVideoBufferContext::gpuEnabled
bool gpuEnabled
Definition
GstHwTypes.h:24
HwVideoBufferContext::dmaBufImporter
void * dmaBufImporter
Definition
GstHwTypes.h:27
HwVideoBufferContext::ahbEglDisplay
void * ahbEglDisplay
EGLDisplay for the AHardwareBuffer path.
Definition
GstHwTypes.h:28
src
VideoManager
GStreamer
HwBuffers
common
GstHwTypes.h
Generated by
1.15.0