Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
quantiser.cpp File Reference

Implementation of support functions to create grid-aligned time and timecode values. More...

Go to the source code of this file.

Description

Implementation of support functions to create grid-aligned time and timecode values.

Definition in file quantiser.cpp.

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::time
 
namespace  lib::time::anonymous_namespace{quantiser.cpp}
 

Functions

int64_t calculate_quantisation (raw_time_64 time, uint64_t framerate, uint64_t framerate_divisor=1)
 Grid-align the raw time to a frame grid, which can be fractional.
 
PQuant getDefaultGridFallback ()
 
 LUMIERA_ERROR_DEFINE (UNKNOWN_GRID, "referring to an undefined grid or scale in value quantisation")
 
int64_t calculate_ntsc_drop_frame_number (raw_time_64 time)
 Compute the consecutive frame number from a given time, which is interpreted at the NTSC drop frame timecode grid.
 
raw_time_64 build_time_from_ntsc_drop_frame (uint frames, uint secs, uint mins, uint hours)
 Build effective time from a NTSC drop frame timecode.
 

Variables

const uint FRAMES_PER_10min = 10*60 * 30000/1001
 
const uint FRAMES_PER_1min = 1*60 * 30000/1001
 
const uint DISCREPANCY = (1*60 * 30) - FRAMES_PER_1min