pub struct VideoWindowDescriptor {
pub horizontal_offset: u16,
pub vertical_offset: u16,
pub window_priority: u8,
}Expand description
video_window_descriptor body (§2.6.14 Table 2-50).
Describes the window characteristics of the associated video elementary stream; its offsets reference the grid established by the stream’s paired target_background_grid_descriptor (§2.6.12). Per §2.6.15:
horizontal_offset— horizontal position of the top-left pixel of the video display window (or display rectangle) on the target background grid. The top-left pixel shall coincide with a grid pixel.vertical_offset— vertical position of the same top-left pixel on the grid.window_priority— overlap order,0lowest through15highest; windows at priority15are always visible.
On the wire the body is exactly 4 bytes (Table 2-50), laid out identically to the target_background_grid_descriptor’s first three fields:
byte 0: horizontal_offset bits 13..6 (8)
byte 1: horizontal_offset bits 5..0 (6) | vertical_offset bits 13..12 (2)
byte 2: vertical_offset bits 11..4 (8)
byte 3: vertical_offset bits 3..0 (4) | window_priority (4)Both offset fields are big-endian 14-bit unsigned values; the table carries no reserved bits, so all 32 bits are payload.
Fields§
§horizontal_offset: u16horizontal_offset (14 bits) — top-left X on the grid, in pixels.
vertical_offset: u16vertical_offset (14 bits) — top-left Y on the grid, in pixels.
window_priority: u8window_priority (4 bits) — overlap order, 0 lowest, 15
highest (always visible).
Trait Implementations§
Source§impl Clone for VideoWindowDescriptor
impl Clone for VideoWindowDescriptor
Source§fn clone(&self) -> VideoWindowDescriptor
fn clone(&self) -> VideoWindowDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VideoWindowDescriptor
Source§impl Debug for VideoWindowDescriptor
impl Debug for VideoWindowDescriptor
impl Eq for VideoWindowDescriptor
Source§impl PartialEq for VideoWindowDescriptor
impl PartialEq for VideoWindowDescriptor
Source§fn eq(&self, other: &VideoWindowDescriptor) -> bool
fn eq(&self, other: &VideoWindowDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoWindowDescriptor
Auto Trait Implementations§
impl Freeze for VideoWindowDescriptor
impl RefUnwindSafe for VideoWindowDescriptor
impl Send for VideoWindowDescriptor
impl Sync for VideoWindowDescriptor
impl Unpin for VideoWindowDescriptor
impl UnsafeUnpin for VideoWindowDescriptor
impl UnwindSafe for VideoWindowDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more