pub struct VideoWallCommand {
pub target: DeviceUid,
pub pos_x: u16,
pub pos_y: u16,
pub width: u16,
pub height: u16,
pub raster_w: u16,
pub raster_h: u16,
pub op: VideoWallOp,
}Expand description
Asks one sink to crop its source to a wall window.
This replaces the sink’s window outright: unlike a V2IP device config, no field carries a validity marker, and a zero width or height is the wire spelling of “clear the wall and show the full frame” rather than “unset”.
The opcode belongs to the loadable v2ipwall module rather than MatrixOS, and a wall has no object of its own on the wire: it is a set of sinks each holding one rectangle, one frame each. It is a command with no reply, so nothing here is ever a status readback.
Fields§
§target: DeviceUidThe sink to act on.
pos_x: u16Window origin, horizontal.
pos_y: u16Window origin, vertical.
width: u16Window width.
height: u16Window height.
raster_w: u16Active picture width the window was authored against, as on
VideoWallWindow.
raster_h: u16Active picture height the window was authored against.
op: VideoWallOpWhat to do with the window.
Implementations§
Source§impl VideoWallCommand
impl VideoWallCommand
Sourcepub fn has_window(&self) -> bool
pub fn has_window(&self) -> bool
Reports whether the geometry in this command is meaningful.
A revert zeroes the window and raster and the receiver ignores those bytes, so its zeros are not a clear.
Sourcepub fn is_cleared(&self) -> bool
pub fn is_cleared(&self) -> bool
Reports a command that clears the wall and shows the full frame.
Trait Implementations§
Source§impl Clone for VideoWallCommand
impl Clone for VideoWallCommand
Source§fn clone(&self) -> VideoWallCommand
fn clone(&self) -> VideoWallCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more