Function CVDisplayLinkTranslateTime

Source
pub unsafe extern "C-unwind" fn CVDisplayLinkTranslateTime(
    display_link: &CVDisplayLink,
    in_time: NonNull<CVTimeStamp>,
    out_time: NonNull<CVTimeStamp>,
) -> CVReturn
👎Deprecated: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
Available on crate features CVBase and CVReturn and CVDisplayLink only.
Expand description

Translates the time in the CVDisplayLink’s time base from one representation to another. Note that the device has to be running for this call to succeed.

Parameter displayLink: The CVDisplayLink who’s timebase should be used to do the translation.

Parameter inTime: A CVTimeStamp containing the source time to be translated.

Parameter outTime: A CVTimeStamp into which the target time will be written. This struct’s version field must currently be set correctly (currently 0) to indicate which version of the timestamp struct is desired. As well, the flags field should be used to specify which representations to translate to.

Returns: kCVReturnSuccess if the time could be translated, otherwise an error indicating why the operation failed.