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>.
|
Classes | |
class | AudioEncoder |
class | AudioRenderer |
class | AudioSourceIO |
struct | AVAudioFormat |
struct | AVDeleter |
struct | AVDictionaryHolder |
class | CancelToken |
class | Codec |
class | ConsumerThread |
FFmpeg thread that is used to implement a consumer pattern. More... | |
class | D3D11TextureSet |
class | Demuxer |
class | EncoderThread |
class | EncodingFormatContext |
class | EncodingInitializer |
struct | Frame |
class | HWAccel |
struct | ICancelToken |
struct | LoopOffset |
class | MediaCodecTextureConverter |
class | MediaCodecTextureSet |
class | MediaDataHolder |
class | Muxer |
struct | Packet |
class | PlaybackEngine |
class | PlaybackEngineObject |
struct | PositionWithOffset |
struct | QVideoFrameHolder |
class | RecordingEngine |
class | Renderer |
class | StreamDecoder |
class | SubtitleRenderer |
class | TextureConverter |
class | TextureConverterBackend |
class | TextureSet |
class | TimeController |
class | VAAPITextureSet |
class | VideoEncoder |
class | VideoFrameEncoder |
class | VideoRenderer |
Typedefs | |
using | AVFormatContextUPtr = std::unique_ptr<AVFormatContext, AVDeleter<decltype(&avformat_close_input), &avformat_close_input>> |
using | StreamIndexes = std::array<int, 3> |
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 | PixelOrSampleFormat = int |
using | AVScore = int |
using | AvioWriteBufferType |
using | ApplyOptions = void (*)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) |
Functions | |
static | Q_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 | Q_LOGGING_CATEGORY (qLcRenderer, "qt.multimedia.ffmpeg.renderer") |
const AVCodec * | findAVDecoder (AVCodecID codecId, const std::optional< AVHWDeviceType > &deviceType, const std::optional< PixelOrSampleFormat > &format) |
const AVCodec * | findAVEncoder (AVCodecID codecId, const std::optional< AVHWDeviceType > &deviceType, const std::optional< PixelOrSampleFormat > &format) |
const AVCodec * | findAVEncoder (AVCodecID codecId, const std::function< AVScore(const AVCodec *)> &scoresGetter) |
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) |
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) |
AVFrameUPtr | makeAVFrame () |
template<typename Format > | |
bool | hasAVFormat (const Format *fmts, Format format) |
template<typename Format , typename Predicate > | |
Format | findAVFormat (const Format *fmts, const Predicate &predicate) |
template<typename Value , typename CalculateScore > | |
auto | findBestAVValue (const Value *values, const CalculateScore &calculateScore, Value invalidValue={}) |
template<typename Format , typename CalculateScore > | |
std::pair< Format, AVScore > | findBestAVFormat (const Format *fmts, const CalculateScore &calculateScore) |
bool | isSwPixelFormat (AVPixelFormat format) |
bool | operator== (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
bool | operator!= (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
static | Q_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 *, std::unique_ptr< HWAccel > > | 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) |
enum AVPixelFormat | getFormat (struct AVCodecContext *s, const enum AVPixelFormat *fmt) |
static const quint32 * | fourccFromPixelFormat (const QVideoFrameFormat::PixelFormat format) |
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) |
static | Q_LOGGING_CATEGORY (qLcPlaybackEngine, "qt.multimedia.ffmpeg.playbackengine") |
template<typename Array > | |
Array | defaultObjectsArray () |
static | Q_LOGGING_CATEGORY (qLcFFmpegAudioEncoder, "qt.multimedia.ffmpeg.audioencoder") |
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) |
AVChannelLayout | adjustChannelLayout (const AVChannelLayout *supportedLayouts, const AVChannelLayout &requested) |
void | applyVideoEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts) |
void | applyAudioEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts) |
static | Q_LOGGING_CATEGORY (qLcFFmpegMuxer, "qt.multimedia.ffmpeg.muxer") |
template<typename T > | |
T | dequeueIfPossible (std::queue< T > &queue) |
static | Q_LOGGING_CATEGORY (qLcFFmpegVideoEncoder, "qt.multimedia.ffmpeg.videoencoder") |
static void | freeQVideoFrame (void *opaque, uint8_t *) |
static AVScore | calculateTargetSwFormatScore (const AVPixFmtDescriptor *sourceSwFormatDesc, AVPixelFormat fmt) |
static auto | targetSwFormatScoreCalculator (AVPixelFormat sourceFormat) |
static bool | isHwFormatAcceptedByCodec (AVPixelFormat pixFormat) |
AVPixelFormat | findTargetSWFormat (AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel &accel) |
AVPixelFormat | findTargetFormat (AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel *accel) |
std::pair< const AVCodec *, std::unique_ptr< HWAccel > > | findHwEncoder (AVCodecID codecID, const QSize &resolution) |
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 | |
constexpr AVScore | BestAVScore = std::numeric_limits<AVScore>::max() | |
constexpr AVScore | DefaultAVScore = 0 | |
constexpr AVScore | NotSuitableAVScore = std::numeric_limits<AVScore>::min() | |
constexpr AVScore | MinAVScore = NotSuitableAVScore + 1 | |
static const std::initializer_list< AVHWDeviceType > | preferredHardwareAccelerators | |
static constexpr bool | shouldPauseStreams = false | |
struct { | ||
const char * QFFmpeg::name | ||
ApplyOptions QFFmpeg::apply | ||
} | videoCodecOptionTable [] | |
struct { | ||
const char * QFFmpeg::name | ||
ApplyOptions QFFmpeg::apply | ||
} | audioCodecOptionTable [] | |
using QFFmpeg::ApplyOptions = void (*)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) |
Definition at line 283 of file qffmpegencoderoptions.cpp.
using QFFmpeg::AVBufferUPtr |
Definition at line 148 of file qffmpeg_p.h.
Definition at line 144 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 134 of file qffmpeg_p.h.
Definition at line 151 of file qffmpeg_p.h.
Definition at line 29 of file qffmpegioutils_p.h.
using QFFmpeg::AVPacketUPtr |
Definition at line 141 of file qffmpeg_p.h.
using QFFmpeg::AVScore = int |
Definition at line 158 of file qffmpeg_p.h.
using QFFmpeg::PixelOrSampleFormat = int |
Definition at line 157 of file qffmpeg_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 155 of file qffmpeg_p.h.
AVPacketSideData * QFFmpeg::addStreamSideData | ( | AVStream * | stream, |
AVPacketSideData | sideData ) |
Definition at line 512 of file qffmpeg.cpp.
AVChannelLayout QFFmpeg::adjustChannelLayout | ( | const AVChannelLayout * | supportedLayouts, |
const AVChannelLayout & | requested ) |
Definition at line 68 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, calculateScoreByChannelsCount(), calculateScoreByChannelsMask(), findBestAVValue(), layout, and NotSuitableAVScore.
Referenced by QFFmpeg::AudioEncoder::AudioEncoder().
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 160 of file qffmpegvideoencoderutils.cpp.
References findBestAVValue(), qMax(), qMin(), and qRealToFraction().
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 176 of file qffmpegvideoencoderutils.cpp.
AVSampleFormat QFFmpeg::adjustSampleFormat | ( | const AVSampleFormat * | supportedFormats, |
AVSampleFormat | requested ) |
Definition at line 11 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, and findBestAVFormat().
Referenced by QFFmpeg::AudioEncoder::AudioEncoder().
int QFFmpeg::adjustSampleRate | ( | const int * | supportedRates, |
int | requested ) |
Definition at line 23 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, and findBestAVValue().
Referenced by QFFmpeg::AudioEncoder::AudioEncoder().
Definition at line 197 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.
References audioCodecOptionTable, QMediaRecorder::AverageBitRateEncoding, codec, QMediaRecorder::ConstantBitRateEncoding, and settings.
Referenced by QFFmpeg::AudioEncoder::open().
void QFFmpeg::applyExperimentalCodecOptions | ( | const AVCodec * | codec, |
AVDictionary ** | opts ) |
Definition at line 467 of file qffmpeg.cpp.
References codec, isAVCodecExperimental(), and qCWarning.
Referenced by QFFmpeg::Codec::create(), QFFmpeg::AudioEncoder::open(), and QFFmpeg::VideoFrameEncoder::open().
void QFFmpeg::applyVideoEncoderOptions | ( | const QMediaEncoderSettings & | settings, |
const QByteArray & | codecName, | ||
AVCodecContext * | codec, | ||
AVDictionary ** | opts ) |
Definition at line 327 of file qffmpegencoderoptions.cpp.
References codec, settings, and videoCodecOptionTable.
Referenced by QFFmpeg::VideoFrameEncoder::open().
|
static |
Definition at line 35 of file qffmpegaudioencoderutils.cpp.
Referenced by adjustChannelLayout(), and calculateScoreByChannelsMask().
|
static |
Definition at line 44 of file qffmpegaudioencoderutils.cpp.
References BestAVScore, calculateScoreByChannelsCount(), and qPopulationCount().
Referenced by adjustChannelLayout().
|
static |
Definition at line 15 of file qffmpegvideoencoderutils.cpp.
References DefaultAVScore, fmt, and NotSuitableAVScore.
Referenced by targetSwFormatScoreCalculator().
|
static |
Definition at line 114 of file qffmpeghwaccel.cpp.
References FFmpegLogsEnabledInThread, loadHWContext(), precheckDriver(), qCDebug, QT_FFMPEG_HAS_D3D12VA, and qWarning.
Referenced by deviceTypes().
SwrContextUPtr QFFmpeg::createResampleContext | ( | const AVAudioFormat & | inputFormat, |
const AVAudioFormat & | outputFormat ) |
Definition at line 553 of file qffmpeg.cpp.
References QFFmpeg::AVAudioFormat::channelLayout, QFFmpeg::AVAudioFormat::sampleFormat, and QFFmpeg::AVAudioFormat::sampleRate.
Referenced by QFFmpeg::AudioEncoder::open().
|
inline |
Definition at line 27 of file qffmpegplaybackengine.cpp.
T QFFmpeg::dequeueIfPossible | ( | std::queue< T > & | queue | ) |
Definition at line 42 of file qffmpegrecordingengine_p.h.
References queue.
|
static |
Definition at line 143 of file qffmpeghwaccel.cpp.
References QSet< T >::begin(), checkHwType(), codec, QSet< T >::end(), isHwPixelFormat(), it, pixelFormatForHwDevice(), preferredHardwareAccelerators, qCDebug, QTimer::start(), and timer.
Referenced by QFFmpeg::HWAccel::decodingDeviceTypes(), deviceTypes(), QFFmpeg::HWAccel::encodingDeviceTypes(), and findCodecWithHwAccel().
|
static |
Definition at line 185 of file qffmpeghwaccel.cpp.
References deviceType(), deviceTypes(), QString::fromUtf8(), qgetenv(), and qWarning.
|
inline |
Definition at line 64 of file qffmpeg_p.h.
References QString::fromLocal8Bit().
Referenced by QFFmpeg::Codec::create(), QFFmpeg::HWAccel::createFramesContext(), QFFmpeg::VideoFrameEncoder::open(), QFFmpeg::VideoEncoder::processOne(), QFFmpeg::VideoFrameEncoder::retrievePacket(), and QFFmpeg::VideoFrameEncoder::sendFrame().
const AVCodec * QFFmpeg::findAVDecoder | ( | AVCodecID | codecId, |
const std::optional< AVHWDeviceType > & | deviceType, | ||
const std::optional< PixelOrSampleFormat > & | format ) |
Definition at line 427 of file qffmpeg.cpp.
References codecId(), and deviceType().
Referenced by QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo(), QFFmpeg::Codec::create(), and QFFmpeg::HWAccel::findDecoderWithHwAccel().
const AVCodec * QFFmpeg::findAVEncoder | ( | AVCodecID | codecId, |
const std::function< AVScore(const AVCodec *)> & | scoresGetter ) |
Definition at line 439 of file qffmpeg.cpp.
References codecId().
const AVCodec * QFFmpeg::findAVEncoder | ( | AVCodecID | codecId, |
const std::optional< AVHWDeviceType > & | deviceType, | ||
const std::optional< PixelOrSampleFormat > & | format ) |
Definition at line 433 of file qffmpeg.cpp.
References codecId(), and deviceType().
Referenced by QFFmpeg::AudioEncoder::AudioEncoder(), QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo(), QFFmpeg::HWAccel::findEncoderWithHwAccel(), and findSwEncoder().
Format QFFmpeg::findAVFormat | ( | const Format * | fmts, |
const Predicate & | predicate ) |
Definition at line 184 of file qffmpeg_p.h.
References BestAVScore, findBestAVFormat(), fmt, NotSuitableAVScore, and predicate.
Referenced by getFormat(), and hasAVFormat().
std::pair< Format, AVScore > QFFmpeg::findBestAVFormat | ( | const Format * | fmts, |
const CalculateScore & | calculateScore ) |
Definition at line 210 of file qffmpeg_p.h.
References findBestAVValue().
Referenced by adjustSampleFormat(), findAVFormat(), findSwEncoder(), findTargetFormat(), findTargetSWFormat(), and getFormat().
auto QFFmpeg::findBestAVValue | ( | const Value * | values, |
const CalculateScore & | calculateScore, | ||
Value | invalidValue = {} ) |
Definition at line 193 of file qffmpeg_p.h.
Referenced by adjustChannelLayout(), adjustFrameRate(), adjustSampleRate(), and findBestAVFormat().
std::pair< const AVCodec *, std::unique_ptr< HWAccel > > QFFmpeg::findCodecWithHwAccel | ( | AVCodecID | id, |
const std::vector< AVHWDeviceType > & | deviceTypes, | ||
CodecFinder | codecFinder, | ||
const std::function< bool(const HWAccel &)> & | hwAccelPredicate ) |
Definition at line 210 of file qffmpeghwaccel.cpp.
References codec, QFFmpeg::HWAccel::create(), deviceTypes(), and qCDebug.
Referenced by QFFmpeg::HWAccel::findDecoderWithHwAccel(), and QFFmpeg::HWAccel::findEncoderWithHwAccel().
std::pair< const AVCodec *, std::unique_ptr< HWAccel > > QFFmpeg::findHwEncoder | ( | AVCodecID | codecID, |
const QSize & | resolution ) |
Definition at line 126 of file qffmpegvideoencoderutils.cpp.
References QFFmpeg::HWAccel::findEncoderWithHwAccel(), QSize::height(), Q_ASSERT, and QSize::width().
const AVCodec * QFFmpeg::findSwEncoder | ( | AVCodecID | codecID, |
AVPixelFormat | sourceSWFormat ) |
Definition at line 147 of file qffmpegvideoencoderutils.cpp.
References codec, findAVEncoder(), findBestAVFormat(), MinAVScore, and targetSwFormatScoreCalculator().
AVPixelFormat QFFmpeg::findTargetFormat | ( | AVPixelFormat | sourceFormat, |
AVPixelFormat | sourceSWFormat, | ||
const AVCodec * | codec, | ||
const HWAccel * | accel ) |
Definition at line 95 of file qffmpegvideoencoderutils.cpp.
References codec, QFFmpeg::HWAccel::constraints(), findBestAVFormat(), findTargetSWFormat(), hasAVFormat(), QFFmpeg::HWAccel::hwFormat(), isHwFormatAcceptedByCodec(), Q_UNUSED, qWarning, and targetSwFormatScoreCalculator().
AVPixelFormat QFFmpeg::findTargetSWFormat | ( | AVPixelFormat | sourceSWFormat, |
const AVCodec * | codec, | ||
const HWAccel & | accel ) |
Definition at line 78 of file qffmpegvideoencoderutils.cpp.
References codec, QFFmpeg::HWAccel::constraints(), findBestAVFormat(), and targetSwFormatScoreCalculator().
Referenced by findTargetFormat().
|
static |
Definition at line 68 of file qffmpeghwaccel_vaapi.cpp.
References DRM_FORMAT_ABGR8888, DRM_FORMAT_GR1616, DRM_FORMAT_GR88, DRM_FORMAT_R16, DRM_FORMAT_R8, DRM_FORMAT_RG1616, DRM_FORMAT_RG88, DRM_FORMAT_RGBA8888, QVideoFrameFormat::Format_ABGR8888, QVideoFrameFormat::Format_ARGB8888, QVideoFrameFormat::Format_ARGB8888_Premultiplied, QVideoFrameFormat::Format_AYUV, QVideoFrameFormat::Format_AYUV_Premultiplied, QVideoFrameFormat::Format_BGRA8888, QVideoFrameFormat::Format_BGRA8888_Premultiplied, QVideoFrameFormat::Format_BGRX8888, QVideoFrameFormat::Format_IMC1, QVideoFrameFormat::Format_IMC2, QVideoFrameFormat::Format_IMC3, QVideoFrameFormat::Format_IMC4, QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_Jpeg, QVideoFrameFormat::Format_NV12, QVideoFrameFormat::Format_NV21, QVideoFrameFormat::Format_P010, QVideoFrameFormat::Format_P016, QVideoFrameFormat::Format_RGBA8888, QVideoFrameFormat::Format_RGBX8888, QVideoFrameFormat::Format_SamplerExternalOES, QVideoFrameFormat::Format_SamplerRect, QVideoFrameFormat::Format_UYVY, QVideoFrameFormat::Format_XBGR8888, QVideoFrameFormat::Format_XRGB8888, QVideoFrameFormat::Format_Y16, QVideoFrameFormat::Format_Y8, QVideoFrameFormat::Format_YUV420P, QVideoFrameFormat::Format_YUV420P10, QVideoFrameFormat::Format_YUV422P, QVideoFrameFormat::Format_YUYV, and QVideoFrameFormat::Format_YV12.
Definition at line 119 of file qffmpegvideoencoder.cpp.
Referenced by QFFmpeg::VideoEncoder::processOne().
QVideoFrameFormat::ColorTransfer QFFmpeg::fromAvColorTransfer | ( | AVColorTransferCharacteristic | colorTrc | ) |
Definition at line 590 of file qffmpeg.cpp.
References QVideoFrameFormat::ColorTransfer_BT601, QVideoFrameFormat::ColorTransfer_BT709, QVideoFrameFormat::ColorTransfer_Gamma22, QVideoFrameFormat::ColorTransfer_Gamma28, QVideoFrameFormat::ColorTransfer_Linear, QVideoFrameFormat::ColorTransfer_ST2084, QVideoFrameFormat::ColorTransfer_STD_B67, and QVideoFrameFormat::ColorTransfer_Unknown.
Referenced by QFFmpegVideoBuffer::colorTransfer().
|
inline |
Definition at line 91 of file qffmpeg_p.h.
References frame, and Q_UNUSED.
Referenced by QFFmpeg::Frame::Data::Data().
|
inline |
Definition at line 81 of file qffmpeg_p.h.
References frame.
Referenced by QFFmpeg::VideoFrameEncoder::sendFrame().
AVPixelFormat QFFmpeg::getFormat | ( | AVCodecContext * | codecContext, |
const AVPixelFormat * | suggestedFormats ) |
Definition at line 283 of file qffmpeghwaccel.cpp.
References DefaultAVScore, findAVFormat(), findBestAVFormat(), i, isAVFormatSupported(), isHwPixelFormat(), isNoConversionFormat(), NotSuitableAVScore, and qCDebug.
Referenced by QFFmpeg::Codec::create().
enum AVPixelFormat QFFmpeg::getFormat | ( | struct AVCodecContext * | s, |
const enum AVPixelFormat * | fmt ) |
Definition at line 178 of file qffmpeg_p.h.
References findAVFormat().
Referenced by findTargetFormat(), and isAVFormatSupported().
bool QFFmpeg::isAVCodecExperimental | ( | const AVCodec * | codec | ) |
Definition at line 462 of file qffmpeg.cpp.
References codec.
Referenced by applyExperimentalCodecOptions().
bool QFFmpeg::isAVFormatSupported | ( | const AVCodec * | codec, |
PixelOrSampleFormat | format ) |
Definition at line 445 of file qffmpeg.cpp.
References codec, and hasAVFormat().
Referenced by getFormat().
|
static |
Definition at line 67 of file qffmpegvideoencoderutils.cpp.
Referenced by findTargetFormat().
bool QFFmpeg::isHwPixelFormat | ( | AVPixelFormat | format | ) |
Definition at line 456 of file qffmpeg.cpp.
Referenced by QFFmpeg::VideoFrameEncoder::create(), deviceTypes(), getFormat(), and isSwPixelFormat().
|
static |
Definition at line 243 of file qffmpeghwaccel.cpp.
References QFFmpegVideoBuffer::toQtPixelFormat().
Referenced by getFormat().
|
inline |
Definition at line 220 of file qffmpeg_p.h.
References isHwPixelFormat().
Referenced by QFFmpeg::VideoFrameEncoder::create().
|
static |
Definition at line 60 of file qffmpeghwaccel.cpp.
Referenced by checkHwType(), and QFFmpeg::HWAccel::create().
|
inline |
Definition at line 136 of file qffmpeg_p.h.
Referenced by allocHWFrame(), QAVFSampleBufferDelegate::captureOutput:didOutputSampleBuffer:fromConnection:, QFFmpegVideoBuffer::convertSWFrame(), QAndroidCamera::frameAvailable(), QFFmpegVideoBuffer::map(), QFFmpeg::AudioEncoder::processOne(), QFFmpeg::VideoEncoder::processOne(), and QFFmpeg::VideoFrameEncoder::sendFrame().
Definition at line 39 of file qffmpeg_p.h.
Referenced by QFFmpeg::Frame::Data::Data(), QFFmpegVideoBuffer::maxNits(), streamTimeToUs(), timeStampMs(), and timeStampUs().
Definition at line 44 of file qffmpeg_p.h.
|
inline |
Definition at line 59 of file qffmpegavaudioformat_p.h.
bool QFFmpeg::operator== | ( | const AVAudioFormat & | lhs, |
const AVAudioFormat & | rhs ) |
Definition at line 65 of file qffmpegavaudioformat.cpp.
References QFFmpeg::AVAudioFormat::channelLayout, QFFmpeg::AVAudioFormat::sampleFormat, and QFFmpeg::AVAudioFormat::sampleRate.
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 476 of file qffmpeg.cpp.
References deviceType().
Referenced by deviceTypes(), and QFFmpeg::HWAccel::hwFormat().
|
static |
Definition at line 76 of file qffmpeghwaccel.cpp.
References QFile::exists(), QLibrary::load(), Q_UNUSED, and QLibrary::unload().
Referenced by checkHwType().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int QFFmpeg::readQIODevice | ( | void * | opaque, |
uint8_t * | buf, | ||
int | buf_size ) |
Definition at line 12 of file qffmpegioutils.cpp.
References Q_ASSERT.
int64_t QFFmpeg::seekQIODevice | ( | void * | opaque, |
int64_t | offset, | ||
int | whence ) |
Definition at line 30 of file qffmpegioutils.cpp.
References QIODevice::isSequential(), QIODevice::pos(), Q_ASSERT, QIODevice::seek(), and QIODevice::size().
Referenced by QFFmpeg::EncodingFormatContext::openAVIO().
|
inline |
Definition at line 71 of file qffmpeg_p.h.
References frame, and Q_UNUSED.
Referenced by QFFmpeg::AudioEncoder::processOne(), QFFmpeg::VideoEncoder::processOne(), and QFFmpeg::VideoFrameEncoder::sendFrame().
const AVPacketSideData * QFFmpeg::streamSideData | ( | const AVStream * | stream, |
AVPacketSideDataType | type ) |
Definition at line 538 of file qffmpeg.cpp.
References item, nullptr, Q_ASSERT, and QGraphicsItem::type().
Definition at line 19 of file qffmpegdemuxer.cpp.
References mul(), Q_ASSERT, and time.
Referenced by QFFmpeg::Demuxer::doNextStep(), QFFmpeg::Demuxer::onPacketProcessed(), and packetEndPos().
|
static |
Definition at line 61 of file qffmpegvideoencoderutils.cpp.
References calculateTargetSwFormatScore(), and fmt.
Referenced by findSwEncoder(), findTargetFormat(), and findTargetSWFormat().
Definition at line 49 of file qffmpeg_p.h.
Referenced by QFFmpeg::VideoFrameEncoder::retrievePacket(), and QFFmpeg::Codec::toMs().
Definition at line 54 of file qffmpeg_p.h.
Referenced by QFFmpeg::Codec::toUs().
|
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.
References Q_ASSERT.
Referenced by QFFmpeg::EncodingFormatContext::openAVIO().
ApplyOptions QFFmpeg::apply |
Definition at line 287 of file qffmpegencoderoptions.cpp.
const struct { ... } QFFmpeg::audioCodecOptionTable[] |
Referenced by applyAudioEncoderOptions().
Definition at line 159 of file qffmpeg_p.h.
Referenced by adjustChannelLayout(), adjustSampleFormat(), adjustSampleRate(), calculateScoreByChannelsMask(), and findAVFormat().
|
constexpr |
Definition at line 160 of file qffmpeg_p.h.
Referenced by calculateTargetSwFormatScore(), and getFormat().
|
constexpr |
Definition at line 162 of file qffmpeg_p.h.
Referenced by findSwEncoder().
const char* QFFmpeg::name |
Definition at line 286 of file qffmpegencoderoptions.cpp.
Definition at line 161 of file qffmpeg_p.h.
Referenced by adjustChannelLayout(), calculateTargetSwFormatScore(), findAVFormat(), and getFormat().
|
static |
Definition at line 13 of file qffmpegplaybackengineobject.cpp.
|
static |
|
staticconstexpr |
Definition at line 40 of file qffmpegplaybackengine.cpp.
const struct { ... } QFFmpeg::videoCodecOptionTable[] |
Referenced by applyVideoEncoderOptions().