Class

AVAssetWriterInputPixelBufferAdaptor

A buffer used to append video samples packaged as pixel buffers to a single asset writer input.

Declaration

class AVAssetWriterInputPixelBufferAdaptor : NSObject

Overview

Instances of AVAssetWriterInputPixelBufferAdaptor provide a CVPixelBufferPool that you can use to allocate pixel buffers for writing to the output file. Using the provided pixel buffer pool for buffer allocation is typically more efficient than appending pixel buffers allocated using a separate pool.

Topics

Creating an Adaptor

init(assetWriterInput: AVAssetWriterInput, sourcePixelBufferAttributes: [String : Any]? = nil)

Creates a new pixel buffer adaptor to receive pixel buffers for writing to the output file.

Adding a Pixel Buffer

Inspecting a Pixel Buffer Adaptor

var assetWriterInput: AVAssetWriterInput

The asset writer input to which the adaptor should append pixel buffers.

var pixelBufferPool: CVPixelBufferPool?

A pixel buffer pool that vends and efficiently recycles pixel buffer objects that can be appended to the receiver.

var sourcePixelBufferAttributes: [String : Any]?

The pixel buffer attributes for the pixel buffers vended by the adaptor’s pixel buffer pool.

Relationships

Inherits From

Conforms To

See Also

File Export

Exporting Video to Alternative Formats

Convert an existing movie file to a different format.

class AVAssetExportSession

An object that transcodes the contents of an asset source object to create an output of the form described by a specified export preset.

class AVAssetWriter

An object used to write media data to a new file of a specified audiovisual container type.

class AVAssetWriterInput

A writer used to append media samples to a single track of an asset writer's output file.

let AVVideoTransferFunction_ITU_R_2100_HLG: String

The transfer function for the ITU_R BT.2100 color space.

class AVOutputSettingsAssistant

An object that specifies a set of parameters for configuring objects that use output settings dictionaries.

class AVAssetWriterInputGroup

A group of tracks in a mutually exclusive relationship.

class AVAssetWriterInputMetadataAdaptor

An object that defines an interface for writing metadata packaged as timed metadata groups into a single asset writer input.

class AVAssetWriterInputPassDescription

An object that defines an interface for querying about the requirements of the current pass.