#include "GstHwVideoBufferFactory.h"#include <private/qhwvideobuffer_p.h>#include <utility>#include "GstHwPathRegistry.h"#include "GstHwPathTelemetry.h"#include "GstHwVideoBuffer.h"#include "QGCLoggingCategory.h"Go to the source code of this file.
Functions | |
| std::unique_ptr< QHwVideoBuffer > | makeHwVideoBuffer (GstBuffer *buffer, GstCaps *caps, const GstVideoInfo &info, QVideoFrameFormat format, const HwVideoBufferContext &context, HwVideoBufferPath &matchedPath, HwResolvedPathCache *cache) |
| std::unique_ptr< QHwVideoBuffer > makeHwVideoBuffer | ( | GstBuffer * | buffer, |
| GstCaps * | caps, | ||
| const GstVideoInfo & | info, | ||
| QVideoFrameFormat | format, | ||
| const HwVideoBufferContext & | context, | ||
| HwVideoBufferPath & | matchedPath, | ||
| HwResolvedPathCache * | cache = nullptr ) |
Selects the zero-copy QHwVideoBuffer for buffer; returns nullptr when no GPU path matches (CPU fallback). The GstSample the buffer holds is only created once a path matches.
Definition at line 13 of file GstHwVideoBufferFactory.cc.
References makeHwVideoBuffer(), None, GstHwPathRegistry::paths(), GstHwPathTelemetry::recordFallbackReason(), GstHw::toString(), GstHwPathTelemetry::UnknownMemType, and GstHwPathTelemetry::ValidateFailed.
Referenced by makeHwVideoBuffer(), and mapSampleToFrame().