Skip to main content

Module sample_buffer

Module sample_buffer 

Source
Available on crate feature cm only.
Expand description

CMSampleBuffer — framework-agnostic safe wrapper around a CoreMedia CMSampleBufferRef.

This wrapper exposes the generic CMSampleBuffer surface that every consumer needs: presentation timestamp, format description, attached data buffer (CMBlockBuffer), sample count, validity. Framework-specific attachment readers (e.g. SCStreamFrameInfo’s frame status, content rect, dirty rects) live in the consuming crates so that, for example, screencapturekit-rs’s SC-attachment readers don’t get pulled into videotoolbox-rs.

Structs§

CMSampleBuffer
Owned reference to a CoreMedia CMSampleBufferRef.