QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwVideoBufferFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include <gst/gst.h>
4#include <gst/video/video-info.h>
5#include <memory>
6
7#include <QtCore/qglobal.h>
8#include <QtMultimedia/QVideoFrameFormat>
9
10#include "GstHwTypes.h"
11
12class QHwVideoBuffer;
13
17{
19 bool validated = false; // path resolved by a prior validated sample this epoch
20 GType unmatchedAllocator = G_TYPE_INVALID; // allocator no compiled path imports; its frames go straight to the CPU
21 bool validationFailureLogged = false; // one warning per epoch for buffers that fail plane-handle validation
22};
23
26std::unique_ptr<QHwVideoBuffer> makeHwVideoBuffer(GstBuffer* buffer, GstCaps* caps, const GstVideoInfo& info,
27 QVideoFrameFormat format, const HwVideoBufferContext& context,
28 HwVideoBufferPath& matchedPath, HwResolvedPathCache* cache = nullptr);
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
Definition GstHwTypes.h:7
std::unique_ptr< QHwVideoBuffer > makeHwVideoBuffer(GstBuffer *buffer, GstCaps *caps, const GstVideoInfo &info, QVideoFrameFormat format, const HwVideoBufferContext &context, HwVideoBufferPath &matchedPath, HwResolvedPathCache *cache=nullptr)