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
QFFmpeg::Codec Class Reference

#include <qffmpegcodec_p.h>

+ Collaboration diagram for QFFmpeg::Codec:

Public Member Functions

AVRational pixelAspectRatio (AVFrame *frame) const
 
AVCodecContext * context () const
 
AVStream * stream () const
 
uint streamIndex () const
 
HWAccelhwAccel () const
 
qint64 toMs (qint64 ts) const
 
qint64 toUs (qint64 ts) const
 

Static Public Member Functions

static QMaybe< Codeccreate (AVStream *stream, AVFormatContext *formatContext)
 

Detailed Description

Definition at line 28 of file qffmpegcodec_p.h.

Member Function Documentation

◆ context()

AVCodecContext * QFFmpeg::Codec::context ( ) const
inline

Definition at line 46 of file qffmpegcodec_p.h.

Referenced by QFFmpeg::StreamDecoder::~StreamDecoder(), and QFFmpeg::StreamDecoder::doNextStep().

+ Here is the caller graph for this function:

◆ create()

QMaybe< Codec > QFFmpeg::Codec::create ( AVStream * stream,
AVFormatContext * formatContext )
static

Definition at line 21 of file qffmpegcodec.cpp.

References QFFmpeg::applyExperimentalCodecOptions(), context, Data, QFFmpeg::err2str(), QFFmpeg::findAVDecoder(), QFFmpeg::getFormat(), qCDebug, and ret.

+ Here is the call graph for this function:

◆ hwAccel()

HWAccel * QFFmpeg::Codec::hwAccel ( ) const
inline

Definition at line 49 of file qffmpegcodec_p.h.

◆ pixelAspectRatio()

AVRational QFFmpeg::Codec::pixelAspectRatio ( AVFrame * frame) const

Definition at line 73 of file qffmpegcodec.cpp.

References d, and frame.

◆ stream()

AVStream * QFFmpeg::Codec::stream ( ) const
inline

Definition at line 47 of file qffmpegcodec_p.h.

◆ streamIndex()

uint QFFmpeg::Codec::streamIndex ( ) const
inline

Definition at line 48 of file qffmpegcodec_p.h.

◆ toMs()

qint64 QFFmpeg::Codec::toMs ( qint64 ts) const
inline

Definition at line 50 of file qffmpegcodec_p.h.

References QFFmpeg::timeStampMs().

+ Here is the call graph for this function:

◆ toUs()

qint64 QFFmpeg::Codec::toUs ( qint64 ts) const
inline

Definition at line 51 of file qffmpegcodec_p.h.

References QFFmpeg::timeStampUs().

+ Here is the call graph for this function:

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