#include <gst/gst.h>#include <gst/video/video-info.h>#include <memory>#include <QtCore/qglobal.h>#include <QtMultimedia/QVideoFrameFormat>#include "GstHwTypes.h"Go to the source code of this file.
Classes | |
| struct | HwResolvedPathCache |
Functions | |
| std::unique_ptr< QHwVideoBuffer > | makeHwVideoBuffer (GstBuffer *buffer, GstCaps *caps, const GstVideoInfo &info, QVideoFrameFormat format, const HwVideoBufferContext &context, HwVideoBufferPath &matchedPath, HwResolvedPathCache *cache=nullptr) |
| 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().