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
QFFmpeg::FrameRateAdapter Class Reference

#include <qffmpegframerateadapter_p.h>

Collaboration diagram for QFFmpeg::FrameRateAdapter:

Public Member Functions

 FrameRateAdapter ()=default
void setRates (std::optional< double > sourceRate, double targetRate)
bool isActive () const
qint64 frameDuration () const
std::vector< FrameInfoadapt (const QVideoFrame &frame, bool adjustTimeBase=false)
std::optional< FrameInfoflush ()
void reset ()

Detailed Description

Definition at line 30 of file qffmpegframerateadapter_p.h.

Constructor & Destructor Documentation

◆ FrameRateAdapter()

QFFmpeg::FrameRateAdapter::FrameRateAdapter ( )
default

Member Function Documentation

◆ adapt()

std::vector< FrameInfo > QFFmpeg::FrameRateAdapter::adapt ( const QVideoFrame & frame,
bool adjustTimeBase = false )

Definition at line 40 of file qffmpegframerateadapter.cpp.

References isActive().

Here is the call graph for this function:

◆ flush()

std::optional< FrameInfo > QFFmpeg::FrameRateAdapter::flush ( )

Definition at line 87 of file qffmpegframerateadapter.cpp.

Referenced by testing.tools.encode_pdf_filter._SinkPdfStream::close().

Here is the caller graph for this function:

◆ frameDuration()

qint64 QFFmpeg::FrameRateAdapter::frameDuration ( ) const
inlinenodiscard

Definition at line 38 of file qffmpegframerateadapter_p.h.

◆ isActive()

bool QFFmpeg::FrameRateAdapter::isActive ( ) const
inlinenodiscard

Definition at line 37 of file qffmpegframerateadapter_p.h.

Referenced by adapt().

Here is the caller graph for this function:

◆ reset()

void QFFmpeg::FrameRateAdapter::reset ( )

Definition at line 96 of file qffmpegframerateadapter.cpp.

◆ setRates()

void QFFmpeg::FrameRateAdapter::setRates ( std::optional< double > sourceRate,
double targetRate )

Definition at line 12 of file qffmpegframerateadapter.cpp.


The documentation for this class was generated from the following files: