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_p.h File Reference

(2b2c3eec38576cf1fd3d571c1aaecf79ff301903)

#include "qffmpegdefs_p.h"
#include "qffmpegavaudioformat_p.h"
#include <QtMultimedia/qvideoframeformat.h>
#include <qstring.h>
#include <optional>
+ Include dependency graph for qffmpeg_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QFFmpeg::AVDictionaryHolder
 
struct  QFFmpeg::AVDeleter< FunctionType, F >
 

Namespaces

namespace  QFFmpeg
 

Typedefs

using QFFmpeg::AVFrameUPtr = std::unique_ptr<AVFrame, AVDeleter<decltype(&av_frame_free), &av_frame_free>>
 
using QFFmpeg::AVPacketUPtr
 
using QFFmpeg::AVCodecContextUPtr
 
using QFFmpeg::AVBufferUPtr
 
using QFFmpeg::AVHWFramesConstraintsUPtr
 
using QFFmpeg::SwrContextUPtr = std::unique_ptr<SwrContext, AVDeleter<decltype(&swr_free), &swr_free>>
 
using QFFmpeg::PixelOrSampleFormat = int
 
using QFFmpeg::AVScore = int
 

Functions

bool operator== (const AVRational &lhs, const AVRational &rhs)
 
bool operator!= (const AVRational &lhs, const AVRational &rhs)
 
std::optional< qint64QFFmpeg::mul (qint64 a, AVRational b)
 
std::optional< qrealQFFmpeg::mul (qreal a, AVRational b)
 
std::optional< qint64QFFmpeg::timeStampMs (qint64 ts, AVRational base)
 
std::optional< qint64QFFmpeg::timeStampUs (qint64 ts, AVRational base)
 
std::optional< float > QFFmpeg::toFloat (AVRational r)
 
QString QFFmpeg::err2str (int errnum)
 
void QFFmpeg::setAVFrameTime (AVFrame &frame, int64_t pts, const AVRational &timeBase)
 
void QFFmpeg::getAVFrameTime (const AVFrame &frame, int64_t &pts, AVRational &timeBase)
 
int64_t QFFmpeg::getAVFrameDuration (const AVFrame &frame)
 
AVFrameUPtr QFFmpeg::makeAVFrame ()
 
const AVCodec * QFFmpeg::findAVDecoder (AVCodecID codecId, const std::optional< AVHWDeviceType > &deviceType, const std::optional< PixelOrSampleFormat > &format)
 
const AVCodec * QFFmpeg::findAVEncoder (AVCodecID codecId, const std::optional< AVHWDeviceType > &deviceType, const std::optional< PixelOrSampleFormat > &format)
 
const AVCodec * QFFmpeg::findAVEncoder (AVCodecID codecId, const std::function< AVScore(const AVCodec *)> &scoresGetter)
 
bool QFFmpeg::isAVFormatSupported (const AVCodec *codec, PixelOrSampleFormat format)
 
template<typename Format >
bool QFFmpeg::hasAVFormat (const Format *fmts, Format format)
 
template<typename Format , typename Predicate >
Format QFFmpeg::findAVFormat (const Format *fmts, const Predicate &predicate)
 
template<typename Value , typename CalculateScore >
auto QFFmpeg::findBestAVValue (const Value *values, const CalculateScore &calculateScore, Value invalidValue={})
 
template<typename Format , typename CalculateScore >
std::pair< Format, AVScoreQFFmpeg::findBestAVFormat (const Format *fmts, const CalculateScore &calculateScore)
 
bool QFFmpeg::isHwPixelFormat (AVPixelFormat format)
 
bool QFFmpeg::isSwPixelFormat (AVPixelFormat format)
 
bool QFFmpeg::isAVCodecExperimental (const AVCodec *codec)
 
void QFFmpeg::applyExperimentalCodecOptions (const AVCodec *codec, AVDictionary **opts)
 
AVPixelFormat QFFmpeg::pixelFormatForHwDevice (AVHWDeviceType deviceType)
 
AVPacketSideData * QFFmpeg::addStreamSideData (AVStream *stream, AVPacketSideData sideData)
 
const AVPacketSideData * QFFmpeg::streamSideData (const AVStream *stream, AVPacketSideDataType type)
 
SwrContextUPtr QFFmpeg::createResampleContext (const AVAudioFormat &inputFormat, const AVAudioFormat &outputFormat)
 
QVideoFrameFormat::ColorTransfer QFFmpeg::fromAvColorTransfer (AVColorTransferCharacteristic colorTrc)
 
QDebug operator<< (QDebug, const AVRational &)
 

Variables

constexpr AVScore QFFmpeg::BestAVScore = std::numeric_limits<AVScore>::max()
 
constexpr AVScore QFFmpeg::DefaultAVScore = 0
 
constexpr AVScore QFFmpeg::NotSuitableAVScore = std::numeric_limits<AVScore>::min()
 
constexpr AVScore QFFmpeg::MinAVScore = NotSuitableAVScore + 1
 

Function Documentation

◆ operator!=()

bool operator!= ( const AVRational & lhs,
const AVRational & rhs )
inline

Definition at line 29 of file qffmpeg_p.h.

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const AVRational & value )

Definition at line 636 of file qffmpeg.cpp.

◆ operator==()

bool operator== ( const AVRational & lhs,
const AVRational & rhs )
inline

Definition at line 24 of file qffmpeg_p.h.