8 releases

0.4.0 Oct 4, 2024
0.2.5 Apr 20, 2024
0.2.4 Oct 7, 2023
0.2.3 Jul 3, 2023
0.1.0 Jun 29, 2023

#123 in Graphics APIs

Download history 12/week @ 2024-09-23 108/week @ 2024-09-30 22/week @ 2024-10-07

142 downloads per month

MIT license

37KB
776 lines

libharuhishot

libharuhishot, it is used for wlr-screencopy, split it because I want to help with wayshot, but I also learn a lot. I like my program very much, because it makes me feel alive. Wayshot is a good program, please help them.

The lib is simple enough to use, you can take the haruhishot for example, simple useage is like

use libharuhishot::HaruhiShotState;
fn main() {
  let mut state = HaruhiShotState::init().unwrap();
  let buffer = state.capture_out_frame(
       &state.display[0].clone,
       state.display_logic_size[0],
       state.display_transform[id],
       None
  ).unwrap();
}

Then you will get a [FrameInfo], There is a mmap , you can get data there


lib.rs:

libharuhishot, it is used for wlr-screencopy, split it because I want to help with wayshot, but I also learn a lot. I like my program very much, because it makes me feel alive. Wayshot is a good program, please help them.

The lib is simple enough to use, you can take the haruhishot for example, simple useage is like

use libharuhishot::HaruhiShotState;
let mut state = HaruhiShotState::init().unwrap();
let buffer = state.capture_output_frame(
    &state.displays[0].clone(),
    state.display_logic_size[0],
    state.display_transform[0],
    None
).unwrap();

Then you will get a [FrameInfo], There is a mmap , you can get data there

Dependencies

~8–18MB
~255K SLoC