39 #ifndef LIB_TIME_QUANTISER_H 40 #define LIB_TIME_QUANTISER_H 61 template<
typename NUM>
67 static int asInt (
int val) {
return val; }
68 static double asDouble (
int val) {
return val; }
74 static int asInt (
double val) {
return std::floor(0.5+val); }
75 static double asDouble (
double val) {
return val; }
103 :
public virtual Grid 117 return supportedFormats_.
check<FMT>();
Facility to create grid-aligned time values.
Framerate specified as frames per second.
Helper template(s) for creating Lumiera Forward Iterators.
#define LUMIERA_ERROR_DECLARE(err)
Forward declare an error constant.
Implementation namespace for support and library code.
Lumiera's internal time value datatype.
Token or Atom with distinct identity.
definition of a time grid abstraction for time and timecode handling.
static int asInt(double val)
in accordance with Lumiera's time handling RfC
PQuant getDefaultGridFallback()
boost::rational< int64_t > FSecs
rational representation of fractional seconds
Lumiera error handling (C++ interface).
Duration is the internal Lumiera time metric.
Abstraction of a value alignment grid.
int64_t FrameCnt
relative framecount or frame number.
a family of time value like entities and their relationships.
basic constant internal time value.
Simple stand-alone Quantiser implementation based on a constant sized gird.