pub unsafe extern "C-unwind" fn CMVideoFormatDescriptionCreateForImageBuffer(
allocator: Option<&CFAllocator>,
image_buffer: &CVImageBuffer,
format_description_out: NonNull<*const CMVideoFormatDescription>,
) -> i32Available on crate features
CMFormatDescription and objc2-core-video only.Expand description
Creates a format description for a video media stream contained in CVImageBuffers of the type provided.
This convenience function is equivalent to:
CMVideoFormatDescriptionCreate( allocator, ( CVPixelBufferGetTypeID() == CFGetTypeID( imageBuffer ) ? CVPixelBufferGetPixelFormatType( imageBuffer ) : 0, width of image, height of image, extensions );
where extensions is a CFDictionary of attachments to image buffer with keys specified by CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers, and also kCMFormatDescriptionExtension_BytesPerRow if applicable.
ยงSafety
format_description_out must be a valid pointer.