copyFrame(_:)
Returns the decoded video frame indicated by the frame number.
Declaration
func copyFrame(_ frameNumber: Int64) -> IOSurface!Parameters
- frameNumber:
The video frame to retrieve.
Return Value
IOSurface-based video frame buffers.
Discussion
Use the values in the decodingAttributes() dictionary to find the video attributes, such as height and pixel ratio, of the decoded frame.