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;
90 void GetFrameRate(uint32_t& frameTimeScale, uint32_t& frameDuration)
const;
97 int64_t GetFrameTimeScale(
void)
const;
104 void SetFrameTimeScale(int64_t timeScale);
111 int64_t GetFrameDuration(
void)
const;
118 void SetAudioRate(int64_t rate);
125 int64_t GetAudioRate()
const;
140 void SetTickRate(int64_t rate);
147 int64_t GetTickRate()
const;
156 int64_t FramesToSamples(int64_t frames,
bool round =
false)
const;
165 int64_t FramesToTicks(int64_t frames,
bool round =
false)
const;
173 double FramesToSeconds(int64_t frames)
const;
181 double ScaleUnitsToSeconds(int64_t num)
const;
190 int64_t FramesToMicroseconds(int64_t frames,
bool round =
false)
const;
199 int64_t FramesToNanoseconds100(int64_t frames,
bool round =
false)
const;
208 int64_t SamplesToFrames(int64_t samples,
bool round =
false)
const;
217 int64_t SamplesToTicks(int64_t samples,
bool round =
false)
const;
225 double SamplesToSeconds(int64_t samples);
234 int64_t SamplesToMicroseconds(int64_t samples,
bool round =
false);
243 int64_t TicksToFrames(int64_t ticks,
bool round =
false);
252 int64_t TicksToSamples(int64_t ticks,
bool round =
false);
260 double TicksToSeconds(int64_t ticks);
269 int64_t TicksToMicroseconds(int64_t ticks,
bool round =
false);
278 int64_t SecondsToFrames(
double seconds,
bool round =
false);
287 int64_t SecondsToSamples(
double seconds,
bool round =
false);
296 int64_t SecondsToTicks(
double seconds,
bool round =
false);
305 int64_t MicrosecondsToFrames(int64_t microseconds,
bool round =
false);
314 int64_t Nanoseconds100ToFrames(int64_t nanoseconds100,
bool round =
false);
323 int64_t MicrosecondsToSamples(int64_t microseconds,
bool round =
false);
332 int64_t MicrosecondsToTicks(int64_t microseconds,
bool round =
false);
339 int64_t GetSystemTicks();
356 bool IsCloseTo(int64_t frameTimeScale, int64_t frameDuration)
const;
366 bool IsNonIntegralRatio(
void)
const;
374 double GetFramesPerSecondDouble(
void)
const;
387 static int64_t SecondsToMicroseconds(
double seconds,
bool round =
false);
395 static double MicrosecondsToSeconds(int64_t microseconds);
397 static int64_t Convert(int64_t inValue, int64_t inRate, int64_t outRate,
bool round,
bool large);
398 static int64_t Convert(int64_t inValue, int64_t inScale, int64_t inDuration,
399 int64_t outScale, int64_t outDuration,
bool round,
bool large);
404 int64_t mFrameTimeScale;
405 int64_t mFrameDuration;