Lumiera  0.pre.03
»edit your freedom«
anonymous_namespace{time.cpp} Namespace Reference

Functions

int64_t calculate_drop_frame_number (gavl_time_t time)
 reverse the drop-frame calculation More...
 
int64_t calculate_quantisation (gavl_time_t time, gavl_time_t origin, gavl_time_t grid)
 
int64_t calculate_quantisation (gavl_time_t time, gavl_time_t origin, uint framerate, uint framerate_divisor=1)
 

Variables

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

Function Documentation

◆ calculate_drop_frame_number()

int64_t anonymous_namespace{time.cpp}::calculate_drop_frame_number ( gavl_time_t  time)
inline

reverse the drop-frame calculation

Parameters
timeabsolute time value in micro ticks
Returns
the absolute frame number using NTSC drop-frame encoding
Todo:
I doubt this works correct for negative times!!

Definition at line 593 of file time.cpp.

Referenced by lumiera_time_ntsc_drop_frames(), lumiera_time_ntsc_drop_hours(), lumiera_time_ntsc_drop_minutes(), and lumiera_time_ntsc_drop_seconds().

+ Here is the caller graph for this function: