pub type SharedMemoryCapturer = Capturer<SharedMemory>;Expand description
Capture screen to a chunk of shared memory.
To create an instance, see SharedMemoryCapturer::create and SharedMemoryCapturer::open.
Aliased Type§
pub struct SharedMemoryCapturer {
pub pointer_shape_buffer: Vec<u8>,
pub buffer: SharedMemory,
pub timeout_ms: u32,
/* private fields */
}Fields§
§pointer_shape_buffer: Vec<u8>§buffer: SharedMemoryThe buffer to store the captured frame. The data is stored in BGRA32 format.
timeout_ms: u32Timeout in milliseconds for the next frame. By default it is 300ms.