51 #ifndef LUMIERA_TIME_H 52 #define LUMIERA_TIME_H 55 #include <gavl/gavl.h> 111 lumiera_quantise_frames_fps (gavl_time_t
time, gavl_time_t origin, uint framerate);
int lumiera_time_ntsc_drop_hours(gavl_time_t time)
Extract the hour part of given time, using NTSC drop-frame timecode.
gavl_time_t lumiera_build_time(long millis, uint secs, uint mins, uint hours)
Build a time value by summing up the given components.
Framerate specified as frames per second.
int lumiera_time_ntsc_drop_frames(gavl_time_t time)
Extract the frame part of given time, using NTSC drop-frame timecode.
int lumiera_time_ntsc_drop_seconds(gavl_time_t time)
Extract the second part of given time, using NTSC drop-frame timecode.
int lumiera_time_minutes(gavl_time_t time)
Extract the minute part of given time.
gavl_time_t lumiera_framecount_to_time(uint64_t frameCount, lib::time::FrameRate const &fps)
Converts a frame count into Lumiera's internal time scale.
int lumiera_time_millis(gavl_time_t time)
Extract the milliseconds part of given time.
char * lumiera_tmpbuf_print_time(gavl_time_t time)
int lumiera_time_seconds(gavl_time_t time)
Extract the seconds part of given time.
gavl_time_t lumiera_time_of_gridpoint(int64_t nr, gavl_time_t origin, gavl_time_t grid)
Calculate time of a grid point (frame start)
boost::rational< int64_t > FSecs
rational representation of fractional seconds
gavl_time_t lumiera_build_time_ntsc_drop(uint frames, uint secs, uint mins, uint hours)
Builds a time value by summing up the given components.
gavl_time_t lumiera_frame_duration(lib::time::FrameRate const &fps)
Calculates the duration of one frame in Lumiera time units.
gavl_time_t lumiera_rational_to_time(lib::time::FSecs const &fractionalSeconds)
Converts a fraction of seconds to Lumiera's internal opaque time scale.
int64_t lumiera_quantise_frames(gavl_time_t time, gavl_time_t origin, gavl_time_t grid)
Quantise the given time into a fixed grid, relative to the origin.
gavl_time_t lumiera_build_time_fps(uint fps, uint frames, uint secs, uint mins, uint hours)
Builds a time value by summing up the given components.
int lumiera_time_hours(gavl_time_t time)
Extract the hour part of given time.
int lumiera_time_ntsc_drop_minutes(gavl_time_t time)
Extract the minute part of given time, using NTSC drop-frame timecode.
a family of time value like entities and their relationships.
gavl_time_t lumiera_quantise_time(gavl_time_t time, gavl_time_t origin, gavl_time_t grid)
Similar to lumiera_quantise_frames, but returns a grid aligned relative time.
int lumiera_time_frames(gavl_time_t time, uint fps)
Extract the remaining frame part of given time.