Ardour  9.0-pre0-582-g084a23a80d
time.h File Reference
#include <cmath>
#include <inttypes.h>
#include <ostream>
#include "temporal/visibility.h"
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Timecode::Time
 

Namespaces

 Timecode
 

Enumerations

enum  Timecode::Wrap {
  Timecode::NONE = 0 , Timecode::FRAMES , Timecode::SECONDS , Timecode::MINUTES ,
  Timecode::HOURS
}
 
enum  Timecode::TimecodeFormat {
  Timecode::timecode_23976 , Timecode::timecode_24 , Timecode::timecode_24976 , Timecode::timecode_25 ,
  Timecode::timecode_2997 , Timecode::timecode_2997drop , Timecode::timecode_2997000 , Timecode::timecode_2997000drop ,
  Timecode::timecode_30 , Timecode::timecode_30drop , Timecode::timecode_5994 , Timecode::timecode_60
}
 

Functions

Wrap Timecode::increment (Time &timecode, uint32_t)
 
Wrap Timecode::decrement (Time &timecode, uint32_t)
 
Wrap Timecode::increment_subframes (Time &timecode, uint32_t)
 
Wrap Timecode::decrement_subframes (Time &timecode, uint32_t)
 
Wrap Timecode::increment_seconds (Time &timecode, uint32_t)
 
Wrap Timecode::increment_minutes (Time &timecode, uint32_t)
 
Wrap Timecode::increment_hours (Time &timecode, uint32_t)
 
void Timecode::frames_floot (Time &timecode)
 
void Timecode::seconds_floor (Time &timecode)
 
void Timecode::minutes_floor (Time &timecode)
 
void Timecode::hours_floor (Time &timecode)
 
double Timecode::timecode_to_frames_per_second (TimecodeFormat const t)
 
bool Timecode::timecode_has_drop_frames (TimecodeFormat const t)
 
std::string Timecode::timecode_format_name (TimecodeFormat const t)
 
std::string Timecode::timecode_format_time (Timecode::Time const timecode)
 
bool Timecode::parse_timecode_format (std::string tc, Timecode::Time &TC)
 
std::string Timecode::timecode_format_sampletime (int64_t sample, double sample_sample_rate, double timecode_frames_per_second, bool timecode_drop_frames)
 
void Timecode::timecode_to_sample (Timecode::Time const &timecode, int64_t &sample, bool use_offset, bool use_subframes, double sample_sample_rate, uint32_t subframes_per_frame, bool offset_is_negative, int64_t offset_samples)
 
void Timecode::sample_to_timecode (int64_t sample, Timecode::Time &timecode, bool use_offset, bool use_subframes, double timecode_frames_per_second, bool timecode_drop_frames, double sample_sample_rate, uint32_t subframes_per_frame, bool offset_is_negative, int64_t offset_samples)
 
std::ostream & operator<< (std::ostream &ostr, const Timecode::Time &t)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ostr,
const Timecode::Time t 
)