CMTagCollectionCreateWithVideoOutputPreset

Function CMTagCollectionCreateWithVideoOutputPreset 

Source
pub unsafe extern "C-unwind" fn CMTagCollectionCreateWithVideoOutputPreset(
    allocator: Option<&CFAllocator>,
    preset: CMTagCollectionVideoOutputPreset,
    new_collection_out: NonNull<*const CMTagCollection>,
) -> i32
Available on crate features AVPlayerOutput and objc2-core-foundation and objc2-core-media only.
Expand description

Creates a CMTagCollection with the required tags to describe the specified video output requirements.

Convenience constructor to create a CMTagCollection with all of the required tags for use with video output interfaces.

Parameter allocator: CFAllocator to use to create the collection and internal data structures.

Parameter preset: CMTagCollectionVideoOutputPreset representing the desired video output scenario.

Parameter newCollectionOut: Address of a location to the newly created CMTagCollection. The client is responsible for releasing the returned CMTagCollection.

Returns: noErr if successful. Otherwise, an error describing why a tag collection could not be created.

ยงSafety

new_collection_out must be a valid pointer.