Struct dxgcap::DXGIManager [] [src]

pub struct DXGIManager {
    // some fields omitted
}

Manager of DXGI duplicated outputs

Methods

impl DXGIManager

fn new(timeout_ms: u32) -> Result<DXGIManager, &'static str>

Construct a new manager with capture timeout

fn set_capture_source_index(&mut self, cs: usize)

Set index of capture source to capture from

fn get_capture_source_index(&self) -> usize

fn set_timeout_ms(&mut self, timeout_ms: u32)

Set timeout to use when capturing

fn acquire_output_duplication(&mut self) -> Result<(), ()>

Duplicate and acquire output selected by capture_source_index

fn capture_frame(&mut self) -> Result<(Vec<BGRA8>, (usize, usize)), CaptureError>

Capture a frame

On success, return Vec with pixels and width and height of frame. On failure, return CaptureError.