QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstIOSurfaceVideoBuffer.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4
5#if (defined(Q_OS_MACOS) || defined(Q_OS_IOS)) && defined(QGC_HAS_GST_IOSURFACE_GPU_PATH)
6
7#include "GstHwVideoBuffer.h"
8
9class QRhi;
10
12class GstIOSurfaceVideoBuffer final : public GstHwVideoBuffer
13{
14public:
15 GstIOSurfaceVideoBuffer(GstSample *sample,
16 const GstVideoInfo &videoInfo,
17 const QVideoFrameFormat &format);
18 ~GstIOSurfaceVideoBuffer() override;
19
20 MapData map(QVideoFrame::MapMode mode) override;
21 QVideoFrameTexturesUPtr mapTextures(QRhi &rhi, QVideoFrameTexturesUPtr &oldTextures) override;
22 bool validatePlaneHandles() const override;
23
24 static quint64 takeMapFailureCount();
25 static quint64 peekMapFailureCount();
26};
27
28#endif // (Q_OS_MACOS || Q_OS_IOS) && QGC_HAS_GST_IOSURFACE_GPU_PATH
virtual bool validatePlaneHandles() const