Contents

releaseFrame(_:)

Release a decoded frame when the encoder extension no longer needs the frame.

Declaration

func releaseFrame(_ frame: IOSurface!)

Parameters

  • frame:

    The decoded frame to release.

Discussion

Use the releaseFrame: method to release a frame that the extension obtains by using the copyFrame: method and to notify the decoder that the encoder extension no longer needs the frame.

When you use the Objective-C manual reference-counting implementation, call the releaseFrame: method before the frame release call to insure the releaseFrame: method receives a valid frame.

See Also

Getting Decoded Frames and Samples