libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
enums_timecode.h
Go to the documentation of this file.
1
10#pragma once
11
12
13#include <promeki/config.h>
14#if PROMEKI_ENABLE_CORE
15#include <promeki/namespace.h>
16#include <promeki/enum.h>
17
18PROMEKI_NAMESPACE_BEGIN
19
59class TimecodePackFormat : public TypedEnum<TimecodePackFormat> {
60 public:
61 PROMEKI_REGISTER_ENUM_TYPE_DISPLAY("TimecodePackFormat", "Timecode Pack Format", 0,
62 {"Vitc", 0, "VITC (SMPTE 12M-2)"},
63 {"Ltc", 1, "LTC (SMPTE 12M-1)"}); // default: Vitc
64
65 using TypedEnum<TimecodePackFormat>::TypedEnum;
66
67 static const TimecodePackFormat Vitc;
68 static const TimecodePackFormat Ltc;
69};
70
71inline const TimecodePackFormat TimecodePackFormat::Vitc{0};
72inline const TimecodePackFormat TimecodePackFormat::Ltc{1};
73
76PROMEKI_NAMESPACE_END
77
78#endif // PROMEKI_ENABLE_CORE