pub struct DxgiCaptureOptions {
pub area: CaptureArea,
pub fps: u32,
pub capture_mode: CaptureMode,
}Available on Windows and crate feature
dxgi-capture and (crate features dxgi-capture or wasapi-capture) only.Expand description
Construction-time options for DxgiCaptureSource::open.
Fields§
§area: CaptureAreaWhich output(s) to capture from — see CaptureArea.
fps: u32The constant rate frames are emitted at — see DxgiCaptureSource’s
own docs on why this is a fixed output rate (like
crate::elements::TestVideoSource::new’s framerate), not a cap
on an otherwise irregular one. 30 by default, matching
TestVideoSource’s own default.
capture_mode: CaptureModeCPU (the original behavior) or GPU (zero-copy) capture — see
CaptureMode. CaptureMode::Cpu { include_cursor: false } by
default, so existing callers building DxgiCaptureOptions { .. ..Default::default() } keep today’s behavior unchanged.
Trait Implementations§
Source§impl Clone for DxgiCaptureOptions
impl Clone for DxgiCaptureOptions
Source§fn clone(&self) -> DxgiCaptureOptions
fn clone(&self) -> DxgiCaptureOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DxgiCaptureOptions
impl Debug for DxgiCaptureOptions
Auto Trait Implementations§
impl Freeze for DxgiCaptureOptions
impl RefUnwindSafe for DxgiCaptureOptions
impl Send for DxgiCaptureOptions
impl Sync for DxgiCaptureOptions
impl Unpin for DxgiCaptureOptions
impl UnsafeUnpin for DxgiCaptureOptions
impl UnwindSafe for DxgiCaptureOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more