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
18
23{
24 bool gpuEnabled = false;
27 void* dmaBufImporter = nullptr;
28 void* ahbEglDisplay = nullptr;
29};
30
31namespace GstHw {
32
33inline constexpr std::size_t kPathCount = static_cast<std::size_t>(HwVideoBufferPath::Count);
34
37constexpr const char* toString(HwVideoBufferPath path) noexcept
38{
39 switch (path) {
41 return "CPU";
43 return "DMABuf";
45 return "GL";
47 return "D3D11";
49 return "D3D12";
51 return "IOSurface";
53 return "AHWBuf";
55 return "Vulkan";
57 break;
58 }
59 return "Unknown";
60}
61
62} // namespace GstHw
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
Definition GstHwTypes.h:7
Defined only in builds with the DMABuf path (QGC_HAS_GST_DMABUF_GPU_PATH) on GStreamer 1....
constexpr std::size_t kPathCount
Definition GstHwTypes.h:33
constexpr const char * toString(HwVideoBufferPath path) noexcept
Definition GstHwTypes.h:37
void * ahbEglDisplay
EGLDisplay for the AHardwareBuffer path.
Definition GstHwTypes.h:28