CompressorMediaDecoder
An interface with methods you use to retrieve decoded video, audio, and image data from a source media file.
Declaration
protocol CompressorMediaDecoderOverview
The Compressor app configures a decoder object to produce decoded video frames and audio samples based on the encoder attributes and source media properties.
During the encoding process, the Compressor app provides this decoder object to the extension. Call the methods in the decoder object to get:
Source video frames at the width, height, and frame rate specified in the decoding attributes.
Audio samples at the sample rate and channel layout specified in the encoder settings.
Uncompressed images from the decoder object with an image format that the extension, the source media, and the Compressor app filters support.
Closed-caption data and details of the source media timecode.
Topics
Getting Decoded Frames and Samples
copyAudio(atStart:count:)copyCloseCaptionData(_:frameCount:)copyFrame(_:)releaseFrame(_:)CompressorMediaDecoderPtr