win_desktop_duplication-0.10.1 has been yanked.
Windows Desktop Duplication
This is meant to provide a low latency, low level access to desktop frames for use in applications like Game streaming (e.g., Google Stadia, Microsoft XCloud).
Crate provides convenient wrapper for acquiring gpu textures from Windows desktop duplication api. The crate includes some convenient features that the source api does not provide
Async Example
Although this example shows using
TextureReader, for best performance, you want to use the texture directly to encode via one of the hardware based encoders like nvenc or quick-sync.
use *;
use ;
async
Sync Example
Although this example shows using
TextureReader, for best performance, you want to use the texture directly to encode via one of the hardware based encoders like nvenc or quick-sync.
use *;
use ;
Features
- VSync when providing frames
- Auto draw cursor onto the frame
- Handle desktop switch automatically
- Convenient functions to copy pixel data in cpu memory
- Scale and color conversion.