QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwVideoBufferFactory.h File Reference
#include <gst/gst.h>
#include <gst/video/video-info.h>
#include <memory>
#include <QtCore/qglobal.h>
#include <QtMultimedia/QVideoFrameFormat>
#include "GstHwTypes.h"
Include dependency graph for GstHwVideoBufferFactory.h:
This graph shows which files directly or indirectly include this file:

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)

Function Documentation

◆ makeHwVideoBuffer()

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().