QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwImportPreflight.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4
5#if defined(QGC_HAS_ANY_GPU_PATH)
6
7#include <QtCore/QSize>
8#include <QtMultimedia/QVideoFrameFormat>
9#include <rhi/qrhi.h>
10
11#include "GstHwVideoBufferFactory.h" // HwVideoBufferPath
12
16namespace GstHwImportPreflight {
17
20bool canImportTexture(QRhi* rhi, QRhiTexture::Format fmt, const QSize& size, QRhiTexture::Flags flags = {}) noexcept;
21
24bool canImportPlanes(QRhi* rhi, QVideoFrameFormat::PixelFormat pixelFormat, const QSize& size,
25 QRhiTexture::Flags flags = {}) noexcept;
26
30bool preflightOrRecord(QRhi* rhi, HwVideoBufferPath path, QVideoFrameFormat::PixelFormat pixelFormat,
31 const QSize& size, QRhiTexture::Flags flags = {}) noexcept;
32
33} // namespace GstHwImportPreflight
34
35#endif // QGC_HAS_ANY_GPU_PATH
HwVideoBufferPath
Identifies which GPU path was chosen; used by the adapter to increment the right counter.