pub struct FrameMetadata {
pub last_present_time: i64,
pub last_mouse_update_time: i64,
pub accumulated_frames: u32,
pub rects_coalesced: bool,
pub protected_content_masked_out: bool,
pub pointer_position: Option<(i32, i32)>,
pub pointer_visible: bool,
pub dirty_rects: Vec<(i32, i32, i32, i32)>,
pub move_rects: Vec<MoveRect>,
}Expand description
Metadata about a captured frame.
This structure contains timing information, dirty regions, moved regions, and other metadata that can help optimize screen capture and streaming applications.
Fields§
§last_present_time: i64Timestamp of the last desktop image update (Windows performance counter)
last_mouse_update_time: i64Timestamp of the last mouse update (Windows performance counter)
accumulated_frames: u32Number of frames accumulated since the last processed frame
rects_coalesced: boolWhether dirty regions were coalesced and may contain unmodified pixels
protected_content_masked_out: boolWhether protected content was masked out in the captured frame
pointer_position: Option<(i32, i32)>Mouse cursor position and visibility
pointer_visible: boolWhether the mouse cursor is visible
dirty_rects: Vec<(i32, i32, i32, i32)>List of dirty rectangles that have changed since the last frame
move_rects: Vec<MoveRect>List of move rectangles that have been moved since the last frame
Implementations§
Source§impl FrameMetadata
impl FrameMetadata
Sourcepub fn has_updates(&self) -> bool
pub fn has_updates(&self) -> bool
Returns true if the frame contains any updates (dirty regions or moves)
Sourcepub fn has_mouse_updates(&self) -> bool
pub fn has_mouse_updates(&self) -> bool
Returns true if the mouse cursor has been updated
Sourcepub fn total_change_count(&self) -> usize
pub fn total_change_count(&self) -> usize
Returns the total number of changed regions
Trait Implementations§
Source§impl Clone for FrameMetadata
impl Clone for FrameMetadata
Source§fn clone(&self) -> FrameMetadata
fn clone(&self) -> FrameMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more