pub unsafe extern "C-unwind" fn VTFrameSiloCallFunctionForEachSampleBuffer(
silo: &VTFrameSilo,
time_range: CMTimeRange,
refcon: *mut c_void,
callback: unsafe extern "C-unwind" fn(*mut c_void, NonNull<CMSampleBuffer>) -> i32,
) -> i32VTFrameSilo and objc2-core-media only.Expand description
Retrieves sample buffers from a VTFrameSilo object.
You call this function to retrieve sample buffers at the end of a multi-pass compression session.
Parameter timeRange: The decode time range of sample buffers to retrieve.
Pass kCMTimeRangeInvalid to retrieve all sample buffers from the VTFrameSilo.
Parameter callback: A function to be called, in decode order, with each sample buffer that was added.
To abort iteration early, return a nonzero status.
The VTFrameSilo may write sample buffers and data to the backing file between addition and retrieval;
do not expect to get identical object pointers back.
Returns: Returns kVTFrameSiloInvalidTimeRangeErr if any time ranges are non-numeric, overlap or are not in ascending order. Returns any nonzero status returned by the callback function.