![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Enumerations | |
| enum class | CodecRole : uint8_t { Encoders , Decoders } |
| enum class | AVError : int { Success = 0 } |
| enum class | AVCodecCapabilities : uint64_t |
| enum class | AVPixelFormatFlags : uint64_t |
| enum class | AVHwConfigMethods : uint64_t |
| enum class | AVScore : int { BestAVScore = std::numeric_limits<int>::max() , DefaultAVScore = 0 , NotSuitableAVScore = std::numeric_limits<int>::min() , MinAVScore = std::numeric_limits<int>::min() + 1 } |
| enum class | DRMFormat |
| enum class | DRMFormat |
Functions | |
| Q_STATIC_LOGGING_CATEGORY (qLCAndroidVideoDevices, "qt.multimedia.ffmpeg.android.videoDevices") | |
| QCameraFormat | createCameraFormat (int width, int height, int fpsMin, int fpsMax) |
| std::unique_ptr< QPlatformCamera > | makeQAvfCamera (QCamera &parent) |
| std::unique_ptr< QPlatformImageCapture > | makeQAvfImageCapture (QImageCapture &parent) |
| q23::expected< QAVFHelpers::QSharedCVPixelBuffer, QString > | deepCopyCvPixelBuffer (CVPixelBufferRef source) |
| q23::expected< QVideoFrame, QString > | qVideoFrameFromCvPixelBuffer (const QFFmpeg::HWAccel &hwAccel, std::chrono::microseconds presentationTimeStamp, const QAVFHelpers::QSharedCVPixelBuffer &imageBuffer, QVideoFrameFormat format) |
| static MTLPixelFormat | rhiTextureFormatToMetalFormat (QRhiTexture::Format f) |
| static void | handleFrameOutput (QMacScreenCaptureStreamOutput &scStreamOutput, CMSampleBufferRef sampleBufferRef) |
| static q23::expected< FrameInfo, QString > | readFrameInfo (CMSampleBufferRef sampleBuffer) |
| static q23::expected< QVideoFrame, QString > | createQVideoFrame (QMacScreenCaptureStreamOutput &scStreamOutput, CMSampleBufferRef sampleBufferRef) |
| static void | configureStreamDelegate (QMacScreenCaptureStreamDelegate &streamDelegate, QMacScreenCaptureKit::StreamId streamId, const QMacScreenCaptureKit &macScreenCaptureKit) |
| static q23::expected< AVFScopedPointer< QMacScreenCaptureStreamOutput >, QString > | createStreamOutput (QMacScreenCaptureKit &macScreenCaptureKit, uint32_t cvPixelFormat, QSize resolution) |
| Q_DECLARE_LOGGING_CATEGORY (qLcMacScreenCapture) | |
| std::unique_ptr< QPlatformCapturableWindows > | makeQSckCapturableWindows () |
| static CGDirectDisplayID | displayIDForScreen (NSScreen *screen) |
| static q23::expected< AVFScopedPointer< SCDisplay >, QString > | findScDisplay (CGDirectDisplayID input) |
| static void | setupQMacScreenCaptureKitConnections (QSckScreenCapture &screenCapture, const QMacScreenCaptureKit &macScreenCaptureKit) |
| std::unique_ptr< QPlatformSurfaceCapture > | makeQSckScreenCapture () |
| std::unique_ptr< QPlatformSurfaceCapture > | makeQSckWindowCapture () |
| std::unique_ptr< QFFmpegResampler > | createResampler (const Frame &frame, const QAudioFormat &outputFormat) |
| std::unique_ptr< AbstractAudioFrameConverter > | makeTrivialAudioFrameConverter (const Frame &frame, QAudioFormat outputFormat, float playbackRate) |
| std::unique_ptr< AbstractAudioFrameConverter > | makePitchShiftingAudioFrameConverter (const Frame &frame, QAudioFormat outputFormat, float playbackRate) |
| std::vector< CodecScoreRecord > | findAndScoreCodecs (CodecRole, AVCodecID, const qxp::function_ref< AVScore(const Codec &)> &scoreFunction) |
| std::vector< CodecScoreRecord > | findAndScoreEncoders (AVCodecID codecId, const qxp::function_ref< AVScore(const Codec &)> &scoreFunction) |
| std::optional< Codec > | findAVDecoder (AVCodecID codecId, const std::optional< PixelOrSampleFormat > &format={}) |
| std::optional< Codec > | findAVEncoder (AVCodecID codecId, const std::optional< PixelOrSampleFormat > &format={}) |
| Q_STATIC_LOGGING_CATEGORY (qLcDemuxer, "qt.multimedia.ffmpeg.demuxer") | |
| static TrackPosition | packetEndPos (const Packet &packet, const AVStream *stream, const AVFormatContext *context) |
| static bool | isPacketWithinStreamDuration (const AVFormatContext *context, const Packet &packet) |
| static std::optional< TrackDuration > | streamDuration (const AVStream &stream) |
| static std::optional< TrackPosition > | streamStart (const AVStream &stream, const AVFormatContextUPtr &context) |
| 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") | |
| bool | isAVFormatSupported (const Codec &codec, const PixelOrSampleFormat &format) |
| bool | isHwPixelFormat (AVPixelFormat format) |
| void | applyExperimentalCodecOptions (const Codec &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, SwsFlags conversionType) |
| 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 Value, typename Predicate> | |
| std::optional< Value > | findIf (QSpan< const Value > range, const Predicate &predicate) |
| template<typename Predicate> | |
| std::optional< AVPixelFormat > | findAVPixelFormat (const Codec &codec, const Predicate &predicate) |
| template<typename Function> | |
| void | forEachAVPixelFormat (const Codec &codec, const Function &function) |
| template<typename ValueRange, typename CalculateScore, typename Value = QtMultimediaPrivate::ranges::range_value_t<ValueRange>, typename ScoreType = std::invoke_result_t<CalculateScore, Value>> | |
| std::optional< ValueAndScore< Value, ScoreType > > | findBestAVValueWithScore (ValueRange &&values, const CalculateScore &calculateScore) |
| template<typename ValueRange, typename CalculateScore, typename Value = QtMultimediaPrivate::ranges::range_value_t<ValueRange>> | |
| std::optional< Value > | findBestAVValue (ValueRange &&values, const CalculateScore &calculateScore) |
| bool | isSwPixelFormat (AVPixelFormat format) |
| QString | toString (AVCodecCapabilities capabilities) |
| QString | toString (AVPixelFormatFlags flags) |
| QString | toString (AVHwConfigMethods methods) |
| bool | operator== (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
| QDebug | operator<< (QDebug dbg, const AVAudioFormat &format) |
| bool | operator!= (const AVAudioFormat &lhs, const AVAudioFormat &rhs) |
| QSpan< const AVPixelFormat > | makeSpan (const AVPixelFormat *values) |
| 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) |
| static bool | isNoConversionFormat (AVPixelFormat f) |
| AVPixelFormat | getFormat (AVCodecContext *codecContext, const AVPixelFormat *fmt) |
| static void | deleteHwFrameContextData (AVHWFramesContext *context) |
| AVFrameUPtr | copyFromHwPool (AVFrameUPtr frame) |
| AVFrameUPtr | copyFromHwPoolD3D11 (AVFrameUPtr src) |
| constexpr AVScore | operator+ (AVScore a, int b) |
| constexpr AVScore | operator- (AVScore a, int b) |
| constexpr AVScore | operator+ (int a, AVScore b) |
| constexpr AVScore | operator- (int a, AVScore b) |
| constexpr AVScore | operator- (AVScore a, AVScore b) |
| constexpr AVScore & | operator+= (AVScore &a, int b) |
| constexpr AVScore & | operator-= (AVScore &a, int b) |
| QDebug | operator<< (QDebug dbg, AVScore score) |
| Q_STATIC_LOGGING_CATEGORY (qLcPlaybackEngine, "qt.multimedia.ffmpeg.playbackengine") | |
| template<typename Array> | |
| static 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, QLatin1StringView codecName, AVCodecContext *codec, AVDictionary **opts) |
| void | applyAudioEncoderOptions (const QMediaEncoderSettings &settings, QLatin1StringView codecName, AVCodecContext *codec, AVDictionary **opts) |
| AVSampleFormat | adjustSampleFormat (QSpan< const AVSampleFormat > supportedFormats, AVSampleFormat requested) |
| int | adjustSampleRate (QSpan< 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) |
| ChannelLayoutT | adjustChannelLayout (QSpan< const ChannelLayoutT > supportedLayouts, const ChannelLayoutT &requested) |
| Q_STATIC_LOGGING_CATEGORY (qLcFFmpegMuxer, "qt.multimedia.ffmpeg.muxer") | |
| template<typename F> | |
| static void | doWithMediaFrameInput (QObject *source, F &&f) |
| Q_STATIC_LOGGING_CATEGORY (qLcFFmpegVideoEncoder, "qt.multimedia.ffmpeg.videoencoder") | |
| static void | freeQVideoFrame (void *opaque, uint8_t *) |
| std::optional< AVPixelFormat > | findTargetSWFormat (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel &accel, const AVPixelFormatSet &prohibitedFormats) |
| std::optional< AVPixelFormat > | findTargetFormat (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, const AVPixelFormatSet &prohibitedFormats) |
| AVScore | findSWFormatScores (const Codec &codec, AVPixelFormat sourceSWFormat) |
| AVRational | adjustFrameRate (QSpan< 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 (QSpan< 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 Codec &codec, QSize requestedResolution) |
| SwsFlags | getScaleConversionType (const QSize &sourceSize, const QSize &targetSize) |
| QDebug | operator<< (QDebug dbg, const PlaybackEngineObjectID &id) |
| std::optional< AVContextDuration > | contextStartOffset (const AVFormatContext *formatContext) |
| UserTrackPosition | toUserPosition (TrackPosition trackPosition) |
| UserTrackDuration | toUserDuration (TrackDuration trackDuration) |
| TrackDuration | toTrackDuration (AVContextDuration contextDuration) |
| TrackPosition | toTrackPosition (UserTrackPosition userTrackPosition) |
| TrackDuration | toTrackDuration (UserTrackDuration userTrackDuration) |
| TrackDuration | toTrackDuration (AVStreamDuration streamDuration, const AVStream *avStream) |
| TrackPosition | toTrackPosition (AVStreamPosition streamPosition, const AVStream *avStream, const AVFormatContext *formatContext) |
| AVContextPosition | toContextPosition (TrackPosition trackPosition, const AVFormatContext *formatContext) |
| QDebug | operator<< (QDebug debug, const TrackPosition &position) |
| QDebug | operator<< (QDebug debug, const TrackDuration &duration) |
| QDebug | operator<< (QDebug debug, const UserTrackPosition &position) |
| QDebug | operator<< (QDebug debug, const UserTrackDuration &duration) |
| QDebug | operator<< (QDebug debug, const AVStreamPosition &position) |
| QDebug | operator<< (QDebug debug, const AVStreamDuration &duration) |
Variables | |
| constexpr std::array | windowBundleIdentifierBlacklist |
| static constexpr TrackDuration | MaxBufferedDurationUs { 4'000'000 } |
| static constexpr qint64 | MaxBufferedSize = 32 * 1024 * 1024 |
| constexpr CodecRange | avCodecRange |
| constexpr auto | allCodecs |
| static const std::initializer_list< AVHWDeviceType > | preferredHardwareAccelerators |
| constexpr bool | VAExportUseLayers = false |
| constexpr AVScore | BestAVScore = AVScore::BestAVScore |
| constexpr AVScore | DefaultAVScore = AVScore::DefaultAVScore |
| constexpr AVScore | NotSuitableAVScore = AVScore::NotSuitableAVScore |
| constexpr AVScore | MinAVScore = AVScore::MinAVScore |
| static constexpr bool | audioEncoderExtendedTracing = false |
| constexpr qint64 | VideoFrameTimeBase = 1000000 |
| const VideoCodecOptionsTableType | videoCodecOptionTable |
| typedef void(* QFFmpeg::ApplyVideoCodecOptions)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts) |
Definition at line 343 of file qffmpegencoderoptions.cpp.
| using QFFmpeg::AVBufferUPtr = std::unique_ptr<AVBufferRef, AVDeleter<av_buffer_unref>> |
Definition at line 165 of file qffmpeg_p.h.
| using QFFmpeg::AVCodecContextUPtr = std::unique_ptr<AVCodecContext, AVDeleter<avcodec_free_context>> |
Definition at line 164 of file qffmpeg_p.h.
| using QFFmpeg::AVContextDuration = QTaggedDuration<qint64, AVContextTimeTag> |
Definition at line 52 of file qffmpegtime_p.h.
| using QFFmpeg::AVContextPosition = QTaggedTimePoint<qint64, AVContextTimeTag> |
Definition at line 51 of file qffmpegtime_p.h.
| using QFFmpeg::AVFormatContextUPtr = std::unique_ptr<AVFormatContext, AVDeleter<avformat_close_input>> |
Definition at line 39 of file qffmpegmediadataholder_p.h.
| using QFFmpeg::AVFrameUPtr = std::unique_ptr<AVFrame, AVDeleter<av_frame_free>> |
Definition at line 156 of file qffmpeg_p.h.
Definition at line 166 of file qffmpeg_p.h.
Definition at line 29 of file qffmpegioutils_p.h.
| using QFFmpeg::AVPacketUPtr = std::unique_ptr<AVPacket, AVDeleter<av_packet_free>> |
Definition at line 163 of file qffmpeg_p.h.
| using QFFmpeg::AVPixelFormatSet = std::unordered_set<AVPixelFormat> |
Definition at line 119 of file qffmpegdefs_p.h.
| using QFFmpeg::AVStreamDuration = QTaggedDuration<qint64, AVStreamTimeTag> |
Definition at line 46 of file qffmpegtime_p.h.
| using QFFmpeg::AVStreamPosition = QTaggedTimePoint<qint64, AVStreamTimeTag> |
Definition at line 45 of file qffmpegtime_p.h.
| using QFFmpeg::ChannelLayoutT = AVChannelLayout |
Definition at line 63 of file qffmpegdefs_p.h.
| using QFFmpeg::CodecRange = FFmpegOpaqueIteratorRange<const AVCodec *, av_codec_iterate> |
Definition at line 61 of file qffmpegcodec_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 41 of file qffmpeghwaccel_p.h.
| typedef FFmpegValueIteratorRange< AVHWDeviceType, av_hwdevice_iterate_types > QFFmpeg::HWDeviceTypesRange = FFmpegValueIteratorRange<AVHWDeviceType, av_hwdevice_iterate_types> |
Definition at line 138 of file qffmpeghwaccel.cpp.
| using QFFmpeg::PixelOrSampleFormat = std::variant<AVPixelFormat, AVSampleFormat> |
Definition at line 118 of file qffmpegdefs_p.h.
Definition at line 41 of file qavfcapturephotooutputdelegate_p.h.
Definition at line 82 of file qavfsamplebufferdelegate_p.h.
Definition at line 41 of file qavfsamplebufferdelegate_p.h.
| using QFFmpeg::QJavaCameraAvailabilityListener = QtJniTypes::QtCameraAvailabilityListener |
Definition at line 31 of file qandroidvideodevices_p.h.
| using QFFmpeg::QMacScreenCaptureStreamDelegate = QT_MANGLE_NAMESPACE(QMacScreenCaptureStreamDelegate) |
Definition at line 47 of file qmacscreencapturekit_p.h.
Definition at line 48 of file qmacscreencapturekit_p.h.
| using QFFmpeg::QtJniCamera2 = QtJniTypes::QtJniCamera2 |
Definition at line 36 of file qandroidcamera_p.h.
| using QFFmpeg::SteadyClock = std::chrono::steady_clock |
Definition at line 54 of file qffmpegtime_p.h.
| using QFFmpeg::StreamIndexes = std::array<int, 3> |
Definition at line 29 of file qffmpegplaybackenginedefs_p.h.
| using QFFmpeg::SwrContextUPtr = std::unique_ptr<SwrContext, AVDeleter<swr_free>> |
Definition at line 168 of file qffmpeg_p.h.
| using QFFmpeg::SwsContextUPtr = std::unique_ptr<SwsContext, AVDeleter<sws_freeContext>> |
Definition at line 169 of file qffmpeg_p.h.
| using QFFmpeg::TextureConverterBackendPtr = std::shared_ptr<TextureConverterBackend> |
Definition at line 63 of file qffmpegtextureconverter_p.h.
| using QFFmpeg::TrackDuration = QTaggedDuration<qint64, TrackTimeTag> |
Definition at line 36 of file qffmpegtime_p.h.
| using QFFmpeg::TrackPosition = QTaggedTimePoint<qint64, TrackTimeTag> |
Definition at line 35 of file qffmpegtime_p.h.
| using QFFmpeg::UserTrackDuration = QTaggedDuration<qint64, UserTrackTimeTag> |
Definition at line 41 of file qffmpegtime_p.h.
| using QFFmpeg::UserTrackPosition = QTaggedTimePoint<qint64, UserTrackTimeTag> |
Definition at line 40 of file qffmpegtime_p.h.
Definition at line 348 of file qffmpegencoderoptions.cpp.
| using QFFmpeg::VideoFrameEncoderUPtr = std::unique_ptr<VideoFrameEncoder> |
Definition at line 29 of file qffmpegvideoframeencoder_p.h.
|
strong |
Definition at line 315 of file qffmpeg_p.h.
|
strong |
| Enumerator | |
|---|---|
| Success | |
Definition at line 311 of file qffmpeg_p.h.
|
strong |
Definition at line 317 of file qffmpeg_p.h.
|
strong |
Definition at line 316 of file qffmpeg_p.h.
|
strong |
| Enumerator | |
|---|---|
| BestAVScore | |
| DefaultAVScore | |
| NotSuitableAVScore | |
| MinAVScore | |
Definition at line 72 of file qffmpegdefs_p.h.
|
strong |
| Enumerator | |
|---|---|
| Encoders | |
| Decoders | |
Definition at line 30 of file qffmpegcodecstorage_p.h.
|
strong |
Definition at line 35 of file qmultimedia_drm_support_p.h.
|
strong |
Definition at line 35 of file qmultimedia_drm_support_p.h.
| AVPacketSideData * QFFmpeg::addStreamSideData | ( | AVStream * | stream, |
| AVPacketSideData | sideData ) |
Definition at line 104 of file qffmpeg.cpp.
| ChannelLayoutT QFFmpeg::adjustChannelLayout | ( | QSpan< const ChannelLayoutT > | supportedLayouts, |
| const ChannelLayoutT & | requested ) |
Definition at line 71 of file qffmpegaudioencoderutils.cpp.
| AVRational QFFmpeg::adjustFrameRate | ( | QSpan< 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 244 of file qffmpegvideoencoderutils.cpp.
| AVRational QFFmpeg::adjustFrameTimeBase | ( | QSpan< 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 260 of file qffmpegvideoencoderutils.cpp.
| AVSampleFormat QFFmpeg::adjustSampleFormat | ( | QSpan< const AVSampleFormat > | supportedFormats, |
| AVSampleFormat | requested ) |
Definition at line 11 of file qffmpegaudioencoderutils.cpp.
| int QFFmpeg::adjustSampleRate | ( | QSpan< const int > | supportedRates, |
| int | requested ) |
Definition at line 33 of file qffmpegaudioencoderutils.cpp.
Definition at line 281 of file qffmpegvideoencoderutils.cpp.
| void QFFmpeg::applyAudioEncoderOptions | ( | const QMediaEncoderSettings & | settings, |
| QLatin1StringView | codecName, | ||
| AVCodecContext * | codec, | ||
| AVDictionary ** | opts ) |
Definition at line 398 of file qffmpegencoderoptions.cpp.
Definition at line 61 of file qffmpeg.cpp.
| void QFFmpeg::applyVideoEncoderOptions | ( | const QMediaEncoderSettings & | settings, |
| QLatin1StringView | codecName, | ||
| AVCodecContext * | codec, | ||
| AVDictionary ** | opts ) |
Definition at line 387 of file qffmpegencoderoptions.cpp.
| AVHWDeviceContext * QFFmpeg::avFrameDeviceContext | ( | const AVFrame * | frame | ) |
Definition at line 311 of file qffmpeg.cpp.
|
static |
Definition at line 51 of file qffmpegaudioencoderutils.cpp.
|
static |
Definition at line 62 of file qffmpegaudioencoderutils.cpp.
|
static |
Definition at line 111 of file qffmpeghwaccel.cpp.
References FFmpegLogsEnabledInThread.
|
static |
Definition at line 106 of file qffmpegmediadataholder.cpp.
|
static |
Definition at line 289 of file qmacscreencapturekit.mm.
| void QFFmpeg::connectEncoderToSource | ( | Encoder * | encoder, |
| Source * | source ) |
Definition at line 57 of file qffmpegrecordingengineutils_p.h.
|
inline |
Definition at line 56 of file qffmpegtime_p.h.
| AVFrameUPtr QFFmpeg::copyFromHwPool | ( | AVFrameUPtr | frame | ) |
Definition at line 452 of file qffmpeghwaccel.cpp.
| AVFrameUPtr QFFmpeg::copyFromHwPoolD3D11 | ( | AVFrameUPtr | src | ) |
Definition at line 352 of file qffmpeghwaccel_d3d11.cpp.
| QCameraFormat QFFmpeg::createCameraFormat | ( | int | width, |
| int | height, | ||
| int | fpsMin, | ||
| int | fpsMax ) |
Definition at line 40 of file qandroidvideodevices.cpp.
|
staticnodiscard |
Definition at line 162 of file qmacscreencapturekit.mm.
| SwrContextUPtr QFFmpeg::createResampleContext | ( | const AVAudioFormat & | inputFormat, |
| const AVAudioFormat & | outputFormat ) |
Definition at line 146 of file qffmpeg.cpp.
References Success.
| std::unique_ptr< QFFmpegResampler > QFFmpeg::createResampler | ( | const Frame & | frame, |
| const QAudioFormat & | outputFormat ) |
Definition at line 154 of file qffmpegaudioframeconverter.cpp.
|
staticnodiscard |
Definition at line 303 of file qmacscreencapturekit.mm.
| SwsContextUPtr QFFmpeg::createSwsContext | ( | const QSize & | srcSize, |
| AVPixelFormat | srcPixFmt, | ||
| const QSize & | dstSize, | ||
| AVPixelFormat | dstPixFmt, | ||
| SwsFlags | conversionType = SWS_BICUBIC ) |
Definition at line 324 of file qffmpeg.cpp.
|
nodiscard |
Definition at line 65 of file qffmpegdarwinhwframehelpers.mm.
|
inlinestatic |
Definition at line 29 of file qffmpegplaybackengine.cpp.
|
static |
Definition at line 418 of file qffmpeghwaccel.cpp.
Referenced by QFFmpeg::HwFrameContextData::ensure().
| T QFFmpeg::dequeueIfPossible | ( | std::queue< T > & | queue | ) |
Definition at line 42 of file qffmpegrecordingengineutils_p.h.
|
static |
Definition at line 140 of file qffmpeghwaccel.cpp.
|
static |
Definition at line 180 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().
|
staticnodiscard |
Definition at line 32 of file qsckscreencapture.mm.
|
static |
Definition at line 55 of file qffmpegmediadataholder.cpp.
Definition at line 14 of file qffmpegrecordingengineutils.cpp.
|
inline |
Definition at line 78 of file qffmpeg_p.h.
| std::vector< CodecScoreRecord > QFFmpeg::findAndScoreCodecs | ( | CodecRole | type, |
| AVCodecID | codecId, | ||
| const qxp::function_ref< AVScore(const Codec &)> & | scoreFunction ) |
Definition at line 376 of file qffmpegcodecstorage.cpp.
|
inline |
Definition at line 47 of file qffmpegcodecstorage_p.h.
| std::optional< Codec > QFFmpeg::findAVDecoder | ( | AVCodecID | codecId, |
| const std::optional< PixelOrSampleFormat > & | format = {} ) |
Definition at line 406 of file qffmpegcodecstorage.cpp.
References Decoders.
| std::optional< Codec > QFFmpeg::findAVEncoder | ( | AVCodecID | codecId, |
| const std::optional< PixelOrSampleFormat > & | format = {} ) |
Definition at line 412 of file qffmpegcodecstorage.cpp.
References Encoders.
| std::optional< AVPixelFormat > QFFmpeg::findAVPixelFormat | ( | const Codec & | codec, |
| const Predicate & | predicate ) |
Definition at line 192 of file qffmpeg_p.h.
| std::optional< Value > QFFmpeg::findBestAVValue | ( | ValueRange && | values, |
| const CalculateScore & | calculateScore ) |
Definition at line 260 of file qffmpeg_p.h.
| std::optional< ValueAndScore< Value, ScoreType > > QFFmpeg::findBestAVValueWithScore | ( | ValueRange && | values, |
| const CalculateScore & | calculateScore ) |
Definition at line 238 of file qffmpeg_p.h.
| std::optional< Value > QFFmpeg::findIf | ( | QSpan< const Value > | range, |
| const Predicate & | predicate ) |
Definition at line 178 of file qffmpeg_p.h.
|
staticnodiscard |
Definition at line 43 of file qsckscreencapture.mm.
Definition at line 228 of file qffmpegvideoencoderutils.cpp.
| std::optional< AVPixelFormat > QFFmpeg::findTargetFormat | ( | AVPixelFormat | sourceSWFormat, |
| const Codec & | codec, | ||
| const HWAccel * | accel, | ||
| const AVPixelFormatSet & | prohibitedFormats = {} ) |
Definition at line 189 of file qffmpegvideoencoderutils.cpp.
| std::optional< AVPixelFormat > QFFmpeg::findTargetSWFormat | ( | AVPixelFormat | sourceSWFormat, |
| const Codec & | codec, | ||
| const HWAccel & | accel, | ||
| const AVPixelFormatSet & | prohibitedFormats = {} ) |
Definition at line 143 of file qffmpegvideoencoderutils.cpp.
| void QFFmpeg::forEachAVPixelFormat | ( | const Codec & | codec, |
| const Function & | function ) |
Definition at line 219 of file qffmpeg_p.h.
Definition at line 158 of file qffmpegvideoencoder.cpp.
Referenced by QFFmpeg::VideoEncoder::processOne().
| QVideoFrameFormat::ColorRange QFFmpeg::fromAvColorRange | ( | AVColorRange | colorRange | ) |
Definition at line 287 of file qffmpeg.cpp.
| QVideoFrameFormat::ColorSpace QFFmpeg::fromAvColorSpace | ( | AVColorSpace | colorSpace | ) |
Definition at line 244 of file qffmpeg.cpp.
| QVideoFrameFormat::ColorTransfer QFFmpeg::fromAvColorTransfer | ( | AVColorTransferCharacteristic | colorTrc | ) |
Definition at line 192 of file qffmpeg.cpp.
|
inline |
Definition at line 105 of file qffmpeg_p.h.
|
inline |
Definition at line 95 of file qffmpeg_p.h.
| AVPixelFormat QFFmpeg::getFormat | ( | AVCodecContext * | codecContext, |
| const AVPixelFormat * | fmt ) |
Definition at line 237 of file qffmpeghwaccel.cpp.
Definition at line 293 of file qffmpegvideoencoderutils.cpp.
|
static |
Definition at line 239 of file qmacscreencapturekit.mm.
|
static |
Definition at line 147 of file qffmpegmediadataholder.cpp.
| bool QFFmpeg::isAVFormatSupported | ( | const Codec & | codec, |
| const PixelOrSampleFormat & | format ) |
Definition at line 48 of file qffmpeg.cpp.
| bool QFFmpeg::isHwPixelFormat | ( | AVPixelFormat | format | ) |
Definition at line 55 of file qffmpeg.cpp.
|
static |
Definition at line 229 of file qffmpeghwaccel.cpp.
|
static |
Definition at line 30 of file qffmpegdemuxer.cpp.
|
inline |
Definition at line 271 of file qffmpeg_p.h.
|
static |
Definition at line 57 of file qffmpeghwaccel.cpp.
|
inline |
Definition at line 158 of file qffmpeg_p.h.
| std::unique_ptr< AbstractAudioFrameConverter > QFFmpeg::makePitchShiftingAudioFrameConverter | ( | const Frame & | frame, |
| QAudioFormat | outputFormat, | ||
| float | playbackRate ) |
Definition at line 167 of file qffmpegaudioframeconverter.cpp.
|
nodiscard |
Definition at line 172 of file qavfcamera.mm.
|
nodiscard |
Definition at line 59 of file qavfimagecapture.mm.
|
nodiscard |
Definition at line 138 of file qsckcapturablewindows.mm.
|
nodiscard |
Definition at line 263 of file qsckscreencapture.mm.
|
nodiscard |
Definition at line 250 of file qsckwindowcapture.mm.
| QSpan< const AVPixelFormat > QFFmpeg::makeSpan | ( | const AVPixelFormat * | values | ) |
Definition at line 280 of file qffmpegcodec.cpp.
| std::unique_ptr< AbstractAudioFrameConverter > QFFmpeg::makeTrivialAudioFrameConverter | ( | const Frame & | frame, |
| QAudioFormat | outputFormat, | ||
| float | playbackRate ) |
Definition at line 161 of file qffmpegaudioframeconverter.cpp.
Definition at line 43 of file qffmpeg_p.h.
Definition at line 58 of file qffmpeg_p.h.
|
inline |
Definition at line 59 of file qffmpegavaudioformat_p.h.
References operator==().
Definition at line 84 of file qffmpegdefs_p.h.
Referenced by operator+=().
Definition at line 92 of file qffmpegdefs_p.h.
Definition at line 104 of file qffmpegdefs_p.h.
References operator+().
Definition at line 100 of file qffmpegdefs_p.h.
Definition at line 88 of file qffmpegdefs_p.h.
Referenced by operator-=().
Definition at line 96 of file qffmpegdefs_p.h.
Definition at line 108 of file qffmpegdefs_p.h.
References operator-().
Definition at line 112 of file qffmpegdefs_p.h.
| QDebug QFFmpeg::operator<< | ( | QDebug | dbg, |
| const AVAudioFormat & | format ) |
Definition at line 78 of file qffmpegavaudioformat.cpp.
References QFFmpeg::AVAudioFormat::sampleRate.
|
inline |
Definition at line 34 of file qffmpegplaybackutils_p.h.
|
inline |
Definition at line 138 of file qffmpegtime_p.h.
|
inline |
Definition at line 133 of file qffmpegtime_p.h.
|
inline |
Definition at line 118 of file qffmpegtime_p.h.
|
inline |
Definition at line 113 of file qffmpegtime_p.h.
|
inline |
Definition at line 128 of file qffmpegtime_p.h.
|
inline |
Definition at line 123 of file qffmpegtime_p.h.
| bool QFFmpeg::operator== | ( | const AVAudioFormat & | lhs, |
| const AVAudioFormat & | rhs ) |
Definition at line 67 of file qffmpegavaudioformat.cpp.
References QFFmpeg::AVAudioFormat::sampleRate.
Referenced by operator!=().
|
static |
Definition at line 22 of file qffmpegdemuxer.cpp.
| AVPixelFormat QFFmpeg::pixelFormatForHwDevice | ( | AVHWDeviceType | deviceType | ) |
Definition at line 70 of file qffmpeg.cpp.
|
static |
Definition at line 73 of file qffmpeghwaccel.cpp.
| QFFmpeg::Q_DECLARE_LOGGING_CATEGORY | ( | qLcMacScreenCapture | ) |
| QFFmpeg::Q_STATIC_LOGGING_CATEGORY | ( | qLCAndroidVideoDevices | , |
| "qt.multimedia.ffmpeg.android.videoDevices" | ) |
| 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" | ) |
|
nodiscard |
Definition at line 128 of file qffmpegdarwinhwframehelpers.mm.
|
staticnodiscard |
Definition at line 120 of file qmacscreencapturekit.mm.
| int QFFmpeg::readQIODevice | ( | void * | opaque, |
| uint8_t * | buf, | ||
| int | buf_size ) |
Definition at line 12 of file qffmpegioutils.cpp.
|
static |
Definition at line 153 of file qffmpeghwaccel_videotoolbox.mm.
| int64_t QFFmpeg::seekQIODevice | ( | void * | opaque, |
| int64_t | offset, | ||
| int | whence ) |
Definition at line 30 of file qffmpegioutils.cpp.
|
inline |
Definition at line 85 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 66 of file qsckscreencapture.mm.
|
static |
Definition at line 25 of file qffmpegmediadataholder.cpp.
| const AVPacketSideData * QFFmpeg::streamSideData | ( | const AVStream * | stream, |
| AVPacketSideDataType | type ) |
Definition at line 130 of file qffmpeg.cpp.
|
static |
Definition at line 46 of file qffmpegmediadataholder.cpp.
|
static |
Definition at line 85 of file qffmpegmediadataholder.cpp.
Definition at line 63 of file qffmpeg_p.h.
Definition at line 68 of file qffmpeg_p.h.
| AVColorRange QFFmpeg::toAvColorRange | ( | QVideoFrameFormat::ColorRange | colorRange | ) |
Definition at line 299 of file qffmpeg.cpp.
| AVColorSpace QFFmpeg::toAvColorSpace | ( | QVideoFrameFormat::ColorSpace | colorSpace | ) |
Definition at line 271 of file qffmpeg.cpp.
| AVColorTransferCharacteristic QFFmpeg::toAvColorTransfer | ( | QVideoFrameFormat::ColorTransfer | colorTrc | ) |
Definition at line 222 of file qffmpeg.cpp.
|
inline |
Definition at line 106 of file qffmpegtime_p.h.
|
inline |
Definition at line 73 of file qffmpeg_p.h.
| QString QFFmpeg::toString | ( | AVCodecCapabilities | capabilities | ) |
Definition at line 552 of file qffmpeg.cpp.
| QString QFFmpeg::toString | ( | AVHwConfigMethods | methods | ) |
Definition at line 594 of file qffmpeg.cpp.
| QString QFFmpeg::toString | ( | AVPixelFormatFlags | flags | ) |
Definition at line 578 of file qffmpeg.cpp.
|
inline |
Definition at line 73 of file qffmpegtime_p.h.
|
inline |
Definition at line 88 of file qffmpegtime_p.h.
|
inline |
Definition at line 83 of file qffmpegtime_p.h.
|
inline |
Definition at line 93 of file qffmpegtime_p.h.
|
inline |
Definition at line 78 of file qffmpegtime_p.h.
|
inline |
Definition at line 68 of file qffmpegtime_p.h.
|
inline |
Definition at line 63 of file qffmpegtime_p.h.
| int QFFmpeg::writeQIODevice | ( | void * | opaque, |
| AvioWriteBufferType | buf, | ||
| int | buf_size ) |
Definition at line 22 of file qffmpegioutils.cpp.
|
inlineconstexpr |
Definition at line 64 of file qffmpegcodec_p.h.
|
staticconstexpr |
Definition at line 19 of file qffmpegaudioencoder.cpp.
|
inlineconstexpr |
Definition at line 63 of file qffmpegcodec_p.h.
|
inlineconstexpr |
Definition at line 79 of file qffmpegdefs_p.h.
|
inlineconstexpr |
Definition at line 80 of file qffmpegdefs_p.h.
|
staticconstexpr |
Definition at line 15 of file qffmpegdemuxer.cpp.
|
staticconstexpr |
Definition at line 18 of file qffmpegdemuxer.cpp.
|
inlineconstexpr |
Definition at line 82 of file qffmpegdefs_p.h.
|
inlineconstexpr |
Definition at line 81 of file qffmpegdefs_p.h.
|
static |
Definition at line 39 of file qffmpeghwaccel.cpp.
|
constexpr |
Definition at line 39 of file qffmpeghwaccel_vaapi.cpp.
Referenced by QFFmpeg::VAAPITextureConverter::createTextureHandles().
| const VideoCodecOptionsTableType QFFmpeg::videoCodecOptionTable |
Definition at line 352 of file qffmpegencoderoptions.cpp.
|
constexpr |
Definition at line 30 of file qffmpegrecordingengineutils_p.h.
|
constexpr |
Definition at line 31 of file qsckcapturablewindows.mm.