![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/time/grid.hpp"
Abstraction of a value alignment grid.
Such a grid has an underlying scale (origin and measurement) and is comprised of consecutive grid intervals, joined at the grid points. These can be addressed by an ordering number, centred at origin with grid point number zero. The classical example is a 25fps time frame grid, but in fact the length of the intervals is not necessarily constant. An entity defining such a grid provides functions to calculate the grid coordinates and to convert back to plain values. This includes a way of rounding to the next lower grid point, usable for grid aligning values.
Public Member Functions | |
| virtual | ~Grid () |
| this is an Interface | |
| virtual FrameCnt | gridPoint (TimeValue const &raw) const =0 |
| virtual Offset | gridLocal (TimeValue const &raw) const =0 |
| virtual TimeValue | timeOf (FrameCnt gridPoint) const =0 |
| virtual TimeValue | timeOf (FSecs gridTime, int=0) const =0 |
|
virtual |
this is an Interface
Definition at line 104 of file quantiser.cpp.
Implemented in FixedFrameQuantiser, and Quantiser.
Referenced by ChainFunctor::decodeLevel().
Here is the caller graph for this function:Implemented in FixedFrameQuantiser, and Quantiser.
Implemented in Quantiser, and FixedFrameQuantiser.
Referenced by ChainFunctor::encodeLevel().
Here is the caller graph for this function:Implemented in Quantiser, and FixedFrameQuantiser.
Inheritance diagram for Grid:
Collaboration diagram for Grid: