waycap_rs/types/
video_frame.rs

1use std::os::fd::RawFd;
2
3#[derive(Debug)]
4pub struct EncodedVideoFrame {
5    pub data: Vec<u8>,
6    pub is_keyframe: bool,
7    /// Encoder value for when it should be presented (Presentation TimeStamp)
8    pub pts: i64,
9    /// Encoder value for when it should be decoded (Decode TimeStamp)
10    pub dts: i64,
11}
12
13#[derive(Debug)]
14pub struct RawVideoFrame {
15    pub data: Vec<u8>,
16    pub timestamp: i64,
17    pub dmabuf_fd: Option<RawFd>,
18    pub stride: i32,
19    pub offset: u32,
20    pub size: u32,
21    pub modifier: u64,
22}
23
24#[derive(Debug)]
25pub struct DmaBufPlane {
26    pub fd: i32,
27    pub offset: u32,
28    pub stride: u32,
29}