|
Ardour
9.0-pre0-1950-g391fe97693
|
Classes | |
| struct | Time |
Enumerations | |
| enum | Wrap { NONE = 0 , FRAMES , SECONDS , MINUTES , HOURS } |
| enum | TimecodeFormat { timecode_23976 , timecode_24 , timecode_24976 , timecode_25 , timecode_2997 , timecode_2997drop , timecode_2997000 , timecode_2997000drop , timecode_30 , timecode_30drop , timecode_5994 , timecode_60 } |
Functions | |
| Wrap | increment (Time &timecode, uint32_t) |
| Wrap | decrement (Time &timecode, uint32_t) |
| Wrap | increment_subframes (Time &timecode, uint32_t) |
| Wrap | decrement_subframes (Time &timecode, uint32_t) |
| Wrap | increment_seconds (Time &timecode, uint32_t) |
| Wrap | increment_minutes (Time &timecode, uint32_t) |
| Wrap | increment_hours (Time &timecode, uint32_t) |
| void | frames_floot (Time &timecode) |
| void | seconds_floor (Time &timecode) |
| void | minutes_floor (Time &timecode) |
| void | hours_floor (Time &timecode) |
| double | timecode_to_frames_per_second (TimecodeFormat const t) |
| bool | timecode_has_drop_frames (TimecodeFormat const t) |
| std::string | timecode_format_name (TimecodeFormat const t) |
| std::string | timecode_format_time (Timecode::Time const timecode) |
| bool | parse_timecode_format (std::string tc, Timecode::Time &TC) |
| std::string | timecode_format_sampletime (int64_t sample, double sample_sample_rate, double timecode_frames_per_second, bool timecode_drop_frames) |
| void | 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 | 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) |
| enum Timecode::Wrap |
| void Timecode::frames_floot | ( | Time & | timecode | ) |
| void Timecode::hours_floor | ( | Time & | timecode | ) |
| void Timecode::minutes_floor | ( | Time & | timecode | ) |
| bool Timecode::parse_timecode_format | ( | std::string | tc, |
| Timecode::Time & | TC | ||
| ) |
| 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 | ||
| ) |
Convert audio sample time (samples per second) to timecode (frames per second)
| sample | audio sample time to convert |
| timecode | resulting Timecode |
| use_offset | apply offset as given by offset_is_negative and offset_samples |
| use_subframes | use subframes_per_frame when converting |
| timecode_frames_per_second | target framerate |
| timecode_drop_frames | true if fps uses drop-frame-counting. only valid for 29.97 = 30000/1001 fps |
| sample_sample_rate | source sample-rate, may include pull up/down |
| subframes_per_frame | sub-frames per frame – must not be 0 if use_subframes == true |
| offset_is_negative | true if offset_samples is to be subtracted |
| offset_samples | sample offset to add or subtract |
| void Timecode::seconds_floor | ( | Time & | timecode | ) |
| std::string Timecode::timecode_format_name | ( | TimecodeFormat const | t | ) |
| std::string Timecode::timecode_format_sampletime | ( | int64_t | sample, |
| double | sample_sample_rate, | ||
| double | timecode_frames_per_second, | ||
| bool | timecode_drop_frames | ||
| ) |
| std::string Timecode::timecode_format_time | ( | Timecode::Time const | timecode | ) |
| bool Timecode::timecode_has_drop_frames | ( | TimecodeFormat const | t | ) |
| double Timecode::timecode_to_frames_per_second | ( | TimecodeFormat const | t | ) |
| 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 | ||
| ) |
Convert timecode (frames per second) to audio sample time (samples per second)
| timecode | Timecode to convert (also includes frame-rate) |
| sample | returned corresponding audio sample time |
| use_offset | apply offset as given by offset_is_negative and offset_samples |
| use_subframes | use subframes_per_frame when converting |
| sample_sample_rate | target sample-rate, may include pull up/down |
| subframes_per_frame | sub-frames per frame – must not be 0 if use_subframes == true |
| offset_is_negative | true if offset_samples is to be subtracted |
| offset_samples | sample offset to add or subtract |