libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
Timecode::Mode Class Reference

Describes the timecode mode (frame rate and drop-frame status). More...

#include <timecode.h>

Public Member Functions

 Mode ()=default
 Constructs an invalid, default mode.
 
 Mode (const VtcFormat *format)
 Constructs a mode from a libvtc format pointer.
 
 Mode (uint32_t fps, uint32_t flags)
 Constructs a mode from a frame rate and flag set.
 
 Mode (TimecodeType type)
 Constructs a mode from a standard TimecodeType.
 
bool operator== (const Mode &other) const
 
bool operator!= (const Mode &other) const
 
uint32_t fps () const
 Returns the frames-per-second rate, or 0 if no format is set.
 
bool isValid () const
 Returns true if this mode has been explicitly set.
 
bool isDropFrame () const
 Returns true if this mode uses drop-frame counting.
 
bool hasFormat () const
 Returns true if a VtcFormat pointer is assigned.
 
const VtcFormatvtcFormat () const
 Returns the underlying libvtc format pointer.
 

Detailed Description

Describes the timecode mode (frame rate and drop-frame status).

Wraps a const VtcFormat* from libvtc together with a validity flag.

Constructor & Destructor Documentation

◆ Mode() [1/3]

Timecode::Mode::Mode ( const VtcFormat format)
inline

Constructs a mode from a libvtc format pointer.

Parameters
formatPointer to a VtcFormat, or nullptr for an invalid mode.

◆ Mode() [2/3]

Timecode::Mode::Mode ( uint32_t  fps,
uint32_t  flags 
)
inline

Constructs a mode from a frame rate and flag set.

Parameters
fpsFrames per second.
flagsBitmask of Flags values (e.g. DropFrame).

◆ Mode() [3/3]

Timecode::Mode::Mode ( TimecodeType  type)
inline

Constructs a mode from a standard TimecodeType.

Parameters
typeOne of the TimecodeType enum values.

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