No project description provided
Project description
wc_rocm
A wrapper around windows-capture that captures the screen directly into PyTorch CUDA tensors, avoiding CPU memory copies and inter-device memory transfers.
To avoid reinstalling torch, it's not listed as a dependency, but a ROCm-enabled PyTorch installation is required. It only works on x64 Windows with an AMD GPU.
Usage
from wc_rocm import WindowsCapture
capture = WindowsCapture(
monitor_index=1,
device_id=0,
reuse_output_buffer=True,
output_buffer_count=4,
)
When buffer reuse is enabled, tensors may be overwritten after several frames (ring-buffer behavior), so clone tensors in your callback if you need to keep them long-term.
Credits
This was written by gemini-cli and Claude Code. Originally written by NiiightmareXD windows-capture-python and forked from Nagadomi wc_cuda, then further optimized by Claude Code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wc_rocm-0.1.3.post1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: wc_rocm-0.1.3.post1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 190.3 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c99fc5c77098f15efc512fd06951127f049c958686e9b0780a8f901222eb6c
|
|
| MD5 |
c39f937ed08598813fe637bbaf254ae0
|
|
| BLAKE2b-256 |
c6325b688ef22f4f131e0944d7a60d765dfd1180eecd2eceda2bab1e68f4a508
|