pub(crate) trait WlPayload: Send + 'static {
// Required methods
fn encode(
&self,
source: Option<&Dmabuf>,
encoder: &mut FrameEncoder,
width: i32,
rgba: bool,
frame_number: u64,
qp: u32,
force_idr: bool,
) -> Result<Vec<u8>, String>;
fn rows(&self) -> Option<&[u8]>;
}Expand description
What a Wayland encode thread encodes a frame from: the packed rows a readback filled, or the GPU buffer a zero-copy session encodes in place.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".