MCPcopy Create free account
hub / github.com/Recordscript/recordscript / frame

Method frame

libs/scrap/src/common/x11.rs:23–32  ·  view source on GitHub ↗
(&'a mut self, _timeout: Duration)

Source from the content-addressed store, hash-verified

21
22impl TraitCapturer for Capturer {
23 fn frame<'a>(&'a mut self, _timeout: Duration) -> io::Result<Frame<'a>> {
24 let width = self.width();
25 let height = self.height();
26 Ok(Frame::PixelBuffer(PixelBuffer::new(
27 self.0.frame()?,
28 Pixfmt::BGRA,
29 width,
30 height,
31 )))
32 }
33}
34
35pub struct PixelBuffer<'a> {

Callers

nothing calls this directly

Calls 3

PixelBufferClass · 0.70
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected