TechnologiesVideo, Photos & Camera

MediaExtension

iOSmacOStvOSwatchOSvisionOS

MediaExtension lets you build media plug-ins on macOS that extend the system's media pipeline with support for custom container formats, RAW image processing, and video decoding. To read a custom format, you adopt the MEFormatReaderExtension and MEFormatReader protocols and supply file and track metadata through MEFileInfo, METrackReader, and METrackInfo, while navigating samples with MESampleCursor, MESampleLocation, and MEByteSource. For RAW and video work, you implement MERAWProcessorExtension and MERAWProcessor or MEVideoDecoderExtension and MEVideoDecoder, configuring output through types such as MERAWProcessorPixelBufferManager, MEDecodeFrameOptions, and MEVideoDecoderPixelBufferManager. Status and error conditions are reported with MEError, MEDecodeFrameStatus, and MERAWProcessorNotification.

Format Reader Extensions 4

Protocols that implement a plug-in for reading a custom media container format.

  • Pr
    MEFormatReaderExtensionmacOS 14.0+
    @protocol MEFormatReaderExtension
  • Pr
    MEFormatReadermacOS 14.0+
    @protocol MEFormatReader
  • Pr
    METrackReadermacOS 14.0+
    @protocol METrackReader
  • Cl
    MEFormatReaderInstantiationOptionsmacOS 14.0+
    @class MEFormatReaderInstantiationOptions

File and Track Metadata 3

Types that describe the file and the individual tracks a format reader exposes.

  • Cl
    MEFileInfomacOS 14.0+
    @interface MEFileInfo
  • Cl
    METrackInfomacOS 14.0+
    @interface METrackInfo
  • Cl
    MEHEVCDependencyInfomacOS 14.0+
    @interface MEHEVCDependencyInfo

Sample Navigation 5

Types for locating and stepping through the media samples within a track.

  • Pr
    MESampleCursormacOS 14.0+
    @protocol MESampleCursor
  • Cl
    MESampleCursorChunkmacOS 14.0+
    @interface MESampleCursorChunk
  • Cl
    MESampleLocationmacOS 14.0+
    @interface MESampleLocation
  • Cl
    MEEstimatedSampleLocationmacOS 14.0+
    @interface MEEstimatedSampleLocation
  • Cl
    MEByteSourcemacOS 14.0+
    @interface MEByteSource

RAW Image Processing 5

Protocols and types for building a plug-in that develops RAW image data.

  • Pr
    MERAWProcessorExtensionmacOS 15.0+
    @protocol MERAWProcessorExtension
  • Pr
    MERAWProcessormacOS 15.0+
    @protocol MERAWProcessor
  • Cl
    MERAWProcessorPixelBufferManagermacOS 15.0+
    @interface MERAWProcessorPixelBufferManager
  • Cl
    MERAWProcessingParametermacOS 15.0+
    @interface MERAWProcessingParameter
  • En
    MERAWProcessorNotification
    An enumeration of notifications a RAW processor sends about changes to its state or parameters.

Video Decoding 4

Protocols and types for building a custom video decoder plug-in.

  • Pr
    MEVideoDecoderExtensionmacOS 14.0+
    @protocol MEVideoDecoderExtension
  • Pr
    MEVideoDecodermacOS 14.0+
    @protocol MEVideoDecoder
  • Cl
    MEVideoDecoderPixelBufferManagermacOS 14.0+
    @interface MEVideoDecoderPixelBufferManager
  • Cl
    MEDecodeFrameOptionsmacOS 14.0+
    @interface MEDecodeFrameOptions

Status and Errors 3

Types that report the status and error conditions of media extension operations.

  • St
    MEErrormacOS 14.0+
    A structure that describes errors produced by media extension plug-ins.
  • St
    MEDecodeFrameStatusmacOS 14.0+
    @enum MEDecodeFrameStatus
  • St
    MEFormatReaderParseAdditionalFragmentsStatusmacOS 14.0+
    @enum MEFormatReaderParseAdditionalFragmentsStatus

Extends 1

NSNotification
← Video, Photos & Camera