Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QFFmpeg::VideoFrameEncoder Class Reference

#include <qffmpegvideoframeencoder_p.h>

+ Collaboration diagram for QFFmpeg::VideoFrameEncoder:

Public Member Functions

 VideoFrameEncoder ()=default
 
 VideoFrameEncoder (const QMediaEncoderSettings &encoderSettings, const QSize &sourceSize, float frameRate, AVPixelFormat sourceFormat, AVPixelFormat swFormat)
 
 ~VideoFrameEncoder ()
 
void initWithFormatContext (AVFormatContext *formatContext)
 
bool open ()
 
bool isNull () const
 
AVPixelFormat sourceFormat () const
 
AVPixelFormat targetFormat () const
 
qint64 getPts (qint64 ms) const
 
const AVRational & getTimeBase () const
 
int sendFrame (AVFrameUPtr frame)
 
AVPacket * retrievePacket ()
 

Detailed Description

Definition at line 25 of file qffmpegvideoframeencoder_p.h.

Constructor & Destructor Documentation

◆ VideoFrameEncoder() [1/2]

QFFmpeg::VideoFrameEncoder::VideoFrameEncoder ( )
default

◆ VideoFrameEncoder() [2/2]

QFFmpeg::VideoFrameEncoder::VideoFrameEncoder ( const QMediaEncoderSettings encoderSettings,
const QSize sourceSize,
float  frameRate,
AVPixelFormat  sourceFormat,
AVPixelFormat  swFormat 
)

◆ ~VideoFrameEncoder()

QFFmpeg::VideoFrameEncoder::~VideoFrameEncoder ( )

Member Function Documentation

◆ getPts()

qint64 QFFmpeg::VideoFrameEncoder::getPts ( qint64  ms) const

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ getTimeBase()

const AVRational & QFFmpeg::VideoFrameEncoder::getTimeBase ( ) const

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ initWithFormatContext()

void QFFmpeg::VideoFrameEncoder::initWithFormatContext ( AVFormatContext *  formatContext)

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ isNull()

bool QFFmpeg::VideoFrameEncoder::isNull ( ) const
inline

Definition at line 59 of file qffmpegvideoframeencoder_p.h.

References d.

Referenced by Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ open()

bool QFFmpeg::VideoFrameEncoder::open ( )

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ retrievePacket()

AVPacket * QFFmpeg::VideoFrameEncoder::retrievePacket ( )

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ sendFrame()

int QFFmpeg::VideoFrameEncoder::sendFrame ( AVFrameUPtr  frame)

Referenced by Q_LOGGING_CATEGORY(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ sourceFormat()

AVPixelFormat QFFmpeg::VideoFrameEncoder::sourceFormat ( ) const
inline

Definition at line 61 of file qffmpegvideoframeencoder_p.h.

References d.

Referenced by Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ targetFormat()

AVPixelFormat QFFmpeg::VideoFrameEncoder::targetFormat ( ) const
inline

Definition at line 62 of file qffmpegvideoframeencoder_p.h.

References d.


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