3#include <QtCore/qglobal.h>
5#if defined(QGC_HAS_GST_AHARDWAREBUFFER_GPU_PATH)
8#include <QtGui/QMatrix4x4>
19 GstAHardwareBufferVideoBuffer(GstSample* sample,
const GstVideoInfo& videoInfo,
const QVideoFrameFormat& format,
20 EGLDisplay eglDisplay);
22 QVideoFrameTexturesUPtr mapTextures(QRhi& rhi, QVideoFrameTexturesUPtr& oldTextures)
override;
26 QMatrix4x4 externalTextureMatrix()
const override;
28 const char*
storageTag()
const override {
return "AHardwareBuffer"; }
30 static void resetImageCache() noexcept;
33 EGLDisplay _eglDisplay = EGL_NO_DISPLAY;
Common base for GStreamer-backed QHwVideoBuffer subclasses.
virtual const char * storageTag() const
Human-readable GPU path identifier (e.g. "DMABuf"); string literal, safe from any thread.
virtual bool validatePlaneHandles() const
Streaming-thread sanity check on per-plane handles; failure routes to CPU memcpy.