CapSoftware / scap

High-performance, cross-platform screen capture library in Rust.
https://crates.io/crates/scap
Other
229 stars 44 forks source link

raw pixel buffers #127

Closed Brendonovich closed 2 weeks ago

Brendonovich commented 2 weeks ago

Introduces capturer.raw() which returns a RawCapturer. On macOS this struct exposes get_next_pixel_buffer, which returns a wrapper around the underlying CMSampleBuffer with minimal processing after the fact. We do this to sidestep scap's manual stride correction which in most cases is probably useful, but when looking for higher performance when working with a larger video processing pipeline is better suited to be done outside of scap.