mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
move TimecodeFormat to libtimecode
provide a way to convert any TimecodeFormat to float frame-rate, not only the currently active timecode_foramt. git-svn-id: svn://localhost/ardour2/branches/3.0@13249 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9116ea83dd
commit
a9abe3b1e1
9 changed files with 133 additions and 111 deletions
|
|
@ -32,6 +32,19 @@ enum Wrap {
|
|||
HOURS
|
||||
};
|
||||
|
||||
enum TimecodeFormat {
|
||||
timecode_23976,
|
||||
timecode_24,
|
||||
timecode_24976,
|
||||
timecode_25,
|
||||
timecode_2997,
|
||||
timecode_2997drop,
|
||||
timecode_30,
|
||||
timecode_30drop,
|
||||
timecode_5994,
|
||||
timecode_60
|
||||
};
|
||||
|
||||
struct Time {
|
||||
bool negative;
|
||||
uint32_t hours;
|
||||
|
|
@ -84,6 +97,9 @@ void seconds_floor (Time& timecode);
|
|||
void minutes_floor (Time& timecode);
|
||||
void hours_floor (Time& timecode);
|
||||
|
||||
float timecode_to_frames_per_second(TimecodeFormat const t);
|
||||
bool timecode_has_drop_frames(TimecodeFormat const t);
|
||||
|
||||
} // namespace Timecode
|
||||
|
||||
std::ostream& operator<< (std::ostream& ostr, const Timecode::Time& t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue