4#ifndef QFFMPEGCONVERTER_P_H
5#define QFFMPEGCONVERTER_P_H
18#include <QtCore/qtconfigmacros.h>
19#include <QtMultimedia/private/qtmultimediaglobal_p.h>
23class QVideoFrameFormat;
26QVideoFrame
convertFrame(QVideoFrame &src,
const QVideoFrameFormat &dstFormat);
AVPixelFormat toAVPixelFormat(QVideoFrameFormat::PixelFormat pixelFormat)
QFFmpeg::SwsContextUPtr createConverter(const QSize &srcSize, PixelFormat srcPixFmt, const QSize &dstSize, PixelFormat dstPixFmt)
Q_LOGGING_CATEGORY(lc, "qt.multimedia.ffmpeg.converter")
bool convert(SwsContext *context, QVideoFrame &src, int srcHeight, QVideoFrame &dst)
SwsColorSpace toSwsColorSpace(QVideoFrameFormat::ColorRange colorRange, QVideoFrameFormat::ColorSpace colorSpace)
bool setColorSpaceDetails(SwsContext *context, const QVideoFrameFormat &srcFormat, const QVideoFrameFormat &dstFormat)
SwsFrameData getSwsData(QVideoFrame &dst)
QSize adjustSize(const QSize &size, PixelFormat srcFmt, PixelFormat dstFmt)
QVideoFrame convertFrame(QVideoFrame &src, const QVideoFrameFormat &dstFormat)
std::array< uchar *, arraySize > bits
std::array< int, arraySize > stride
static constexpr int arraySize