QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstVulkanVideoBuffer.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4
5#if defined(QGC_HAS_GST_VULKAN_GPU_PATH)
6
7#include <gst/gst.h>
8#include <gst/video/video-info.h>
9
10#include <QtMultimedia/QVideoFrameFormat>
11
12#include "GstHwVideoBuffer.h"
13
14class QRhi;
15
21class GstVulkanVideoBuffer final : public GstHwVideoBuffer
22{
23public:
25
26 bool validatePlaneHandles() const override;
27 QVideoFrameTexturesUPtr mapTextures(QRhi& rhi, QVideoFrameTexturesUPtr& old) override;
28};
29
30#endif // QGC_HAS_GST_VULKAN_GPU_PATH
Common base for GStreamer-backed QHwVideoBuffer subclasses.
GstHwVideoBuffer(GstSample *sample, const GstVideoInfo &videoInfo, QVideoFrameFormat format)
virtual bool validatePlaneHandles() const
Streaming-thread sanity check on per-plane handles; failure routes to CPU memcpy.