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

(64b605f1464d80ff4f9eb29c9b6880e58807a099)

#include <QtFFmpegMediaPluginImpl/private/qffmpegdefs_p.h>
#include <QtFFmpegMediaPluginImpl/private/qffmpegcodec_p.h>
#include <QtFFmpegMediaPluginImpl/private/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 >
struct  QFFmpeg::ValueAndScore< ValueT, ScoreT >

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::SwsContextUPtr

Enumerations

enum class  QFFmpeg::AVError : int { QFFmpeg::Success = 0 }

Functions

static bool operator== (const AVRational &lhs, const AVRational &rhs)
static 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 ()
bool QFFmpeg::isAVFormatSupported (const Codec &codec, PixelOrSampleFormat format)
template<typename Value>
bool QFFmpeg::hasValue (QSpan< const Value > range, Value value)
template<typename Value, typename Predicate>
std::optional< Value > QFFmpeg::findIf (QSpan< const Value > range, const Predicate &predicate)
template<typename Predicate>
std::optional< AVPixelFormat > QFFmpeg::findAVPixelFormat (const Codec &codec, const Predicate &predicate)
template<typename Function>
void QFFmpeg::forEachAVPixelFormat (const Codec &codec, const Function &function)
template<typename Value, typename CalculateScore, typename ScoreType = std::invoke_result_t<CalculateScore, Value>>
ValueAndScore< Value, ScoreType > QFFmpeg::findBestAVValueWithScore (QSpan< const Value > values, const CalculateScore &calculateScore)
template<typename Value, typename CalculateScore>
std::optional< Value > QFFmpeg::findBestAVValue (QSpan< const Value > values, const CalculateScore &calculateScore)
bool QFFmpeg::isHwPixelFormat (AVPixelFormat format)
bool QFFmpeg::isSwPixelFormat (AVPixelFormat format)
void QFFmpeg::applyExperimentalCodecOptions (const Codec &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)
AVColorTransferCharacteristic QFFmpeg::toAvColorTransfer (QVideoFrameFormat::ColorTransfer colorTrc)
QVideoFrameFormat::ColorSpace QFFmpeg::fromAvColorSpace (AVColorSpace colorSpace)
AVColorSpace QFFmpeg::toAvColorSpace (QVideoFrameFormat::ColorSpace colorSpace)
QVideoFrameFormat::ColorRange QFFmpeg::fromAvColorRange (AVColorRange colorRange)
AVColorRange QFFmpeg::toAvColorRange (QVideoFrameFormat::ColorRange colorRange)
AVHWDeviceContext * QFFmpeg::avFrameDeviceContext (const AVFrame *frame)
SwsContextUPtr QFFmpeg::createSwsContext (const QSize &srcSize, AVPixelFormat srcPixFmt, const QSize &dstSize, AVPixelFormat dstPixFmt, SwsFlags conversionType)
QDebug operator<< (QDebug, const AVRational &)
QDebug operator<< (QDebug, const AVDictionary &)
QDebug operator<< (QDebug, const QFFmpeg::AVDictionaryHolder &)
QDebug operator<< (QDebug, QFFmpeg::AVError)

Function Documentation

◆ operator!=()

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

Definition at line 30 of file qffmpeg_p.h.

◆ operator<<() [1/4]

QDebug operator<< ( QDebug dbg,
const AVDictionary & dict )

Definition at line 352 of file qffmpeg.cpp.

◆ operator<<() [2/4]

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

Definition at line 346 of file qffmpeg.cpp.

◆ operator<<() [3/4]

QDebug operator<< ( QDebug dbg,
const QFFmpeg::AVDictionaryHolder & dict )

Definition at line 367 of file qffmpeg.cpp.

◆ operator<<() [4/4]

QDebug operator<< ( QDebug dbg,
QFFmpeg::AVError error )

Definition at line 376 of file qffmpeg.cpp.

References QFFmpeg::Success.

◆ operator==()

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

Definition at line 25 of file qffmpeg_p.h.