37 AJATimeBase(int64_t frameTimeScale, int64_t frameDuration);
46 AJATimeBase(int64_t frameTimeScale, int64_t frameDuration, int64_t audioRate);
60 void SetToDefault(
void);
70 void SetFrameRate(int64_t frameTimeScale, int64_t frameDuration);
89 void GetFrameRate(int64_t& frameTimeScale, int64_t& frameDuration)
const;
91 #if !defined(NTV2_DEPRECATE_18_1) 92 void GetFrameRate(uint32_t& frameTimeScale, uint32_t& frameDuration)
const;
100 int64_t GetFrameTimeScale(
void)
const;
107 void SetFrameTimeScale(int64_t timeScale);
114 int64_t GetFrameDuration(
void)
const;
121 void SetAudioRate(int64_t rate);
128 int64_t GetAudioRate()
const;
143 void SetTickRate(int64_t rate);
150 int64_t GetTickRate()
const;
159 int64_t FramesToSamples(int64_t frames,
bool round =
false)
const;
168 int64_t FramesToTicks(int64_t frames,
bool round =
false)
const;
176 double FramesToSeconds(int64_t frames)
const;
184 double ScaleUnitsToSeconds(int64_t num)
const;
193 int64_t FramesToMicroseconds(int64_t frames,
bool round =
false)
const;
202 int64_t FramesToNanoseconds100(int64_t frames,
bool round =
false)
const;
211 int64_t SamplesToFrames(int64_t samples,
bool round =
false)
const;
220 int64_t SamplesToTicks(int64_t samples,
bool round =
false)
const;
228 double SamplesToSeconds(int64_t samples);
237 int64_t SamplesToMicroseconds(int64_t samples,
bool round =
false);
246 int64_t TicksToFrames(int64_t ticks,
bool round =
false);
255 int64_t TicksToSamples(int64_t ticks,
bool round =
false);
263 double TicksToSeconds(int64_t ticks);
272 int64_t TicksToMicroseconds(int64_t ticks,
bool round =
false);
281 int64_t SecondsToFrames(
double seconds,
bool round =
false);
290 int64_t SecondsToSamples(
double seconds,
bool round =
false);
299 int64_t SecondsToTicks(
double seconds,
bool round =
false);
308 int64_t MicrosecondsToFrames(int64_t microseconds,
bool round =
false);
317 int64_t Nanoseconds100ToFrames(int64_t nanoseconds100,
bool round =
false);
326 int64_t MicrosecondsToSamples(int64_t microseconds,
bool round =
false);
335 int64_t MicrosecondsToTicks(int64_t microseconds,
bool round =
false);
342 int64_t GetSystemTicks();
359 bool IsCloseTo(int64_t frameTimeScale, int64_t frameDuration)
const;
369 bool IsNonIntegralRatio(
void)
const;
377 double GetFramesPerSecondDouble(
void)
const;
390 static int64_t SecondsToMicroseconds(
double seconds,
bool round =
false);
398 static double MicrosecondsToSeconds(int64_t microseconds);
400 static int64_t Convert(int64_t inValue, int64_t inRate, int64_t outRate,
bool round,
bool large);
401 static int64_t Convert(int64_t inValue, int64_t inScale, int64_t inDuration,
402 int64_t outScale, int64_t outDuration,
bool round,
bool large);
407 int64_t mFrameTimeScale;
408 int64_t mFrameDuration;
double GetFramesPerSecond(const NTV2FrameRate inFrameRate)
bool operator!=(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
Master header for the ajabase library.
bool operator==(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
Declares the enumeration constants used in the ajabase library.