VTFrameSiloCreate(allocator:fileURL:timeRange:options:frameSiloOut:)
Creates a frame silo object using a temporary file.
Declaration
func VTFrameSiloCreate(allocator: CFAllocator?, fileURL: CFURL?, timeRange: CMTimeRange, options: CFDictionary?, frameSiloOut: UnsafeMutablePointer<VTFrameSilo?>) -> OSStatusParameters
- allocator:
An allocator for the frame silo. Pass
NULLto use the default allocator. - fileURL:
The URL of the backing file for the
VTFrameSiloobject. If you passNULLforfileURL, VideoToolbox will pick a unique temporary file name. - timeRange:
The valid time range for the frame silo. Must be valid for progress reporting.
- options:
Reserved, pass
NULL. - frameSiloOut:
Points to a Vtframesilo to receive the newly created object. Call
CFReleaseto release your retain on the created VTFrameSilo object when you are done with it.
Discussion
You can use the returned frame silo object to gather frames produced by multipass encoding.
Call CFRelease to release the frame silo object when you are done with it.