Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 QtPrivate::QSharedHandle< QSharedGstCapsTraits >
enum  RefMode
 

Public Member Functions

 QGstCaps (const QGstCaps &)=default
 
 QGstCaps (QGstCaps &&) noexcept=default
 
QGstCapsoperator= (const QGstCaps &)=default
 
QGstCapsoperator= (QGstCaps &&) noexcept=default
 
int size () const
 
QGstStructureView 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 QtPrivate::QSharedHandle< QSharedGstCapsTraits >
 QSharedHandle ()=default
 
 QSharedHandle (typename QSharedGstCapsTraits::Type object, RefMode mode)
 
 QSharedHandle (const QSharedHandle &o)
 
 QSharedHandle (QSharedHandle &&) noexcept=default
 
QSharedHandleoperator= (const QSharedHandle &o) noexcept(RefIsNoexcept &&BaseResetIsNoexcept)
 
QSharedHandleoperator= (QSharedHandle &&o) noexcept(BaseMoveIsNoexcept)
 
void reset (typename QSharedGstCapsTraits::Type o, RefMode mode) noexcept(RefIsNoexcept &&BaseResetIsNoexcept)
 
void reset () noexcept(BaseResetIsNoexcept)
 
 Q_DECLARE_STRONGLY_ORDERED (QSharedHandle)
 
void swap (QSharedHandle &other) noexcept(noexcept(std::declval< BaseClass >().swap(other)))
 
Type get () const noexcept
 
bool isValid () const noexcept
 
 operator bool () const noexcept
 
Type release () noexcept
 
Typeoperator& () noexcept
 
 QSharedHandle ()=default
 
 QSharedHandle (typename QSharedGstCapsTraits::Type object, RefMode mode)
 
 QSharedHandle (const QSharedHandle &o)
 
 QSharedHandle (QSharedHandle &&) noexcept=default
 
QSharedHandleoperator= (const QSharedHandle &o) noexcept(RefIsNoexcept &&BaseResetIsNoexcept)
 
QSharedHandleoperator= (QSharedHandle &&o) noexcept(BaseMoveIsNoexcept)
 
void reset (typename QSharedGstCapsTraits::Type o, RefMode mode) noexcept(RefIsNoexcept &&BaseResetIsNoexcept)
 
void reset () noexcept(BaseResetIsNoexcept)
 
 Q_DECLARE_STRONGLY_ORDERED (QSharedHandle)
 
void swap (QSharedHandle &other) noexcept(noexcept(std::declval< BaseClass >().swap(other)))
 
Type get () const noexcept
 
bool isValid () const noexcept
 
 operator bool () const noexcept
 
Type release () noexcept
 
Typeoperator& () noexcept
 

Static Public Member Functions

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

Detailed Description

Definition at line 332 of file qgst_p.h.

Member Enumeration Documentation

◆ MemoryFormat

Enumerator
CpuMemory 
GLTexture 
DMABuf 

Definition at line 343 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstCaps() [1/2]

QGstCaps::QGstCaps ( const QGstCaps & )
default

◆ 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 475 of file qgst.cpp.

References size().

+ Here is the call graph for this function:

◆ at()

QGstStructureView QGstCaps::at ( int index) const

Definition at line 566 of file qgst.cpp.

Referenced by QGstUtils::audioFormatForCaps(), and QT_BEGIN_NAMESPACE::toTrackType().

+ Here is the caller graph for this function:

◆ caps()

GstCaps * QGstCaps::caps ( ) const

Definition at line 573 of file qgst.cpp.

◆ copy()

QGstCaps QGstCaps::copy ( ) const

Definition at line 543 of file qgst.cpp.

◆ create()

QGstCaps QGstCaps::create ( )
static

Definition at line 578 of file qgst.cpp.

Referenced by fromCameraFormat().

+ Here is the caller graph for this function:

◆ formatAndVideoInfo()

std::optional< std::pair< QVideoFrameFormat, GstVideoInfo > > QGstCaps::formatAndVideoInfo ( ) const

Definition at line 376 of file qgst.cpp.

◆ fromCameraFormat()

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

Definition at line 522 of file qgst.cpp.

References create().

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 551 of file qgst.cpp.

References CpuMemory, DMABuf, and GLTexture.

Referenced by QGstVideoRenderer::start().

+ 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 508 of file qgst.cpp.

Referenced by createVideoProfile().

+ Here is the caller graph for this function:

◆ size()

int QGstCaps::size ( ) const

Definition at line 561 of file qgst.cpp.

Referenced by addPixelFormats().

+ Here is the caller graph for this function:

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