Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGstCaps Class Reference

#include <qgst_p.h>

+ Collaboration diagram for QGstCaps:

Public Types

enum  RefMode { HasRef , NeedsRef }
 
enum  MemoryFormat { CpuMemory , GLTexture , DMABuf }
 

Public Member Functions

 QGstCaps ()=default
 
 QGstCaps (GstCaps *c, RefMode mode)
 
 QGstCaps (const QGstCaps &other)
 
 ~QGstCaps ()
 
QGstCapsoperator= (const QGstCaps &other)
 
bool isNull () const
 
QByteArray toString () const
 
int size () const
 
QGstStructure at (int index) const
 
GstCaps * get () const
 
MemoryFormat memoryFormat () const
 
QVideoFrameFormat formatForCaps (GstVideoInfo *info) const
 
void addPixelFormats (const QList< QVideoFrameFormat::PixelFormat > &formats, const char *modifier=nullptr)
 

Static Public Member Functions

static QGstCaps create ()
 
static QByteArray toString (const GstCaps *caps)
 
static QGstCaps fromCameraFormat (const QCameraFormat &format)
 

Detailed Description

Definition at line 160 of file qgst_p.h.

Member Enumeration Documentation

◆ MemoryFormat

Enumerator
CpuMemory 
GLTexture 
DMABuf 

Definition at line 164 of file qgst_p.h.

◆ RefMode

Enumerator
HasRef 
NeedsRef 

Definition at line 163 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstCaps() [1/3]

QGstCaps::QGstCaps ( )
default

Referenced by create().

+ Here is the caller graph for this function:

◆ QGstCaps() [2/3]

QGstCaps::QGstCaps ( GstCaps *  c,
RefMode  mode 
)
inlineexplicit

Definition at line 168 of file qgst_p.h.

References NeedsRef.

◆ QGstCaps() [3/3]

QGstCaps::QGstCaps ( const QGstCaps other)
inline

Definition at line 174 of file qgst_p.h.

◆ ~QGstCaps()

QGstCaps::~QGstCaps ( )
inline

Definition at line 180 of file qgst_p.h.

Member Function Documentation

◆ addPixelFormats()

void QGstCaps::addPixelFormats ( const QList< QVideoFrameFormat::PixelFormat > &  formats,
const char *  modifier = nullptr 
)

Definition at line 289 of file qgstutils.cpp.

References item, list, and size().

+ Here is the call graph for this function:

◆ at()

QGstStructure QGstCaps::at ( int  index) const
inline

Definition at line 201 of file qgst_p.h.

Referenced by QGstUtils::audioFormatForCaps(), getImageFormatList(), and QGstreamerVideoOverlay::probeCaps().

+ Here is the caller graph for this function:

◆ create()

static QGstCaps QGstCaps::create ( )
inlinestatic

Definition at line 215 of file qgst_p.h.

References QGstCaps(), and HasRef.

Referenced by fromCameraFormat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ formatForCaps()

◆ fromCameraFormat()

QGstCaps QGstCaps::fromCameraFormat ( const QCameraFormat format)
static

Definition at line 322 of file qgstutils.cpp.

References create(), and QVideoFrameFormat::Format_Jpeg.

Referenced by QGstreamerCamera::setCamera(), and QGstreamerCamera::setCameraFormat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

GstCaps * QGstCaps::get ( ) const
inline

Definition at line 202 of file qgst_p.h.

◆ isNull()

bool QGstCaps::isNull ( ) const
inline

Definition at line 197 of file qgst_p.h.

Referenced by QGstVideoRenderer::start().

+ Here is the caller graph for this function:

◆ memoryFormat()

MemoryFormat QGstCaps::memoryFormat ( ) const
inline

Definition at line 203 of file qgst_p.h.

References CpuMemory, DMABuf, and GLTexture.

◆ operator=()

QGstCaps & QGstCaps::operator= ( const QGstCaps other)
inline

Definition at line 185 of file qgst_p.h.

References other().

+ Here is the call graph for this function:

◆ size()

int QGstCaps::size ( ) const
inline

Definition at line 200 of file qgst_p.h.

Referenced by addPixelFormats(), and getImageFormatList().

+ Here is the caller graph for this function:

◆ toString() [1/2]

QByteArray QGstCaps::toString ( ) const
inline

Definition at line 199 of file qgst_p.h.

References toString().

Referenced by QGstVideoRenderer::start(), and toString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toString() [2/2]

static QByteArray QGstCaps::toString ( const GstCaps *  caps)
inlinestatic

Definition at line 219 of file qgst_p.h.


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