#[non_exhaustive]pub enum StereoViewingMode {
FieldSequential,
SideBySide,
TopAndBottom,
RowInterleaved,
ColumnInterleaved,
PixelInterleaved,
Reserved(u8),
}Expand description
Stereo content format, decoded from Stereo Display Interface Data Block (0x10) byte 0 bits 3:0.
Describes how left-eye and right-eye images are encoded in the video signal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FieldSequential
Field sequential — left and right frames alternate at double frame rate (0).
Requires an external sync signal to the glasses. The polarity of that signal
is encoded in DisplayIdStereoInterface::sync_polarity_positive.
SideBySide
Side-by-side — left and right images packed horizontally at half width each (1).
TopAndBottom
Top-and-bottom — left and right images packed vertically at half height each (2).
RowInterleaved
Row interleaved — odd display rows carry the left eye, even rows the right eye (3).
ColumnInterleaved
Column interleaved — odd display columns carry the left eye, even columns the right (4).
PixelInterleaved
Pixel interleaved / checkerboard — left and right pixels alternate in a
checkerboard pattern (5).
Reserved(u8)
Reserved or unrecognized value (6–15).
Implementations§
Source§impl StereoViewingMode
impl StereoViewingMode
Sourcepub fn from_nibble(nibble: u8) -> Self
pub fn from_nibble(nibble: u8) -> Self
Decodes the stereo viewing mode from the lower 4 bits of byte 0.
Trait Implementations§
Source§impl Clone for StereoViewingMode
impl Clone for StereoViewingMode
Source§fn clone(&self) -> StereoViewingMode
fn clone(&self) -> StereoViewingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more