#[non_exhaustive]pub enum StereoViewingMethodV2 {
FieldSequential {
eye_on_high_half: StereoEye,
},
SideBySide {
left_half: StereoEye,
},
PixelInterleaved {
pattern: [u8; 8],
},
DualInterface {
eye: StereoEye,
mirroring: DualInterfaceMirroring,
},
MultiView {
view_count: u8,
interleaving_method_code: u8,
},
StackedFrame {
top_half: StereoEye,
},
Proprietary,
Reserved(u8),
}Expand description
Stereo viewing method advertised by a DisplayID 2.x Stereo Display Interface block (0x27).
Each variant carries the method-specific parameters. Method codes that are reserved by the
spec are surfaced as StereoViewingMethodV2::Reserved with the raw method byte.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FieldSequential
Method 0x00 — Field-sequential stereo. eye_on_high_half identifies which eye view
is delivered during the HIGH half of the sync signal; the other eye is delivered
during the LOW half. Right corresponds to payload bit 0 = 1 (spec wording
“L/R polarity 1”), Left to bit 0 = 0 (“L/R polarity 0”).
SideBySide
Method 0x01 — Side-by-side stereo. left_half indicates which eye view occupies
the left half of the frame.
PixelInterleaved
Method 0x02 — Pixel-interleaved stereo. The 8-byte pattern describes an 8×8
L/R pixel mask (bit set = Left, clear = Right). MSB of each byte is the leftmost
pixel of that row.
Fields
DualInterface
Method 0x03 — Dual-interface stereo. Each physical interface carries a single
eye view; eye identifies which eye is delivered on this interface, and
mirroring describes how the image is oriented.
Fields
mirroring: DualInterfaceMirroringMirroring applied to this interface’s image.
MultiView
Method 0x04 — Multi-view stereo. view_count is the number of views and
interleaving_method_code is a vendor-defined identifier for how they interleave.
Fields
StackedFrame
Method 0x05 — Stacked-frame stereo (top/bottom). top_half indicates which eye
view occupies the top half of the frame.
Proprietary
Method 0xFF — Proprietary / vendor-defined.
Reserved(u8)
Method codes reserved by the DisplayID 2.x specification (0x06–0xFE).
Trait Implementations§
Source§impl Clone for StereoViewingMethodV2
impl Clone for StereoViewingMethodV2
Source§fn clone(&self) -> StereoViewingMethodV2
fn clone(&self) -> StereoViewingMethodV2
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StereoViewingMethodV2
impl Debug for StereoViewingMethodV2
Source§impl PartialEq for StereoViewingMethodV2
impl PartialEq for StereoViewingMethodV2
Source§fn eq(&self, other: &StereoViewingMethodV2) -> bool
fn eq(&self, other: &StereoViewingMethodV2) -> bool
self and other values to be equal, and is used by ==.