|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include "GstHwVideoBufferFactory.h"#include <QtCore/QMutex>#include <QtCore/QMutexLocker>#include <QtCore/QSet>#include <QtCore/QString>#include <private/qhwvideobuffer_p.h>#include "GstHwPathTelemetry.h"#include "QGCLoggingCategory.h"
Include dependency graph for GstHwVideoBufferFactory.cc:Go to the source code of this file.
Functions | |
| std::unique_ptr< QHwVideoBuffer > | makeHwVideoBuffer (GstSample *sample, const GstVideoInfo &info, QVideoFrameFormat format, const HwVideoBufferContext &context, HwVideoBufferPath &matchedPath, HwResolvedPathCache *cache) |
| std::unique_ptr< QHwVideoBuffer > makeHwVideoBuffer | ( | GstSample * | sample, |
| const GstVideoInfo & | info, | ||
| QVideoFrameFormat | format, | ||
| const HwVideoBufferContext & | context, | ||
| HwVideoBufferPath & | matchedPath, | ||
| HwResolvedPathCache * | cache = nullptr |
||
| ) |
Selects the zero-copy QHwVideoBuffer for a GstSample; returns nullptr when no GPU path matches (CPU memcpy fallback).
Definition at line 210 of file GstHwVideoBufferFactory.cc.
References AHardwareBuffer, D3D11, D3D12, DmaBuf, GlMemory, HwVideoBufferContext::gpuEnabled, GstHwPathTelemetry::ImportUnsupported, IOSurface, GstHwPathTelemetry::NoExt, None, HwResolvedPathCache::path, GstHwPathTelemetry::recordFallbackReason(), GstHwPathTelemetry::UnknownMemType, HwResolvedPathCache::validated, GstHwPathTelemetry::ValidateFailed, and Vulkan.
Referenced by mapSampleToFrame().