inputPixelBufferReceiver(for:pixelBufferAttributes:)
Attaches the input to the writer and returns an input receiver for writing pixel buffers.
Declaration
func inputPixelBufferReceiver(for input: AVAssetWriterInput, pixelBufferAttributes attributes: CVPixelBufferCreationAttributes?) -> sending AVAssetWriterInput.PixelBufferReceiverParameters
- input:
The input to be attached to the writer.
- attributes:
The attributes of pixel buffers that will be vended by the input provider’s pixel buffer pool.
Return Value
A writer input receiver with an interface for writing pixel buffers.
See Also
Configuring input receivers
inputReceiver(for:)inputCaptionReceiver(for:)inputCaptionReceiverRequestingMultiPass(for:)inputMetadataReceiver(for:)inputMetadataReceiverRequestingMultiPass(for:)inputPixelBufferReceiverRequestingMultiPass(for:pixelBufferAttributes:)inputReceiverRequestingMultiPass(for:)inputTaggedPixelBufferGroupReceiver(for:pixelBufferAttributes:)inputTaggedPixelBufferGroupReceiverRequestingMultiPass(for:pixelBufferAttributes:)