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

#include <GstHwVideoBuffer.h>

+ Inheritance diagram for GstHwVideoBuffer:
+ Collaboration diagram for GstHwVideoBuffer:

Public Member Functions

 GstHwVideoBuffer (QVideoFrame::HandleType handleType, GstSample *sample, const GstVideoInfo &videoInfo, QVideoFrameFormat format)
 
 ~GstHwVideoBuffer () override
 
QVideoFrameFormat format () const override
 
virtual bool validatePlaneHandles () const
 

Protected Attributes

GstSample * _sample = nullptr
 
GstVideoInfo _videoInfo {}
 
QVideoFrameFormat _format
 

Detailed Description

Common base for GStreamer-backed QHwVideoBuffer subclasses.

Owns a ref on GstSample for its lifetime; holds a GstVideoInfo and QVideoFrameFormat so subclasses don't duplicate those three members.

Definition at line 15 of file GstHwVideoBuffer.h.

Constructor & Destructor Documentation

◆ GstHwVideoBuffer()

GstHwVideoBuffer::GstHwVideoBuffer ( QVideoFrame::HandleType  handleType,
GstSample *  sample,
const GstVideoInfo &  videoInfo,
QVideoFrameFormat  format 
)

Definition at line 3 of file GstHwVideoBuffer.cc.

◆ ~GstHwVideoBuffer()

GstHwVideoBuffer::~GstHwVideoBuffer ( )
override

Definition at line 15 of file GstHwVideoBuffer.cc.

References _sample.

Member Function Documentation

◆ format()

QVideoFrameFormat GstHwVideoBuffer::format ( ) const
inlineoverride

Definition at line 24 of file GstHwVideoBuffer.h.

References _format.

◆ validatePlaneHandles()

virtual bool GstHwVideoBuffer::validatePlaneHandles ( ) const
inlinevirtual

Streaming-thread sanity check on per-plane handles. Failure routes to CPU memcpy. GPU texture validity is checked later in mapTextures.

Definition at line 28 of file GstHwVideoBuffer.h.

Member Data Documentation

◆ _format

QVideoFrameFormat GstHwVideoBuffer::_format
protected

Definition at line 33 of file GstHwVideoBuffer.h.

Referenced by format().

◆ _sample

GstSample* GstHwVideoBuffer::_sample = nullptr
protected

Definition at line 31 of file GstHwVideoBuffer.h.

Referenced by ~GstHwVideoBuffer().

◆ _videoInfo

GstVideoInfo GstHwVideoBuffer::_videoInfo {}
protected

Definition at line 32 of file GstHwVideoBuffer.h.


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