OpenShot Library | libopenshot 1.1.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
openshot::AdaptivePreroll Class Reference

#include <Qt/AdaptivePreroll.h>

Public Member Functions

void Observe (int64_t duration_us)
 
bool Ready (int64_t now, int64_t contiguous_ahead, bool current_available, int64_t required, int64_t minimum_step=1)
 
bool Released () const
 
void Reset (int64_t now)
 
int64_t Target (double fps, int speed, int64_t capacity, int64_t conservative, int64_t maximum)
 
bool TimedOut () const
 

Static Public Attributes

static constexpr int64_t MaxProbeFrames = 120
 
static constexpr int64_t StartupLimitUs = 500000
 

Detailed Description

Definition at line 22 of file AdaptivePreroll.h.

Member Function Documentation

◆ Observe()

void openshot::AdaptivePreroll::Observe ( int64_t  duration_us)
inline

Definition at line 34 of file AdaptivePreroll.h.

Referenced by openshot::VideoCacheThread::prefetchWindow().

◆ Ready()

bool openshot::AdaptivePreroll::Ready ( int64_t  now,
int64_t  contiguous_ahead,
bool  current_available,
int64_t  required,
int64_t  minimum_step = 1 
)
inline

Definition at line 65 of file AdaptivePreroll.h.

Referenced by openshot::VideoCacheThread::isReady().

◆ Released()

bool openshot::AdaptivePreroll::Released ( ) const
inline

Definition at line 74 of file AdaptivePreroll.h.

Referenced by openshot::VideoCacheThread::isReady().

◆ Reset()

void openshot::AdaptivePreroll::Reset ( int64_t  now)
inline

Definition at line 26 of file AdaptivePreroll.h.

Referenced by openshot::VideoCacheThread::resetReadiness().

◆ Target()

int64_t openshot::AdaptivePreroll::Target ( double  fps,
int  speed,
int64_t  capacity,
int64_t  conservative,
int64_t  maximum 
)
inline

◆ TimedOut()

bool openshot::AdaptivePreroll::TimedOut ( ) const
inline

Definition at line 73 of file AdaptivePreroll.h.

Member Data Documentation

◆ MaxProbeFrames

constexpr int64_t openshot::AdaptivePreroll::MaxProbeFrames = 120
staticconstexpr

Definition at line 25 of file AdaptivePreroll.h.

Referenced by Target().

◆ StartupLimitUs

constexpr int64_t openshot::AdaptivePreroll::StartupLimitUs = 500000
staticconstexpr

Definition at line 24 of file AdaptivePreroll.h.

Referenced by Ready().


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