Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qffmpegvideoencoderutils.cpp File Reference

(8b72797561a69d9677a6c23e58dcb5c0b80f48ac)

#include "qffmpegvideoencoderutils_p.h"
#include <QtFFmpegMediaPluginImpl/private/qffmpeg_p.h>
#include <QtMultimedia/private/qmultimediautils_p.h>
#include <QtCore/qglobalstatic.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qoperatingsystemversion.h>
#include <QtCore/qreadwritelock.h>
#include <QtCore/private/qminimalflatset_p.h>
#include <QtFFmpegMediaPluginImpl/private/qffmpegrecordingengineutils_p.h>
#include <map>
#include <mutex>
#include <shared_mutex>
#include <libavutil/hwcontext.h>
#include <libavutil/pixdesc.h>
Include dependency graph for qffmpegvideoencoderutils.cpp:

Go to the source code of this file.

Namespaces

namespace  QFFmpeg

Functions

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY (qLcVideoEncoderUtils, "qt.multimedia.ffmpeg.videoencoderutils")
std::vector< AVPixelFormat > QFFmpeg::probePixelFormats (const Codec &codec, QSize resolution, const HWAccel *accel)
std::vector< AVPixelFormat > QFFmpeg::encoderPixelFormats (const Codec &codec, QSize resolution, const HWAccel *accel)
AVScore QFFmpeg::scoreTargetSwFormat (AVPixelFormat source, AVPixelFormat target)
std::optional< AVPixelFormat > QFFmpeg::findTargetSWFormat (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel &accel, QSize resolution)
std::vector< ScoredPixelFormat > QFFmpeg::findAndScoreTargetSWFormats (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, QSize resolution)
std::optional< AVPixelFormat > QFFmpeg::findTargetFormat (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, QSize resolution)
AVScore QFFmpeg::findSWFormatScores (const Codec &codec, AVPixelFormat sourceSWFormat, QSize resolution)
AVRational QFFmpeg::adjustFrameRate (QSpan< const AVRational > supportedRates, qreal settingsRate, qreal sourceRate)
 adjustFrameRate resolves the effective frame rate to negotiate with a codec.
AVRational QFFmpeg::adjustFrameTimeBase (QSpan< const AVRational > supportedRates, AVRational frameRate, bool isFixedRate)
 adjustFrameTimeBase gets adjusted timebase by a list of supported frame rates and an already adjusted frame rate.
QSize QFFmpeg::adjustVideoResolution (const Codec &codec, QSize requestedResolution)
SwsFlags QFFmpeg::getScaleConversionType (const QSize &sourceSize, const QSize &targetSize)

Function Documentation

◆ Q_STATIC_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY ( qLcVideoEncoderUtils ,
"qt.multimedia.ffmpeg.videoencoderutils"  )