Skip to main content

MultiviewerStatus

Struct MultiviewerStatus 

Source
pub struct MultiviewerStatus {
Show 19 fields pub uid: DeviceUid, pub mappings: [DeviceUid; 4], pub mcu_version: String, pub scaler_version: String, pub hw_view_mode: u8, pub view_mode: MultiviewerViewMode, pub pip_position: MultiviewerPipPosition, pub pip_size: MultiviewerPipSize, pub output_mode: MultiviewerOutputMode, pub hdcp_mode: MultiviewerHdcpMode, pub output_itc: MultiviewerItcMode, pub edid_template: MultiviewerEdidTemplate, pub aspect_ratio: MultiviewerAspectRatio, pub auto_switch: MultiviewerBool, pub audio_source: MultiviewerSource, pub audio_volume: Option<u8>, pub audio_muted: MultiviewerBool, pub video_sources: [MultiviewerSource; 4], pub remote_control: MultiviewerSource,
}
Expand description

A multiviewer’s complete reported state.

Every enumerated field passes an unrecognised wire value through as it arrived, so a firmware that adds a mode reaches the caller as a value it does not know rather than as whichever mode happens to be zero.

Fields§

§uid: DeviceUid

The multiviewer this report describes.

§mappings: [DeviceUid; 4]

The source device mapped to each of the four inputs, or DeviceUid::ZERO where the input has none.

A multiviewer running a module older than version 2026083100 leaves the previous device here when a mapping is removed, so on those an identifier is what was last mapped rather than what is mapped now, and nothing on the wire separates the two.

§mcu_version: String

The MCU firmware version.

§scaler_version: String

The scaler firmware version.

§hw_view_mode: u8

The layout the hardware reports, which the firmware maps to view_mode.

§view_mode: MultiviewerViewMode

The window layout.

§pip_position: MultiviewerPipPosition

Where the picture-in-picture window sits.

§pip_size: MultiviewerPipSize

How large the picture-in-picture window is.

§output_mode: MultiviewerOutputMode

The output resolution and refresh rate.

§hdcp_mode: MultiviewerHdcpMode

The HDCP version negotiated on the output.

§output_itc: MultiviewerItcMode

The IT-content flag set on the output.

§edid_template: MultiviewerEdidTemplate

The EDID template presented to the sources.

§aspect_ratio: MultiviewerAspectRatio

The aspect ratio the windows are scaled to.

§auto_switch: MultiviewerBool

Whether the multiviewer switches windows on its own.

§audio_source: MultiviewerSource

The window whose audio is being output.

§audio_volume: Option<u8>

Output volume as a percentage, or None when the device reported a value outside 0..=100.

§audio_muted: MultiviewerBool

Whether the output is muted.

§video_sources: [MultiviewerSource; 4]

The source shown in each of the four windows.

§remote_control: MultiviewerSource

The window receiving remote-control passthrough.

Implementations§

Source§

impl MultiviewerStatus

Source

pub fn window_count(&self) -> Option<u8>

How many windows the multiviewer is showing, or None when it has reported no layout.

This reads hw_view_mode rather than view_mode: the second is derived from the first plus a separate size read back from the scaler, so a failed readback leaves view_mode naming nothing while the window count is still known.

Trait Implementations§

Source§

impl Clone for MultiviewerStatus

Source§

fn clone(&self) -> MultiviewerStatus

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MultiviewerStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MultiviewerStatus

Source§

fn default() -> MultiviewerStatus

Returns the “default value” for a type. Read more
Source§

impl Eq for MultiviewerStatus

Source§

impl PartialEq for MultiviewerStatus

Source§

fn eq(&self, other: &MultiviewerStatus) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MultiviewerStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.