Function VTFrameSiloAddSampleBuffer

Source
pub unsafe extern "C-unwind" fn VTFrameSiloAddSampleBuffer(
    silo: &VTFrameSilo,
    sample_buffer: &CMSampleBuffer,
) -> i32
Available on crate features VTFrameSilo and objc2-core-media only.
Expand description

Adds a sample buffer to a VTFrameSilo object.

Within each pass, sample buffers must have strictly increasing decode timestamps. Passes after the first pass are begun with a call to VTFrameSiloSetTimeRangesForNextPass. After a call to VTFrameSiloSetTimeRangesForNextPass, sample buffer decode timestamps must also be within the stated time ranges. Note that CMTimeRanges are considered to contain their start times but not their end times.

Returns: Returns kVTFrameSiloInvalidTimeStampErr if an attempt is made to add a sample buffer with an inappropriate decode timestamp.