Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qffmpegencoderoptions.cpp File Reference
+ Include dependency graph for qffmpegencoderoptions.cpp:

Go to the source code of this file.

Namespaces

namespace  QFFmpeg
 

Typedefs

using QFFmpeg::ApplyOptions = void(*)(const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts)
 

Functions

static QT_BEGIN_NAMESPACE int bitrateForSettings (const QMediaEncoderSettings &settings, bool hdr=false)
 
static void apply_x264 (const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts)
 
static void apply_x265 (const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts)
 
static void apply_libvpx (const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **opts)
 
static void apply_nvenc (const QMediaEncoderSettings &settings, AVCodecContext *codec, AVDictionary **)
 
void QFFmpeg::applyVideoEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts)
 
void QFFmpeg::applyAudioEncoderOptions (const QMediaEncoderSettings &settings, const QByteArray &codecName, AVCodecContext *codec, AVDictionary **opts)
 

Variables

struct { 
 
   const char *   QFFmpeg::name 
 
   ApplyOptions   QFFmpeg::apply 
 
QFFmpeg::videoCodecOptionTable [] 
 
struct { 
 
   const char *   QFFmpeg::name 
 
   ApplyOptions   QFFmpeg::apply 
 
QFFmpeg::audioCodecOptionTable [] 
 

Function Documentation

◆ apply_libvpx()

static void apply_libvpx ( const QMediaEncoderSettings settings,
AVCodecContext *  codec,
AVDictionary **  opts 
)
static

◆ apply_nvenc()

static void apply_nvenc ( const QMediaEncoderSettings settings,
AVCodecContext *  codec,
AVDictionary **   
)
static

◆ apply_x264()

static void apply_x264 ( const QMediaEncoderSettings settings,
AVCodecContext *  codec,
AVDictionary **  opts 
)
static

◆ apply_x265()

static void apply_x265 ( const QMediaEncoderSettings settings,
AVCodecContext *  codec,
AVDictionary **  opts 
)
static

◆ bitrateForSettings()

static QT_BEGIN_NAMESPACE int bitrateForSettings ( const QMediaEncoderSettings settings,
bool  hdr = false 
)
static

Definition at line 20 of file qffmpegencoderoptions.cpp.

References bitsPerPixel(), QMediaFormat::LastVideoCodec, log2(), QMediaFormat::MotionJPEG, settings, and QMediaRecorder::VeryHighQuality.

+ Here is the call graph for this function: