pub struct FrameInfo {
pub frame_status: Option<SCFrameStatus>,
pub display_time: Option<u64>,
pub scale_factor: Option<f64>,
pub content_scale: Option<f64>,
pub content_rect: Option<CGRect>,
pub bounding_rect: Option<CGRect>,
pub screen_rect: Option<CGRect>,
pub presenter_overlay_content_rect: Option<CGRect>,
}Expand description
Snapshot of every SCStreamFrameInfo attachment on a sample buffer.
Returned by CMSampleBuffer::frame_info. Each field is Some when the
underlying attachment was present (depends on macOS version, output type,
and stream configuration); None indicates the attachment was missing.
Fields§
§frame_status: Option<SCFrameStatus>SCStreamFrameInfo.status — frame completeness / idle state.
display_time: Option<u64>SCStreamFrameInfo.displayTime — mach absolute time the frame was
composited.
scale_factor: Option<f64>SCStreamFrameInfo.scaleFactor — display scale (e.g. 2.0 for Retina).
content_scale: Option<f64>SCStreamFrameInfo.contentScale — capture scale relative to the
source content.
content_rect: Option<CGRect>SCStreamFrameInfo.contentRect — captured content within the frame.
bounding_rect: Option<CGRect>SCStreamFrameInfo.boundingRect — bounding rect of all captured
windows (macOS 14.0+).
screen_rect: Option<CGRect>SCStreamFrameInfo.screenRect — full screen rect (macOS 13.1+).
presenter_overlay_content_rect: Option<CGRect>SCStreamFrameInfo.presenterOverlayContentRect — Presenter Overlay
bounding rect (macOS 14.2+).