1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* author: Humi@bass_clef_ <bassclef.nico@gmail.com>
*/
//! # dxcapture
//! `dxcapture` is a library for capturing a Direct3D 11 device on Windows.
//!
//! # Examples
//! ```
//! let device = dxcapture::Device::default();
//! let capture = dxcapture::Capture::new(&device).unwrap();
//!
//! let raw = loop {
//! match capture.get_raw_frame() {
//! Ok(raw) => break raw,
//! Err(e) => {
//! if e == dxcapture::CaptureError::NoTexture {
//! // async, so sometimes it's not there.
//! continue;
//! }
//! panic!("{}", e);
//! }
//! }
//! };
//! // taked primary monitor.
//! // hoge raw
//! ```
//!
//! [Read more with image](`Capture::get_img_frame`)
//!
//! [Read more with opencv](`Capture::get_mat_frame`)
pub use *;
pub use *;
pub use enumerate_displays as enumerate_displays;
pub use get_capturable_windows as enumerate_windows;
pub use DisplayInfo;
pub use WindowInfo;