Lumiera  0.pre.03
»edit your freedom«
FrameRate Class Reference

#include "lib/time/timevalue.hpp"

Description

Framerate specified as frames per second.

Implemented as rational number.

Definition at line 655 of file timevalue.hpp.

Public Member Functions

 FrameRate (uint fps)
 
 FrameRate (uint num, uint denom)
 
 FrameRate (size_t count, Duration timeReference)
 
 FrameRate (boost::rational< uint > fractionalRate)
 
double asDouble () const
 
Duration duration () const
 duration of one frame More...
 
 operator std::string () const
 

Static Public Member Functions

static FrameRate approx (double fps)
 

Static Public Attributes

static const FrameRate HALTED
 
static const FrameRate NTSC
 
static const FrameRate PAL
 predefined constant for PAL framerate
 
static const FrameRate STEP
 1 frame per second
 

Member Function Documentation

◆ duration()

Duration duration ( ) const

duration of one frame

Returns
time span of one frame of this rate, cast into internal Lumiera time scale

Definition at line 254 of file time.cpp.

+ Inheritance diagram for FrameRate:
+ Collaboration diagram for FrameRate:

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