Function VTRAWProcessingSessionProcessFrame

Source
pub unsafe extern "C-unwind" fn VTRAWProcessingSessionProcessFrame(
    session: &VTRAWProcessingSession,
    input_pixel_buffer: &CVPixelBuffer,
    frame_options: Option<&CFDictionary>,
    output_handler: VTRAWProcessingOutputHandler,
) -> i32
Available on crate features block2 and objc2-core-video and VTRAWProcessingSession only.
Expand description

Call this function to submit RAW frames for format-specific processing using sequence and frame level parameters.

Processed frames may or may not be output before the function returns, The client should not modify the input pixel data after making this call. The RAW Processor will retain the input pixel buffer as long as necessary.

For any RAW processor, there is a finite number of frames that can be presented to VTRAWProcessingSessionProcessFrame before the function will block until the output callback is invoked.

Parameter session: The RAW processing session.

Parameter inputPixelBuffer: A CVPixelBuffer containing an input video frame to be processed.

Parameter frameOptions: Contains key/value pairs specifying additional properties for processing this frame. No keys currently. Pass NULL.

Parameter outputHandler: A VTRAWProcessingOutputHandler block which will be called once when processing is complete.