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
QVideoFramePrivate Class Reference

#include <qvideoframe_p.h>

Inheritance diagram for QVideoFramePrivate:
Collaboration diagram for QVideoFramePrivate:

Public Member Functions

 QVideoFramePrivate ()=default
 ~QVideoFramePrivate ()
template<typename Buffer = QAbstractVideoBuffer>
 QVideoFramePrivate (QVideoFrameFormat formatformat, std::unique_ptr< Buffer > bufferbuffer=nullptr)
QVideoFrame adoptThisByVideoFrame ()
Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
QSharedData & operator= (const QSharedData &)=delete
 ~QSharedData ()=default

Static Public Member Functions

template<typename Buffer>
static QVideoFrame createFrame (std::unique_ptr< Buffer > bufferbuffer, QVideoFrameFormat formatformat)
static QVideoFrame createEndOfStreamFrame (std::chrono::microseconds startTime)
static QVideoFramePrivate * handle (QVideoFrame &frame)
static QHwVideoBuffer * hwBuffer (const QVideoFrame &frame)
static bool hasDmaBuf (const QVideoFrame &frame)
static QAbstractVideoBuffer * buffer (const QVideoFrame &frame)
static Q_MULTIMEDIA_EXPORT QVideoFrame copyToCpuMemory (const QVideoFrame &sourcesource)

Public Attributes

qint64 startTime = -1
qint64 endTime = -1
QAbstractVideoBuffer::MapData mapData
QVideoFrame::MapMode mapMode = QVideoFrame::NotMapped
QVideoFrameFormat format
std::unique_ptr< QAbstractVideoBuffer > videoBuffer
QHwVideoBuffer * hwVideoBuffer = nullptr
int mappedCount = 0
QMutex mapMutex
QString subtitleText
QImage image
QMutex imageMutex
VideoTransformation presentationTransformation
Public Attributes inherited from QSharedData
QAtomicInt ref

Detailed Description

Definition at line 33 of file qvideoframe_p.h.

Constructor & Destructor Documentation

◆ QVideoFramePrivate() [1/2]

QVideoFramePrivate::QVideoFramePrivate ( )
default

◆ ~QVideoFramePrivate()

QVideoFramePrivate::~QVideoFramePrivate ( )
inline

Definition at line 38 of file qvideoframe_p.h.

◆ QVideoFramePrivate() [2/2]

template<typename Buffer = QAbstractVideoBuffer>
QVideoFramePrivate::QVideoFramePrivate ( QVideoFrameFormat format,
std::unique_ptr< Buffer > buffer = nullptr )
inline

Definition at line 61 of file qvideoframe_p.h.

References QVideoFramePrivate().

Referenced by QVideoFramePrivate().

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

Member Function Documentation

◆ adoptThisByVideoFrame()

QVideoFrame QVideoFramePrivate::adoptThisByVideoFrame ( )
inline

Definition at line 101 of file qvideoframe_p.h.

◆ buffer()

QAbstractVideoBuffer * QVideoFramePrivate::buffer ( const QVideoFrame & frame)
inlinestatic

Definition at line 94 of file qvideoframe_p.h.

◆ copyToCpuMemory()

QVideoFrame QVideoFramePrivate::copyToCpuMemory ( const QVideoFrame & source)
static

Definition at line 1117 of file qvideoframe.cpp.

◆ createEndOfStreamFrame()

QVideoFrame QVideoFramePrivate::createEndOfStreamFrame ( std::chrono::microseconds startTime)
inlinestaticnodiscard

Definition at line 71 of file qvideoframe_p.h.

◆ createFrame()

template<typename Buffer>
QVideoFrame QVideoFramePrivate::createFrame ( std::unique_ptr< Buffer > buffer,
QVideoFrameFormat format )
inlinestatic

Definition at line 49 of file qvideoframe_p.h.

◆ handle()

QVideoFramePrivate * QVideoFramePrivate::handle ( QVideoFrame & frame)
inlinestatic

Definition at line 81 of file qvideoframe_p.h.

Referenced by videoFramePlaneAsImage().

Here is the caller graph for this function:

◆ hasDmaBuf()

bool QVideoFramePrivate::hasDmaBuf ( const QVideoFrame & frame)
inlinestatic

Definition at line 88 of file qvideoframe_p.h.

◆ hwBuffer()

QHwVideoBuffer * QVideoFramePrivate::hwBuffer ( const QVideoFrame & frame)
inlinestatic

Definition at line 83 of file qvideoframe_p.h.

Member Data Documentation

◆ endTime

qint64 QVideoFramePrivate::endTime = -1

Definition at line 109 of file qvideoframe_p.h.

◆ format

QVideoFrameFormat QVideoFramePrivate::format

Definition at line 112 of file qvideoframe_p.h.

◆ hwVideoBuffer

QHwVideoBuffer* QVideoFramePrivate::hwVideoBuffer = nullptr

Definition at line 114 of file qvideoframe_p.h.

◆ image

QImage QVideoFramePrivate::image

Definition at line 118 of file qvideoframe_p.h.

◆ imageMutex

QMutex QVideoFramePrivate::imageMutex

Definition at line 119 of file qvideoframe_p.h.

◆ mapData

QAbstractVideoBuffer::MapData QVideoFramePrivate::mapData

Definition at line 110 of file qvideoframe_p.h.

◆ mapMode

QVideoFrame::MapMode QVideoFramePrivate::mapMode = QVideoFrame::NotMapped

Definition at line 111 of file qvideoframe_p.h.

◆ mapMutex

QMutex QVideoFramePrivate::mapMutex

Definition at line 116 of file qvideoframe_p.h.

◆ mappedCount

int QVideoFramePrivate::mappedCount = 0

Definition at line 115 of file qvideoframe_p.h.

◆ presentationTransformation

VideoTransformation QVideoFramePrivate::presentationTransformation

Definition at line 120 of file qvideoframe_p.h.

◆ startTime

qint64 QVideoFramePrivate::startTime = -1

Definition at line 108 of file qvideoframe_p.h.

◆ subtitleText

QString QVideoFramePrivate::subtitleText

Definition at line 117 of file qvideoframe_p.h.

◆ videoBuffer

std::unique_ptr<QAbstractVideoBuffer> QVideoFramePrivate::videoBuffer

Definition at line 113 of file qvideoframe_p.h.


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