Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Library functions to support the formation of grid-aligned time values.
This is a crucial part of Lumiera's time and time handling framework; it serves as link between the precise internal time representation and various grid-aligned external standard time representations. The underlying theme is, by forcing all conversions to go through this central set of library functions, the notorious act of frame-aligning / grid-aligning time values, which can not be avoided, will at least be performed in a reproducible and predictable way. Moreover, the time handling library was built in a way such as to encourage use of the internal, abstracted yet precise time entities, so that the inevitable conversion to the imprecise but well-established external entities (frame numbers, SMPTE, drop frame, HMS) happens as late as possible.
Definition in file quantiser.hpp.
#include "lib/error.hpp"
#include "lib/time/grid.hpp"
#include "lib/time/formats.hpp"
#include "lib/time/timevalue.hpp"
#include "lib/iter-adapter.hpp"
#include <vector>
#include <string>
#include <cmath>
Classes | |
class | FixedFrameQuantiser |
Simple stand-alone Quantiser implementation based on a constant sized gird. More... | |
class | Quantiser |
Facility to create grid-aligned time values. More... | |
struct | ValTrait< NUM > |
struct | ValTrait< double > |
struct | ValTrait< int > |
Functions | |
PQuant | getDefaultGridFallback () |
LUMIERA_ERROR_DECLARE (UNKNOWN_GRID) | |
referring to an undefined grid or scale in value quantisation | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
struct lib::time::anonymous_namespace{quantiser.hpp}::ValTrait |
PQuant getDefaultGridFallback | ( | ) |
To be implemented later.
Definition at line 47 of file quantiser.cpp.
References lib::time::getDefaultGridFallback().
Referenced by ValTrait< double >::asInt(), and lib::time::getDefaultGridFallback().