3#ifndef QFFMPEGVIDEOENCODERUTILS_P_H
4#define QFFMPEGVIDEOENCODERUTILS_P_H
25 const HWAccel &accel);
27AVPixelFormat
findTargetFormat(AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat,
28 const AVCodec *
codec,
const HWAccel *accel);
30std::pair<const AVCodec *, std::unique_ptr<HWAccel>>
findHwEncoder(AVCodecID codecID,
31 const QSize &sourceSize);
33const AVCodec *
findSwEncoder(AVCodecID codecID, AVPixelFormat sourceSWFormat);
AVPixelFormat findTargetFormat(AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel *accel)
QSize adjustVideoResolution(const AVCodec *codec, QSize requestedResolution)
std::pair< const AVCodec *, std::unique_ptr< HWAccel > > findHwEncoder(AVCodecID codecID, const QSize &resolution)
const AVCodec * findSwEncoder(AVCodecID codecID, AVPixelFormat sourceSWFormat)
AVRational adjustFrameRate(const AVRational *supportedRates, qreal requestedRate)
adjustFrameRate get a rational frame rate be requested qreal rate. If the codec supports fixed frame ...
AVPixelFormat findTargetSWFormat(AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel &accel)
AVRational adjustFrameTimeBase(const AVRational *supportedRates, AVRational frameRate)
adjustFrameTimeBase gets adjusted timebase by a list of supported frame rates and an already adjusted...
Combined button and popup list for selecting options.