waycap-rs 2.0.0

High-level Wayland screen capture library with hardware-accelerated encoding
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug)]
pub struct EncodedAudioFrame {
    pub data: Vec<u8>,
    pub pts: i64,
    /// Capture timestamp in micro seconds
    pub timestamp: i64,
}

#[derive(Debug)]
pub struct RawAudioFrame {
    pub samples: Vec<f32>,
    pub timestamp: i64,
}