QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstQgcGpuBin.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QByteArrayView>
4
5namespace GstQgc {
6
7struct RenderTarget;
8
20
28
31GpuBinPreference parseGpuBinPreference(QByteArrayView value);
32
35
39GpuBinMode selectGpuBin(GpuBinPreference preference, const RenderTarget& target) noexcept;
40
41const char* gpuBinName(GpuBinMode mode) noexcept;
42
48bool converterSuitsRenderTarget(const char* pluginName, const char* factoryName, const RenderTarget& target) noexcept;
49
50} // namespace GstQgc
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
const char * gpuBinName(GpuBinMode mode) noexcept
GpuBinPreference parseGpuBinPreference(QByteArrayView value)
bool converterSuitsRenderTarget(const char *pluginName, const char *factoryName, const RenderTarget &target) noexcept
@ GlUpload
glupload → glcolorconvert → GLMemory 2D; gst-gl imports LINEAR and vendor-tiled DMABuf.
@ Passthrough
Every compiled native memory straight into qgcqvideosink (Windows, Apple, ...).
GpuBinPreference gpuBinPreference()
parseGpuBinPreference() of QGC_GST_GPU_BIN, read and logged on the first call.
GpuBinMode selectGpuBin(GpuBinPreference preference, const RenderTarget &target) noexcept
The GPU bin asked for, before the render target is known.
bool explicitChoice
Chosen through QGC_GST_GPU_BIN: used even under a render target it doesn't suit.