Contents

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>) -> CVReturn

Parameters

  • displayLink:

    The display link whose time base should be used to do the translation.

  • inTime:

    A pointer to a CVTimeStamp structure containing the source time to translate.

  • outTime:

    A pointer to a CVTimeStamp structure into which the target time is written. Before calling, you must set the version field (currently 0) to indicate which version of the structure you want. You should also set the flags field 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.

See Also

Inspecting Display Links