![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qffmpegvideoencoderutils_p.h"
#include "qffmpegcodecstorage_p.h"
#include "private/qmultimediautils_p.h"
#include <libavutil/pixdesc.h>
Go to the source code of this file.
Namespaces | |
namespace | QFFmpeg |
Functions | |
static AVScore | QFFmpeg::calculateTargetSwFormatScore (const AVPixFmtDescriptor *sourceSwFormatDesc, AVPixelFormat fmt, const AVPixelFormatSet &prohibitedFormats) |
static auto | QFFmpeg::targetSwFormatScoreCalculator (AVPixelFormat sourceFormat, std::reference_wrapper< const AVPixelFormatSet > prohibitedFormats) |
static bool | QFFmpeg::isHwFormatAcceptedByCodec (AVPixelFormat pixFormat) |
std::optional< AVPixelFormat > | QFFmpeg::findTargetSWFormat (AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel &accel, const AVPixelFormatSet &prohibitedFormats) |
std::optional< AVPixelFormat > | QFFmpeg::findTargetFormat (AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat, const Codec &codec, const HWAccel *accel, const AVPixelFormatSet &prohibitedFormats) |
AVScore | QFFmpeg::findSWFormatScores (const Codec &codec, AVPixelFormat sourceSWFormat) |
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. | |
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. | |
QSize | QFFmpeg::adjustVideoResolution (const Codec &codec, QSize requestedResolution) |
SwsFlags | QFFmpeg::getScaleConversionType (const QSize &sourceSize, const QSize &targetSize) |