Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGstCaps Class Reference

#include <qgst_p.h>

+ Inheritance diagram for QGstCaps:
+ Collaboration diagram for QGstCaps:

Public Types

enum  MemoryFormat { CpuMemory , GLTexture , DMABuf }
 
- Public Types inherited from QGstPointerImpl::QGstObjectWrapper< GstCaps >
enum  RefMode
 

Public Member Functions

 QGstCaps (const QGstCaps &)=default
 
 QGstCaps (QGstCaps &&) noexcept=default
 
QGstCapsoperator= (const QGstCaps &)=default
 
QGstCapsoperator= (QGstCaps &&) noexcept=default
 
int size () const
 
QGstStructure at (int index) const
 
GstCaps * caps () const
 
MemoryFormat memoryFormat () const
 
std::optional< std::pair< QVideoFrameFormat, GstVideoInfo > > formatAndVideoInfo () const
 
void addPixelFormats (const QList< QVideoFrameFormat::PixelFormat > &formats, const char *modifier=nullptr)
 
void setResolution (QSize)
 
QGstCaps copy () const
 
- Public Member Functions inherited from QGstPointerImpl::QGstObjectWrapper< GstCaps >
constexpr QGstObjectWrapper ()=default
 
 QGstObjectWrapper (GstCaps *object, RefMode mode)
 
 QGstObjectWrapper (const QGstObjectWrapper &other)
 
 QGstObjectWrapper (QGstObjectWrapper &&other) noexcept
 
 ~QGstObjectWrapper ()
 
QGstObjectWrapperoperator= (const QGstObjectWrapper &other)
 
QGstObjectWrapperoperator= (QGstObjectWrapper &&other) noexcept
 
 operator bool () const
 
bool isNull () const
 
GstCaps * release ()
 

Static Public Member Functions

static QGstCaps create ()
 
static QGstCaps fromCameraFormat (const QCameraFormat &format)
 

Additional Inherited Members

- Protected Member Functions inherited from QGstPointerImpl::QGstObjectWrapper< GstCaps >
GstCaps * get () const
 

Detailed Description

Definition at line 335 of file qgst_p.h.

Member Enumeration Documentation

◆ MemoryFormat

Enumerator
CpuMemory 
GLTexture 
DMABuf 

Definition at line 346 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstCaps() [1/2]

QGstCaps::QGstCaps ( const QGstCaps & )
default

Referenced by addPixelFormats(), and create().

+ Here is the caller graph for this function:

◆ QGstCaps() [2/2]

QGstCaps::QGstCaps ( QGstCaps && )
defaultnoexcept

Member Function Documentation

◆ addPixelFormats()

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

Definition at line 417 of file qgst.cpp.

References QGstCaps(), QGstPointerImpl::QGstObjectWrapper< GstCaps >::get(), item, list, QGstPointerImpl::QGstObjectWrapper< GstCaps >::release(), and size().

+ Here is the call graph for this function:

◆ at()

QGstStructure QGstCaps::at ( int index) const

Definition at line 508 of file qgst.cpp.

References QGstPointerImpl::QGstObjectWrapper< GstCaps >::get().

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

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

◆ caps()

GstCaps * QGstCaps::caps ( ) const

Definition at line 513 of file qgst.cpp.

References QGstPointerImpl::QGstObjectWrapper< GstCaps >::get().

Referenced by copy(), createVideoProfile(), fromCameraFormat(), operator<<(), and setResolution().

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

◆ copy()

QGstCaps QGstCaps::copy ( ) const

Definition at line 485 of file qgst.cpp.

References caps(), and QGstPointerImpl::QGstObjectWrapper< GstCaps >::HasRef.

+ Here is the call graph for this function:

◆ create()

QGstCaps QGstCaps::create ( )
static

Definition at line 518 of file qgst.cpp.

References QGstCaps(), and QGstPointerImpl::QGstObjectWrapper< GstCaps >::HasRef.

Referenced by fromCameraFormat().

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

◆ formatAndVideoInfo()

◆ fromCameraFormat()

QGstCaps QGstCaps::fromCameraFormat ( const QCameraFormat & format)
static

Definition at line 464 of file qgst.cpp.

References caps(), 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:

◆ memoryFormat()

QGstCaps::MemoryFormat QGstCaps::memoryFormat ( ) const

Definition at line 493 of file qgst.cpp.

References CpuMemory, DMABuf, QGstPointerImpl::QGstObjectWrapper< GstCaps >::get(), and GLTexture.

Referenced by QGstreamerImageCapture::probeBuffer().

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

◆ operator=() [1/2]

QGstCaps & QGstCaps::operator= ( const QGstCaps & )
default

◆ operator=() [2/2]

QGstCaps & QGstCaps::operator= ( QGstCaps && )
defaultnoexcept

◆ setResolution()

void QGstCaps::setResolution ( QSize resolution)

Definition at line 450 of file qgst.cpp.

References caps(), QSize::height(), QSize::isValid(), Q_ASSERT, and QSize::width().

Referenced by createVideoProfile().

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

◆ size()

int QGstCaps::size ( ) const

Definition at line 503 of file qgst.cpp.

References QGstPointerImpl::QGstObjectWrapper< GstCaps >::get().

Referenced by addPixelFormats(), and getImageFormatList().

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

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