- Posts: 6
- Joined: Sun Jun 07, 2015 1:37 pm
To whom it may concern.
It seems that IDeckLinkOutput::GetHardwareReferenceClock(...) method is almost what I need. So my solution for now is to register an object as a callback handler by IDeckLink::SetScheduledFrameCompletionCallback(...), then get frame age within current output format timescale using IDeckLinkOutput::GetHardwareReferenceClock(...).
As far as I get it the 3rd parameter (timeInFrame) to GetHardwareReferenceClock would ticks count passed from last Ref-IN signal received, and the 4th parameter (ticksPerFrame) is number of that ticks in one frame.
So dividing timeInFrame / (ticksPerFrame * fps) I can get time passed since last Ref-IN signal.