Function VTFrameSiloSetTimeRangesForNextPass

Source
pub unsafe extern "C-unwind" fn VTFrameSiloSetTimeRangesForNextPass(
    silo: &VTFrameSilo,
    time_range_count: CMItemCount,
    time_range_array: NonNull<CMTimeRange>,
) -> i32
Available on crate features VTFrameSilo and objc2-core-media only.
Expand description

Begins a new pass of samples to be added to a VTFrameSilo object.

Previously-added sample buffers with decode timestamps within the time ranges will be deleted from the VTFrameSilo. It is not necessary to call VTFrameSiloSetTimeRangesForNextPass before adding the first pass’ sample buffers.

Returns: Returns kVTFrameSiloInvalidTimeRangeErr if any time ranges are non-numeric, overlap or are not in ascending order.