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
12
class
QHwVideoBuffer;
13
16
struct
HwResolvedPathCache
17
{
18
HwVideoBufferPath
path
=
HwVideoBufferPath::None
;
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
26
std::unique_ptr<QHwVideoBuffer>
makeHwVideoBuffer
(GstBuffer* buffer, GstCaps* caps,
const
GstVideoInfo& info,
27
QVideoFrameFormat format,
const
HwVideoBufferContext
& context,
28
HwVideoBufferPath
& matchedPath,
HwResolvedPathCache
* cache =
nullptr
);
GstHwTypes.h
HwVideoBufferPath
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
Definition
GstHwTypes.h:7
HwVideoBufferPath::None
@ None
Definition
GstHwTypes.h:8
makeHwVideoBuffer
std::unique_ptr< QHwVideoBuffer > makeHwVideoBuffer(GstBuffer *buffer, GstCaps *caps, const GstVideoInfo &info, QVideoFrameFormat format, const HwVideoBufferContext &context, HwVideoBufferPath &matchedPath, HwResolvedPathCache *cache=nullptr)
Definition
GstHwVideoBufferFactory.cc:13
HwResolvedPathCache
Definition
GstHwVideoBufferFactory.h:17
HwResolvedPathCache::unmatchedAllocator
GType unmatchedAllocator
Definition
GstHwVideoBufferFactory.h:20
HwResolvedPathCache::validationFailureLogged
bool validationFailureLogged
Definition
GstHwVideoBufferFactory.h:21
HwResolvedPathCache::validated
bool validated
Definition
GstHwVideoBufferFactory.h:19
HwResolvedPathCache::path
HwVideoBufferPath path
Definition
GstHwVideoBufferFactory.h:18
HwVideoBufferContext
Definition
GstHwTypes.h:23
src
VideoManager
GStreamer
HwBuffers
common
GstHwVideoBufferFactory.h
Generated by
1.15.0