CVDisplayLinkTranslateTime(_:_:_:)
Translates the time in the display link’s time base from one representation to another.
Declaration
func CVDisplayLinkTranslateTime(_ displayLink: CVDisplayLink, _ inTime: UnsafePointer<CVTimeStamp>, _ outTime: UnsafeMutablePointer<CVTimeStamp>) -> CVReturnParameters
- displayLink:
The display link whose time base should be used to do the translation.
- inTime:
A pointer to a
CVTimeStampstructure containing the source time to translate. - outTime:
A pointer to a
CVTimeStampstructure into which the target time is written. Before calling, you must set the version field (currently0) to indicate which version of the structure you want. You should also set theflagsfield to specify which representations to translate to.
Return Value
A Core Video result code. See Core Video Constants for possible values.
Discussion
Note that the display link has to be running for this call to succeed.