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 <rhi/qrhi.h>
8
9#include <QtCore/QSize>
10#include <QtMultimedia/QVideoFrameFormat>
11
12#include "GstHwTypes.h"
13
17namespace GstHwImportPreflight {
18
23bool preflightOrRecord(QRhi& rhi, HwVideoBufferPath path, QVideoFrameFormat::PixelFormat pixelFormat, const QSize& size,
24 QRhiTexture::Flags flags = {});
25
26} // namespace GstHwImportPreflight
27
28#endif // QGC_HAS_ANY_GPU_PATH
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
Definition GstHwTypes.h:7
bool preflightOrRecord(QRhi &rhi, HwVideoBufferPath path, QVideoFrameFormat::PixelFormat pixelFormat, const QSize &size, QRhiTexture::Flags flags)