QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstGlFrameTextures Class Reference

Shared base for GL-texture-backed QVideoFrameTextures wrappers (GLMemory and DMABuf-via-EGLImage). More...

#include <GstGlFrameTextures.h>

+ Inheritance diagram for GstGlFrameTextures:
+ Collaboration diagram for GstGlFrameTextures:

Public Types

using FallbackPolicy = QVideoTextureHelper::TextureDescription::FallbackPolicy
 

Public Member Functions

 GstGlFrameTextures (QRhi *rhi, QSize size, QVideoFrameFormat::PixelFormat pixelFormat, std::array< GLuint, GstHw::kMaxPlanes > names, int count, FallbackPolicy fallback=FallbackPolicy::Enable)
 
- Public Member Functions inherited from GstHwFrameTexturesBase
 ~GstHwFrameTexturesBase () override
 
void onFrameEndInvoked () override
 
QRhiTexture * texture (uint plane) const override
 
virtual HwVideoBufferPath sourcePath () const
 GPU path that produced this bundle; used after a type-safe downcast to decide path-local reuse.
 
void setSourceSample (GstSample *s) noexcept
 Transfers a ref into the bundle. Caller must have a fresh ref.
 

Protected Attributes

QRhi * _rhi = nullptr
 
QSize _size
 
QVideoFrameFormat::PixelFormat _pixelFormat = QVideoFrameFormat::Format_Invalid
 
std::array< GLuint, GstHw::kMaxPlanes_names {}
 
- Protected Attributes inherited from GstHwFrameTexturesBase
int _count = 0
 
std::unique_ptr< QRhiTexture > _textures [GstHw::kMaxPlanes]
 
GstSample * _srcSample = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from GstHwFrameTexturesBase
template<class FT >
static FT * reusableBundle (QVideoFrameTexturesUPtr &old, HwVideoBufferPath p)
 

Detailed Description

Shared base for GL-texture-backed QVideoFrameTextures wrappers (GLMemory and DMABuf-via-EGLImage).

Definition at line 14 of file GstGlFrameTextures.h.

Member Typedef Documentation

◆ FallbackPolicy

using GstGlFrameTextures::FallbackPolicy = QVideoTextureHelper::TextureDescription::FallbackPolicy

Definition at line 17 of file GstGlFrameTextures.h.

Constructor & Destructor Documentation

◆ GstGlFrameTextures()

GstGlFrameTextures::GstGlFrameTextures ( QRhi *  rhi,
QSize  size,
QVideoFrameFormat::PixelFormat  pixelFormat,
std::array< GLuint, GstHw::kMaxPlanes names,
int  count,
FallbackPolicy  fallback = FallbackPolicy::Enable 
)
inline

Member Data Documentation

◆ _names

std::array<GLuint, GstHw::kMaxPlanes> GstGlFrameTextures::_names {}
protected

Definition at line 45 of file GstGlFrameTextures.h.

Referenced by GstGlFrameTextures().

◆ _pixelFormat

QVideoFrameFormat::PixelFormat GstGlFrameTextures::_pixelFormat = QVideoFrameFormat::Format_Invalid
protected

Definition at line 44 of file GstGlFrameTextures.h.

◆ _rhi

QRhi* GstGlFrameTextures::_rhi = nullptr
protected

Definition at line 42 of file GstGlFrameTextures.h.

◆ _size

QSize GstGlFrameTextures::_size
protected

Definition at line 43 of file GstGlFrameTextures.h.


The documentation for this class was generated from the following file: