Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Typedefs | |
using | AVFormatContextUPtr = std::unique_ptr<AVFormatContext, AVDeleter<decltype(&avformat_close_input), &avformat_close_input>> |
using | AvioWriteBufferType |
using | HWAccelUPtr = std::unique_ptr<HWAccel> |
using | AVFrameUPtr = std::unique_ptr<AVFrame, AVDeleter<decltype(&av_frame_free), &av_frame_free>> |
using | AVPacketUPtr |
using | AVCodecContextUPtr |
using | AVBufferUPtr |
using | AVHWFramesConstraintsUPtr |
using | SwrContextUPtr = std::unique_ptr<SwrContext, AVDeleter<decltype(&swr_free), &swr_free>> |
using | SwsContextUPtr |
using | StreamIndexes = std::array<int, 3> |
using | SharedTextureHandle = QUniqueHandle<SharedTextureHandleTraits> |
template<typename T > | |
using | ConsumerThreadUPtr = std::unique_ptr<T, ConsumerThread::Deleter> |
using | ApplyOptions = void (*)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) |
using | VideoFrameEncoderUPtr = std::unique_ptr<VideoFrameEncoder> |
Functions | |
bool | findAndOpenAVDecoder (AVCodecID codecId, const std::function< AVScore(const AVCodec *)> &scoresGetter, const std::function< bool(const AVCodec *)> &codecOpener) |
bool | findAndOpenAVEncoder (AVCodecID codecId, const std::function< AVScore(const AVCodec *)> &scoresGetter, const std::function< bool(const AVCodec *)> &codecOpener) |
const AVCodec * | findAVDecoder (AVCodecID codecId, const std::optional< PixelOrSampleFormat > &format={}) |
const AVCodec * | findAVEncoder (AVCodecID codecId, const std::optional< PixelOrSampleFormat > &format={}) |
const AVCodec * | findAVEncoder (AVCodecID codecId, const std::function< AVScore(const AVCodec *)> &scoresGetter) |
Q_STATIC_LOGGING_CATEGORY (qLcDemuxer, "qt.multimedia.ffmpeg.demuxer") | |
static qint64 | streamTimeToUs (const AVStream *stream, qint64 time) |
static qint64 | packetEndPos (const AVStream *stream, const Packet &packet) |
static bool | isPacketWithinStreamDuration (const AVFormatContext *context, const Packet &packet) |
static std::optional< qint64 > | streamDuration (const AVStream &stream) |
static QTransform | displayMatrixToTransform (const int32_t *displayMatrix) |
static VideoTransformation | streamTransformation (const AVStream *stream) |
static bool | colorTransferSupportsHdr (const AVStream *stream) |
static void | insertMediaData (QMediaMetaData &metaData, QPlatformMediaPlayer::TrackType trackType, const AVStream *stream) |
int | readQIODevice (void *opaque, uint8_t *buf, int buf_size) |
int | writeQIODevice (void *opaque, AvioWriteBufferType buf, int buf_size) |
int64_t | seekQIODevice (void *opaque, int64_t offset, int whence) |
Q_STATIC_LOGGING_CATEGORY (qLcRenderer, "qt.multimedia.ffmpeg.renderer") | |
enum AVPixelFormat | getFormat (struct AVCodecContext *s, const enum AVPixelFormat *fmt) |
AVFrameUPtr | copyFromHwPool (AVFrameUPtr frame) |
bool | isAVFormatSupported (const AVCodec *codec, PixelOrSampleFormat format) |
bool | isHwPixelFormat (AVPixelFormat format) |
bool | isAVCodecExperimental (const AVCodec *codec) |
void | applyExperimentalCodecOptions (const AVCodec *codec, AVDictionary **opts) |
AVPixelFormat | pixelFormatForHwDevice (AVHWDeviceType deviceType) |
AVPacketSideData * | addStreamSideData (AVStream *stream, AVPacketSideData sideData) |
const AVPacketSideData * | streamSideData (const AVStream *stream, AVPacketSideDataType type) |
SwrContextUPtr | createResampleContext (const AVAudioFormat &inputFormat, const AVAudioFormat &outputFormat) |
QVideoFrameFormat::ColorTransfer | fromAvColorTransfer (AVColorTransferCharacteristic colorTrc) |
AVColorTransferCharacteristic | toAvColorTransfer (QVideoFrameFormat::ColorTransfer colorTrc) |
QVideoFrameFormat::ColorSpace | fromAvColorSpace (AVColorSpace colorSpace) |
AVColorSpace | toAvColorSpace (QVideoFrameFormat::ColorSpace colorSpace) |
QVideoFrameFormat::ColorRange | fromAvColorRange (AVColorRange colorRange) |
AVColorRange | toAvColorRange (QVideoFrameFormat::ColorRange colorRange) |
AVHWDeviceContext * | avFrameDeviceContext (const AVFrame *frame) |
SwsContextUPtr | createSwsContext (const QSize &srcSize, AVPixelFormat srcPixFmt, const QSize &dstSize, AVPixelFormat dstPixFmt, int conversionType) |
void | logGetCodecConfigError (const AVCodec *codec, AVCodecConfig config, int error) |
std::optional< qint64 > | mul (qint64 a, AVRational b) |
std::optional< qreal > | mul (qreal a, AVRational b) |
std::optional< qint64 > | timeStampMs (qint64 ts, AVRational base) |
std::optional< qint64 > | timeStampUs (qint64 ts, AVRational base) |
std::optional< float > | toFloat (AVRational r) |
QString | err2str (int errnum) |
void | setAVFrameTime (AVFrame &frame, int64_t pts, const AVRational &timeBase) |
void | getAVFrameTime (const AVFrame &frame, int64_t &pts, AVRational &timeBase) |
int64_t | getAVFrameDuration (const AVFrame &frame) |
template<typename T > | |
const T * | getCodecConfig (const AVCodec *codec, AVCodecConfig config) |
const AVPixelFormat * | getCodecPixelFormats (const AVCodec *codec) |
const AVSampleFormat * | getCodecSampleFormats (const AVCodec *codec) |
const int * | getCodecSampleRates (const AVCodec *codec) |
const AVChannelLayout * | getCodecChannelLayouts (const AVCodec *codec) |
const AVRational * | getCodecFrameRates (const AVCodec *codec) |
AVFrameUPtr | makeAVFrame () |
template<typename Format > | |
bool | hasAVValue (const Format *fmts, Format format) |
template<typename AVValue , typename Predicate > | |
AVValue | findAVValue (const AVValue *fmts, const Predicate &predicate) |
template<typename Predicate > | |
const AVCodecHWConfig * | findHwConfig (const AVCodec *codec, const Predicate &predicate) |
template<typename Predicate > | |
AVPixelFormat | findAVPixelFormat (const AVCodec *codec, const Predicate &predicate) |
template<typename Value , typename CalculateScore > | |
auto | findBestAVValue (const Value *values, const CalculateScore &calculateScore) |
bool | isSwPixelFormat (AVPixelFormat format) |
bool | operator== (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
QDebug | operator<< (QDebug dbg, const AVAudioFormat &format) |
bool | operator!= (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
Q_STATIC_LOGGING_CATEGORY (qLcEncodingFormatContext, "qt.multimedia.ffmpeg.encodingformatcontext") | |
static AVBufferUPtr | loadHWContext (AVHWDeviceType type) |
static bool | precheckDriver (AVHWDeviceType type) |
static bool | checkHwType (AVHWDeviceType type) |
static const std::vector< AVHWDeviceType > & | deviceTypes () |
static std::vector< AVHWDeviceType > | deviceTypes (const char *envVarName) |
template<typename CodecFinder > | |
std::pair< const AVCodec *, HWAccelUPtr > | findCodecWithHwAccel (AVCodecID id, const std::vector< AVHWDeviceType > &deviceTypes, CodecFinder codecFinder, const std::function< bool(const HWAccel &)> &hwAccelPredicate) |
static bool | isNoConversionFormat (AVPixelFormat f) |
AVPixelFormat | getFormat (AVCodecContext *codecContext, const AVPixelFormat *suggestedFormats) |
AVFrameUPtr | copyFromHwPoolD3D11 (AVFrameUPtr src) |
static const quint32 * | fourccFromPixelFormat (const QVideoFrameFormat::PixelFormat format) |
static CVMetalTextureCacheRef & | mtc (void *&cache) |
static MTLPixelFormat | rhiTextureFormatToMetalFormat (QRhiTexture::Format f) |
Q_STATIC_LOGGING_CATEGORY (qLcPlaybackEngine, "qt.multimedia.ffmpeg.playbackengine") | |
template<typename Array > | |
Array | defaultObjectsArray () |
Q_STATIC_LOGGING_CATEGORY (qLcFFmpegAudioEncoder, "qt.multimedia.ffmpeg.audioencoder") | |
template<typename T > | |
T | dequeueIfPossible (std::queue< T > &queue) |
void | setEncoderInterface (QObject *source, QMediaInputEncoderInterface *) |
void | setEncoderUpdateConnection (QObject *source, EncoderThread *encoder) |
template<typename Encoder , typename Source > | |
void | connectEncoderToSource (Encoder *encoder, Source *source) |
void | disconnectEncoderFromSource (EncoderThread *encoder) |
void | applyVideoEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts) |
void | applyAudioEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts) |
AVSampleFormat | adjustSampleFormat (const AVSampleFormat *supportedFormats, AVSampleFormat requested) |
int | adjustSampleRate (const int *supportedRates, int requested) |
static AVScore | calculateScoreByChannelsCount (int supportedChannelsNumber, int requestedChannelsNumber) |
static AVScore | calculateScoreByChannelsMask (int supportedChannelsNumber, uint64_t supportedMask, int requestedChannelsNumber, uint64_t requestedMask) |
uint64_t | adjustChannelLayout (const uint64_t *supportedMasks, uint64_t requested) |
Q_STATIC_LOGGING_CATEGORY (qLcFFmpegMuxer, "qt.multimedia.ffmpeg.muxer") | |
template<typename F > | |
void | doWithMediaFrameInput (QObject *source, F &&f) |
Q_STATIC_LOGGING_CATEGORY (qLcFFmpegVideoEncoder, "qt.multimedia.ffmpeg.videoencoder") | |
static void | freeQVideoFrame (void *opaque, uint8_t *) |
static AVScore | calculateTargetSwFormatScore (const AVPixFmtDescriptor *sourceSwFormatDesc, AVPixelFormat fmt, const AVPixelFormatSet &prohibitedFormats) |
static auto | targetSwFormatScoreCalculator (AVPixelFormat sourceFormat, std::reference_wrapper< const AVPixelFormatSet > prohibitedFormats) |
static bool | isHwFormatAcceptedByCodec (AVPixelFormat pixFormat) |
AVPixelFormat | findTargetSWFormat (AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel &accel, const AVPixelFormatSet &prohibitedFormats) |
AVPixelFormat | findTargetFormat (AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel *accel, const AVPixelFormatSet &prohibitedFormats) |
std::pair< const AVCodec *, HWAccelUPtr > | findHwEncoder (AVCodecID codecID, const QSize &resolution) |
AVScore | findSWFormatScores (const AVCodec *codec, AVPixelFormat sourceSWFormat) |
const AVCodec * | findSwEncoder (AVCodecID codecID, AVPixelFormat sourceSWFormat) |
AVRational | adjustFrameRate (const AVRational *supportedRates, qreal requestedRate) |
adjustFrameRate get a rational frame rate be requested qreal rate. If the codec supports fixed frame rate (non-null supportedRates), the function selects the most suitable one, otherwise just makes AVRational from qreal. | |
AVRational | adjustFrameTimeBase (const AVRational *supportedRates, AVRational frameRate) |
adjustFrameTimeBase gets adjusted timebase by a list of supported frame rates and an already adjusted frame rate. | |
QSize | adjustVideoResolution (const AVCodec *codec, QSize requestedResolution) |
Variables | ||
static QAtomicInteger< PlaybackEngineObject::Id > | PersistentId = 0 | |
template<typename T > | ||
constexpr auto | InvalidAvValue = T{} | |
template<> | ||
constexpr auto | InvalidAvValue< AVSampleFormat > = AV_SAMPLE_FMT_NONE | |
template<> | ||
constexpr auto | InvalidAvValue< AVPixelFormat > = AV_PIX_FMT_NONE | |
static const std::initializer_list< AVHWDeviceType > | preferredHardwareAccelerators | |
static constexpr bool | shouldPauseStreams = false | |
constexpr qint64 | VideoFrameTimeBase = 1000000 | |
struct { | ||
const char * QFFmpeg::name | ||
ApplyOptions QFFmpeg::apply | ||
} | videoCodecOptionTable [] | |
struct { | ||
const char * QFFmpeg::name | ||
ApplyOptions QFFmpeg::apply | ||
} | audioCodecOptionTable [] | |
typedef void(* QFFmpeg::ApplyOptions)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) = void (*)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) |
Definition at line 283 of file qffmpegencoderoptions.cpp.
using QFFmpeg::AVBufferUPtr |
Definition at line 227 of file qffmpeg_p.h.
Definition at line 223 of file qffmpeg_p.h.
using QFFmpeg::AVFormatContextUPtr = std::unique_ptr<AVFormatContext, AVDeleter<decltype(&avformat_close_input), &avformat_close_input>> |
Definition at line 37 of file qffmpegmediadataholder_p.h.
using QFFmpeg::AVFrameUPtr = std::unique_ptr<AVFrame, AVDeleter<decltype(&av_frame_free), &av_frame_free>> |
Definition at line 213 of file qffmpeg_p.h.
Definition at line 230 of file qffmpeg_p.h.
Definition at line 29 of file qffmpegioutils_p.h.
using QFFmpeg::AVPacketUPtr |
Definition at line 220 of file qffmpeg_p.h.
using QFFmpeg::ConsumerThreadUPtr = std::unique_ptr<T, ConsumerThread::Deleter> |
Definition at line 97 of file qffmpegthread_p.h.
using QFFmpeg::HWAccelUPtr = std::unique_ptr<HWAccel> |
Definition at line 86 of file qffmpeghwaccel_p.h.
Definition at line 40 of file qffmpeghwaccel_d3d11_p.h.
using QFFmpeg::StreamIndexes = std::array<int, 3> |
Definition at line 31 of file qffmpegplaybackenginedefs_p.h.
using QFFmpeg::SwrContextUPtr = std::unique_ptr<SwrContext, AVDeleter<decltype(&swr_free), &swr_free>> |
Definition at line 234 of file qffmpeg_p.h.
using QFFmpeg::SwsContextUPtr |
Definition at line 236 of file qffmpeg_p.h.
using QFFmpeg::VideoFrameEncoderUPtr = std::unique_ptr<VideoFrameEncoder> |
Definition at line 30 of file qffmpegvideoframeencoder_p.h.
AVPacketSideData * QFFmpeg::addStreamSideData | ( | AVStream * | stream, |
AVPacketSideData | sideData ) |
Definition at line 95 of file qffmpeg.cpp.
uint64_t QFFmpeg::adjustChannelLayout | ( | const uint64_t * | supportedMasks, |
uint64_t | requested ) |
Definition at line 100 of file qffmpegaudioencoderutils.cpp.
AVRational QFFmpeg::adjustFrameRate | ( | const AVRational * | supportedRates, |
qreal | requestedRate ) |
adjustFrameRate get a rational frame rate be requested qreal rate. If the codec supports fixed frame rate (non-null supportedRates), the function selects the most suitable one, otherwise just makes AVRational from qreal.
Definition at line 186 of file qffmpegvideoencoderutils.cpp.
AVRational QFFmpeg::adjustFrameTimeBase | ( | const AVRational * | supportedRates, |
AVRational | frameRate ) |
adjustFrameTimeBase gets adjusted timebase by a list of supported frame rates and an already adjusted frame rate.
Timebase is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented. For fixed-fps content (non-null supportedRates), timebase should be 1/framerate.
For more information, see AVStream::time_base and AVCodecContext::time_base.
The adjusted time base is supposed to be set to stream and codec context.
Definition at line 202 of file qffmpegvideoencoderutils.cpp.
AVSampleFormat QFFmpeg::adjustSampleFormat | ( | const AVSampleFormat * | supportedFormats, |
AVSampleFormat | requested ) |
Definition at line 11 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, and DefaultAVScore.
int QFFmpeg::adjustSampleRate | ( | const int * | supportedRates, |
int | requested ) |
Definition at line 33 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, and DefaultAVScore.
Definition at line 223 of file qffmpegvideoencoderutils.cpp.
void QFFmpeg::applyAudioEncoderOptions | ( | const QMediaEncoderSettings & | settings, |
const QByteArray & | codecName, | ||
AVCodecContext * | codec, | ||
AVDictionary ** | opts ) |
Definition at line 342 of file qffmpegencoderoptions.cpp.
void QFFmpeg::applyExperimentalCodecOptions | ( | const AVCodec * | codec, |
AVDictionary ** | opts ) |
Definition at line 50 of file qffmpeg.cpp.
References isAVCodecExperimental().
void QFFmpeg::applyVideoEncoderOptions | ( | const QMediaEncoderSettings & | settings, |
const QByteArray & | codecName, | ||
AVCodecContext * | codec, | ||
AVDictionary ** | opts ) |
Definition at line 327 of file qffmpegencoderoptions.cpp.
AVHWDeviceContext * QFFmpeg::avFrameDeviceContext | ( | const AVFrame * | frame | ) |
Definition at line 295 of file qffmpeg.cpp.
|
static |
Definition at line 51 of file qffmpegaudioencoderutils.cpp.
Referenced by calculateScoreByChannelsMask().
|
static |
Definition at line 62 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, and calculateScoreByChannelsCount().
|
static |
Definition at line 16 of file qffmpegvideoencoderutils.cpp.
References DefaultAVScore, and NotSuitableAVScore.
|
static |
Definition at line 115 of file qffmpeghwaccel.cpp.
References FFmpegLogsEnabledInThread, and precheckDriver().
Referenced by deviceTypes().
|
static |
Definition at line 101 of file qffmpegmediadataholder.cpp.
void QFFmpeg::connectEncoderToSource | ( | Encoder * | encoder, |
Source * | source ) |
Definition at line 48 of file qffmpegrecordingengineutils_p.h.
AVFrameUPtr QFFmpeg::copyFromHwPool | ( | AVFrameUPtr | frame | ) |
Definition at line 519 of file qffmpeghwaccel.cpp.
AVFrameUPtr QFFmpeg::copyFromHwPoolD3D11 | ( | AVFrameUPtr | src | ) |
Definition at line 349 of file qffmpeghwaccel_d3d11.cpp.
References QT_BEGIN_NAMESPACE::getHwDeviceContext().
SwrContextUPtr QFFmpeg::createResampleContext | ( | const AVAudioFormat & | inputFormat, |
const AVAudioFormat & | outputFormat ) |
Definition at line 136 of file qffmpeg.cpp.
References QFFmpeg::AVAudioFormat::channelLayout, QFFmpeg::AVAudioFormat::sampleFormat, and QFFmpeg::AVAudioFormat::sampleRate.
SwsContextUPtr QFFmpeg::createSwsContext | ( | const QSize & | srcSize, |
AVPixelFormat | srcPixFmt, | ||
const QSize & | dstSize, | ||
AVPixelFormat | dstPixFmt, | ||
int | conversionType = SWS_BICUBIC ) |
Definition at line 308 of file qffmpeg.cpp.
|
inline |
Definition at line 28 of file qffmpegplaybackengine.cpp.
T QFFmpeg::dequeueIfPossible | ( | std::queue< T > & | queue | ) |
Definition at line 33 of file qffmpegrecordingengineutils_p.h.
|
static |
Definition at line 144 of file qffmpeghwaccel.cpp.
References checkHwType(), isHwPixelFormat(), and pixelFormatForHwDevice().
|
static |
Definition at line 187 of file qffmpeghwaccel.cpp.
void QFFmpeg::disconnectEncoderFromSource | ( | EncoderThread * | encoder | ) |
Definition at line 47 of file qffmpegrecordingengineutils.cpp.
References setEncoderInterface(), and QFFmpeg::EncoderThread::source().
Referenced by QFFmpeg::RecordingEngine::finalize().
|
static |
Definition at line 50 of file qffmpegmediadataholder.cpp.
Definition at line 14 of file qffmpegrecordingengineutils.cpp.
|
inline |
Definition at line 64 of file qffmpeg_p.h.
bool QFFmpeg::findAndOpenAVDecoder | ( | AVCodecID | codecId, |
const std::function< AVScore(const AVCodec *)> & | scoresGetter, | ||
const std::function< bool(const AVCodec *)> & | codecOpener ) |
Definition at line 412 of file qffmpegcodecstorage.cpp.
bool QFFmpeg::findAndOpenAVEncoder | ( | AVCodecID | codecId, |
const std::function< AVScore(const AVCodec *)> & | scoresGetter, | ||
const std::function< bool(const AVCodec *)> & | codecOpener ) |
Definition at line 419 of file qffmpegcodecstorage.cpp.
Referenced by QFFmpeg::VideoFrameEncoder::create(), and QFFmpeg::AudioEncoder::init().
const AVCodec * QFFmpeg::findAVDecoder | ( | AVCodecID | codecId, |
const std::optional< PixelOrSampleFormat > & | format = {} ) |
Definition at line 396 of file qffmpegcodecstorage.cpp.
const AVCodec * QFFmpeg::findAVEncoder | ( | AVCodecID | codecId, |
const std::function< AVScore(const AVCodec *)> & | scoresGetter ) |
Definition at line 406 of file qffmpegcodecstorage.cpp.
Referenced by QFFmpeg::AudioEncoder::AudioEncoder(), QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo(), and QFFmpeg::HWAccel::findEncoderWithHwAccel().
const AVCodec * QFFmpeg::findAVEncoder | ( | AVCodecID | codecId, |
const std::optional< PixelOrSampleFormat > & | format = {} ) |
Definition at line 401 of file qffmpegcodecstorage.cpp.
AVPixelFormat QFFmpeg::findAVPixelFormat | ( | const AVCodec * | codec, |
const Predicate & | predicate ) |
Definition at line 277 of file qffmpeg_p.h.
References getCodecPixelFormats().
AVValue QFFmpeg::findAVValue | ( | const AVValue * | fmts, |
const Predicate & | predicate ) |
Definition at line 257 of file qffmpeg_p.h.
References BestAVScore, and NotSuitableAVScore.
auto QFFmpeg::findBestAVValue | ( | const Value * | values, |
const CalculateScore & | calculateScore ) |
Definition at line 295 of file qffmpeg_p.h.
std::pair< const AVCodec *, HWAccelUPtr > QFFmpeg::findCodecWithHwAccel | ( | AVCodecID | id, |
const std::vector< AVHWDeviceType > & | deviceTypes, | ||
CodecFinder | codecFinder, | ||
const std::function< bool(const HWAccel &)> & | hwAccelPredicate ) |
Definition at line 212 of file qffmpeghwaccel.cpp.
const AVCodecHWConfig * QFFmpeg::findHwConfig | ( | const AVCodec * | codec, |
const Predicate & | predicate ) |
Definition at line 266 of file qffmpeg_p.h.
std::pair< const AVCodec *, HWAccelUPtr > QFFmpeg::findHwEncoder | ( | AVCodecID | codecID, |
const QSize & | resolution ) |
Definition at line 154 of file qffmpegvideoencoderutils.cpp.
const AVCodec * QFFmpeg::findSwEncoder | ( | AVCodecID | codecID, |
AVPixelFormat | sourceSWFormat ) |
Definition at line 179 of file qffmpegvideoencoderutils.cpp.
References findSWFormatScores().
AVScore QFFmpeg::findSWFormatScores | ( | const AVCodec * | codec, |
AVPixelFormat | sourceSWFormat ) |
Definition at line 167 of file qffmpegvideoencoderutils.cpp.
References getCodecPixelFormats(), and MinAVScore.
Referenced by QFFmpeg::VideoFrameEncoder::create(), and findSwEncoder().
AVPixelFormat QFFmpeg::findTargetFormat | ( | AVPixelFormat | sourceFormat, |
AVPixelFormat | sourceSWFormat, | ||
const AVCodec * | codec, | ||
const HWAccel * | accel, | ||
const AVPixelFormatSet & | prohibitedFormats = {} ) |
Definition at line 119 of file qffmpegvideoencoderutils.cpp.
References QFFmpeg::HWAccel::constraints(), getCodecPixelFormats(), QFFmpeg::HWAccel::hwFormat(), and isAVFormatSupported().
AVPixelFormat QFFmpeg::findTargetSWFormat | ( | AVPixelFormat | sourceSWFormat, |
const AVCodec * | codec, | ||
const HWAccel & | accel, | ||
const AVPixelFormatSet & | prohibitedFormats = {} ) |
Definition at line 101 of file qffmpegvideoencoderutils.cpp.
References QFFmpeg::HWAccel::constraints(), and getCodecPixelFormats().
|
static |
Definition at line 68 of file qffmpeghwaccel_vaapi.cpp.
Definition at line 139 of file qffmpegvideoencoder.cpp.
QVideoFrameFormat::ColorRange QFFmpeg::fromAvColorRange | ( | AVColorRange | colorRange | ) |
Definition at line 271 of file qffmpeg.cpp.
QVideoFrameFormat::ColorSpace QFFmpeg::fromAvColorSpace | ( | AVColorSpace | colorSpace | ) |
Definition at line 228 of file qffmpeg.cpp.
QVideoFrameFormat::ColorTransfer QFFmpeg::fromAvColorTransfer | ( | AVColorTransferCharacteristic | colorTrc | ) |
Definition at line 176 of file qffmpeg.cpp.
|
inline |
Definition at line 91 of file qffmpeg_p.h.
|
inline |
Definition at line 81 of file qffmpeg_p.h.
|
inline |
Definition at line 147 of file qffmpeg_p.h.
Referenced by QFFmpeg::AudioEncoder::init().
|
inline |
Definition at line 105 of file qffmpeg_p.h.
|
inline |
Definition at line 165 of file qffmpeg_p.h.
|
inline |
Definition at line 118 of file qffmpeg_p.h.
Referenced by findAVPixelFormat(), findSWFormatScores(), findTargetFormat(), findTargetSWFormat(), and getFormat().
|
inline |
Definition at line 127 of file qffmpeg_p.h.
Referenced by QFFmpeg::AudioEncoder::init(), and isAVFormatSupported().
|
inline |
Definition at line 136 of file qffmpeg_p.h.
Referenced by QFFmpeg::AudioEncoder::init().
AVPixelFormat QFFmpeg::getFormat | ( | AVCodecContext * | codecContext, |
const AVPixelFormat * | suggestedFormats ) |
Definition at line 285 of file qffmpeghwaccel.cpp.
References DefaultAVScore, getCodecPixelFormats(), isHwPixelFormat(), isNoConversionFormat(), and NotSuitableAVScore.
enum AVPixelFormat QFFmpeg::getFormat | ( | struct AVCodecContext * | s, |
const enum AVPixelFormat * | fmt ) |
Definition at line 251 of file qffmpeg_p.h.
|
static |
Definition at line 142 of file qffmpegmediadataholder.cpp.
bool QFFmpeg::isAVCodecExperimental | ( | const AVCodec * | codec | ) |
Definition at line 45 of file qffmpeg.cpp.
Referenced by applyExperimentalCodecOptions().
bool QFFmpeg::isAVFormatSupported | ( | const AVCodec * | codec, |
PixelOrSampleFormat | format ) |
Definition at line 24 of file qffmpeg.cpp.
References getCodecSampleFormats().
Referenced by findTargetFormat().
|
static |
Definition at line 90 of file qffmpegvideoencoderutils.cpp.
bool QFFmpeg::isHwPixelFormat | ( | AVPixelFormat | format | ) |
Definition at line 39 of file qffmpeg.cpp.
Referenced by QFFmpeg::VideoFrameEncoder::create(), deviceTypes(), getFormat(), and isSwPixelFormat().
|
static |
Definition at line 245 of file qffmpeghwaccel.cpp.
Referenced by getFormat().
|
static |
Definition at line 33 of file qffmpegdemuxer.cpp.
References QFFmpeg::Packet::avPacket().
Referenced by QFFmpeg::Demuxer::doNextStep().
|
inline |
Definition at line 315 of file qffmpeg_p.h.
References isHwPixelFormat().
Referenced by QFFmpeg::VideoFrameEncoder::create().
|
static |
Definition at line 61 of file qffmpeghwaccel.cpp.
void QFFmpeg::logGetCodecConfigError | ( | const AVCodec * | codec, |
AVCodecConfig | config, | ||
int | error ) |
Definition at line 342 of file qffmpeg.cpp.
|
inline |
Definition at line 215 of file qffmpeg_p.h.
|
static |
Definition at line 36 of file qffmpeghwaccel_videotoolbox.mm.
Definition at line 39 of file qffmpeg_p.h.
Definition at line 44 of file qffmpeg_p.h.
|
inline |
Definition at line 59 of file qffmpegavaudioformat_p.h.
References operator==().
QDebug QFFmpeg::operator<< | ( | QDebug | dbg, |
const AVAudioFormat & | format ) |
Definition at line 78 of file qffmpegavaudioformat.cpp.
References QFFmpeg::AVAudioFormat::channelLayout, QFFmpeg::AVAudioFormat::sampleFormat, and QFFmpeg::AVAudioFormat::sampleRate.
bool QFFmpeg::operator== | ( | const AVAudioFormat & | lhs, |
const AVAudioFormat & | rhs ) |
Definition at line 67 of file qffmpegavaudioformat.cpp.
References QFFmpeg::AVAudioFormat::channelLayout, operator==(), QFFmpeg::AVAudioFormat::sampleFormat, and QFFmpeg::AVAudioFormat::sampleRate.
Referenced by operator!=().
Definition at line 27 of file qffmpegdemuxer.cpp.
References QFFmpeg::Packet::avPacket(), QFFmpeg::Packet::loopOffset(), QFFmpeg::LoopOffset::pos, and streamTimeToUs().
Referenced by QFFmpeg::Demuxer::doNextStep(), and QFFmpeg::Demuxer::onPacketProcessed().
AVPixelFormat QFFmpeg::pixelFormatForHwDevice | ( | AVHWDeviceType | deviceType | ) |
Definition at line 59 of file qffmpeg.cpp.
Referenced by deviceTypes(), and QFFmpeg::HWAccel::hwFormat().
|
static |
Definition at line 77 of file qffmpeghwaccel.cpp.
Referenced by checkHwType().
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcDemuxer | , |
"qt.multimedia.ffmpeg.demuxer" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcEncodingFormatContext | , |
"qt.multimedia.ffmpeg.encodingformatcontext" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcFFmpegAudioEncoder | , |
"qt.multimedia.ffmpeg.audioencoder" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcFFmpegMuxer | , |
"qt.multimedia.ffmpeg.muxer" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcFFmpegVideoEncoder | , |
"qt.multimedia.ffmpeg.videoencoder" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcPlaybackEngine | , |
"qt.multimedia.ffmpeg.playbackengine" | ) |
QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLcRenderer | , |
"qt.multimedia.ffmpeg.renderer" | ) |
int QFFmpeg::readQIODevice | ( | void * | opaque, |
uint8_t * | buf, | ||
int | buf_size ) |
Definition at line 12 of file qffmpegioutils.cpp.
|
static |
Definition at line 135 of file qffmpeghwaccel_videotoolbox.mm.
int64_t QFFmpeg::seekQIODevice | ( | void * | opaque, |
int64_t | offset, | ||
int | whence ) |
Definition at line 30 of file qffmpegioutils.cpp.
Referenced by QFFmpeg::EncodingFormatContext::openAVIO().
|
inline |
Definition at line 71 of file qffmpeg_p.h.
void QFFmpeg::setEncoderInterface | ( | QObject * | source, |
QMediaInputEncoderInterface * | encoderInterface ) |
Definition at line 22 of file qffmpegrecordingengineutils.cpp.
Referenced by disconnectEncoderFromSource().
void QFFmpeg::setEncoderUpdateConnection | ( | QObject * | source, |
EncoderThread * | encoder ) |
Definition at line 38 of file qffmpegrecordingengineutils.cpp.
|
static |
Definition at line 26 of file qffmpegmediadataholder.cpp.
const AVPacketSideData * QFFmpeg::streamSideData | ( | const AVStream * | stream, |
AVPacketSideDataType | type ) |
Definition at line 121 of file qffmpeg.cpp.
Referenced by streamTransformation().
Definition at line 19 of file qffmpegdemuxer.cpp.
Referenced by QFFmpeg::Demuxer::doNextStep(), QFFmpeg::Demuxer::onPacketProcessed(), and packetEndPos().
|
static |
Definition at line 80 of file qffmpegmediadataholder.cpp.
References streamSideData().
|
static |
Definition at line 81 of file qffmpegvideoencoderutils.cpp.
Definition at line 49 of file qffmpeg_p.h.
Definition at line 54 of file qffmpeg_p.h.
AVColorRange QFFmpeg::toAvColorRange | ( | QVideoFrameFormat::ColorRange | colorRange | ) |
Definition at line 283 of file qffmpeg.cpp.
AVColorSpace QFFmpeg::toAvColorSpace | ( | QVideoFrameFormat::ColorSpace | colorSpace | ) |
Definition at line 255 of file qffmpeg.cpp.
AVColorTransferCharacteristic QFFmpeg::toAvColorTransfer | ( | QVideoFrameFormat::ColorTransfer | colorTrc | ) |
Definition at line 206 of file qffmpeg.cpp.
|
inline |
Definition at line 59 of file qffmpeg_p.h.
int QFFmpeg::writeQIODevice | ( | void * | opaque, |
AvioWriteBufferType | buf, | ||
int | buf_size ) |
Definition at line 22 of file qffmpegioutils.cpp.
ApplyOptions QFFmpeg::apply |
Definition at line 287 of file qffmpegencoderoptions.cpp.
const struct { ... } QFFmpeg::audioCodecOptionTable |
|
inlineconstexpr |
Definition at line 240 of file qffmpeg_p.h.
|
inlineconstexpr |
Definition at line 246 of file qffmpeg_p.h.
|
inlineconstexpr |
Definition at line 243 of file qffmpeg_p.h.
const char* QFFmpeg::name |
Definition at line 286 of file qffmpegencoderoptions.cpp.
|
static |
Definition at line 13 of file qffmpegplaybackengineobject.cpp.
|
static |
Definition at line 43 of file qffmpeghwaccel.cpp.
|
staticconstexpr |
Definition at line 41 of file qffmpegplaybackengine.cpp.
const struct { ... } QFFmpeg::videoCodecOptionTable |
|
constexpr |
Definition at line 28 of file qffmpegrecordingengineutils_p.h.