QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwVideoBuffer.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4#include <QtMultimedia/QVideoFrame>
5#include <QtMultimedia/QVideoFrameFormat>
6#include <private/qhwvideobuffer_p.h>
7
8#include <gst/gst.h>
9#include <gst/video/video-info.h>
10
15class GstHwVideoBuffer : public QHwVideoBuffer
16{
17public:
18 GstHwVideoBuffer(QVideoFrame::HandleType handleType,
19 GstSample *sample,
20 const GstVideoInfo &videoInfo,
21 QVideoFrameFormat format);
22 ~GstHwVideoBuffer() override;
23
24 QVideoFrameFormat format() const override { return _format; }
25
28 virtual bool validatePlaneHandles() const { return true; }
29
30protected:
31 GstSample *_sample = nullptr;
32 GstVideoInfo _videoInfo{};
33 QVideoFrameFormat _format;
34};
GstVideoInfo _videoInfo
~GstHwVideoBuffer() override
QVideoFrameFormat format() const override
QVideoFrameFormat _format
virtual bool validatePlaneHandles() const