3#ifndef QFFMPEGVIDEOENCODERUTILS_P_H
4#define QFFMPEGVIDEOENCODERUTILS_P_H
17#include <QtFFmpegMediaPluginImpl/private/qffmpegdefs_p.h>
18#include <QtFFmpegMediaPluginImpl/private/qffmpeghwaccel_p.h>
20#include <QtMultimedia/private/qmultimedia_ranges_p.h>
21#include <QtCore/qspan.h>
32 const HWAccel *accel);
34 const HWAccel *accel);
36std::optional<AVPixelFormat> findTargetSWFormat(AVPixelFormat sourceSWFormat,
const Codec &codec,
37 const HWAccel &accel, QSize resolution);
39AVScore scoreTargetSwFormat(AVPixelFormat source, AVPixelFormat target);
48std::vector<ScoredPixelFormat> findAndScoreTargetSWFormats(AVPixelFormat sourceSWFormat,
49 const Codec &,
const HWAccel *,
52std::optional<AVPixelFormat> findTargetFormat(AVPixelFormat sourceSWFormat,
const Codec &codec,
53 const HWAccel *accel, QSize resolution);
55AVScore findSWFormatScores(
const Codec &codec, AVPixelFormat sourceSWFormat, QSize resolution);
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
80
81
82
83
84
85
86
87
88
89
90
91
92AVRational adjustFrameTimeBase(QSpan<
const AVRational> supportedRates, AVRational frameRate,
std::vector< ScoredPixelFormat > findAndScoreTargetSWFormats(AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, QSize resolution)
SwsFlags getScaleConversionType(const QSize &sourceSize, const QSize &targetSize)
QSize adjustVideoResolution(const Codec &codec, QSize requestedResolution)
std::optional< AVPixelFormat > findTargetFormat(AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, QSize resolution)
std::vector< AVPixelFormat > encoderPixelFormats(const Codec &codec, QSize resolution, const HWAccel *accel)
AVRational adjustFrameRate(QSpan< const AVRational > supportedRates, qreal settingsRate, qreal sourceRate)
adjustFrameRate resolves the effective frame rate to negotiate with a codec.
AVScore scoreTargetSwFormat(AVPixelFormat source, AVPixelFormat target)
std::optional< AVPixelFormat > findTargetSWFormat(AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel &accel, QSize resolution)
AVRational adjustFrameTimeBase(QSpan< const AVRational > supportedRates, AVRational frameRate, bool isFixedRate)
adjustFrameTimeBase gets adjusted timebase by a list of supported frame rates and an already adjusted...
AVScore findSWFormatScores(const Codec &codec, AVPixelFormat sourceSWFormat, QSize resolution)
std::vector< AVPixelFormat > probePixelFormats(const Codec &codec, QSize resolution, const HWAccel *accel)
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)