VTMultiPassStorageCreate(allocator:fileURL:timeRange:options:multiPassStorageOut:)
Creates a multipass storage object using a temporary file.
Declaration
func VTMultiPassStorageCreate(allocator: CFAllocator?, fileURL: CFURL?, timeRange: CMTimeRange, options: CFDictionary?, multiPassStorageOut: UnsafeMutablePointer<VTMultiPassStorage?>) -> OSStatusParameters
- allocator:
An allocator for the session. Pass
NULLto use the default allocator. - fileURL:
Specifies where to put the backing file for the multipass storage object. If you pass
NULLforfileURL, the video toolbox will pick a unique temporary file name. - timeRange:
Gives a hint to the multipass storage about valid time stamps for data. You can pass
kCMTimeRangeInvalidif you do not want to provide a time range hint. - options:
If the file did not exist when the storage was created, the file will be deleted when the multipass storage object is finalized, unless you set the Kvtmultipassstoragecreationoption_donotdelete option to Kcfbooleantrue in the
optionsdictionary. - multiPassStorageOut:
A pointer to the newly created multipass storage object.
Discussion
You can use the multipass storage object to perform multipass encoding; see kVTCompressionPropertyKey_MultiPassStorage.
Call CFRelease to release the multipass storage object when you are done with it.