Contents

VTCompressionSessionGetPixelBufferPool(_:)

Returns a pool that provides ideal source pixel buffers for a compression session.

Declaration

func VTCompressionSessionGetPixelBufferPool(_ session: VTCompressionSession) -> CVPixelBufferPool?

Parameters

  • session:

    The compression session.

Return Value

A configured pixel buffer pool.

Discussion

The compression session creates this pixel buffer pool based on the compressor’s pixel buffer attributes and any pixel buffer attributes passed in to VTCompressionSessionCreate(allocator:width:height:codecType:encoderSpecification:imageBufferAttributes:compressedDataAllocator:outputCallback:refcon:compressionSessionOut:). If the source pixel buffer attributes and the compressor pixel buffer attributes cannot be reconciled, the pool is based on the source pixel buffer attributes, and VideoToolbox converts each CVImageBuffer internally.

See Also

Encoding Frames