pub unsafe extern "C-unwind" fn VTRAWProcessingSessionCreate(
allocator: Option<&CFAllocator>,
format_description: &CMVideoFormatDescription,
output_pixel_buffer_attributes: Option<&CFDictionary>,
processing_session_options: Option<&CFDictionary>,
processing_session_out: NonNull<*mut VTRAWProcessingSession>,
) -> i32VTRAWProcessingSession and objc2-core-media only.Expand description
Creates a RAW video frame processing session.
.
Parameter allocator: An allocator for the session. Pass NULL to use the default allocator.
Parameter formatDescription: The CMVideoFormatDescription corresponding to the original media samples, containing sequence-level processing parameters.
Parameter outputPixelBufferAttributes: A CoreVideo pixel buffer attributes dictionary describing the client’s requirements for pixel buffers for output frames.
Pass NULL to receive the RAW processor’s native output format.
Parameter processingSessionOptions: A dictionary of creation-time options for the VTRAWProcessingSession.
Parameter processingSessionOut: Points to a variable to receive the new RAW processing session.
When you are done with the session, call VTRAWProcessingSessionInvalidate
to tear it down and then CFRelease to release your object reference.