pub struct TargetBackgroundGridDescriptor {
pub horizontal_size: u16,
pub vertical_size: u16,
pub aspect_ratio_information: u8,
}Expand description
target_background_grid_descriptor body (§2.6.12 Table 2-49).
Describes a grid of unit pixels projected onto the display area (e.g. a monitor) for a video stream that is not intended to occupy the full display. A paired video_window_descriptor (§2.6.14) then places the stream’s window on this grid. Per §2.6.13:
horizontal_size— horizontal size of the target background grid in pixels.vertical_size— vertical size of the target background grid in pixels.aspect_ratio_information— sample or display aspect ratio of the grid, encoded per theaspect_ratio_informationfield of ITU-T Rec. H.262 | ISO/IEC 13818-2 (Table 2-49 cross-reference). Surfaced as the raw 4-bit code; this crate does not decode the H.262 table.
On the wire the body is exactly 4 bytes (Table 2-49):
byte 0: horizontal_size bits 13..6 (8)
byte 1: horizontal_size bits 5..0 (6) | vertical_size bits 13..12 (2)
byte 2: vertical_size bits 11..4 (8)
byte 3: vertical_size bits 3..0 (4) | aspect_ratio_information (4)Both size fields are big-endian 14-bit unsigned values; the table carries no reserved bits, so all 32 bits are payload.
Fields§
§horizontal_size: u16horizontal_size (14 bits) — grid width in pixels.
vertical_size: u16vertical_size (14 bits) — grid height in pixels.
aspect_ratio_information: u8aspect_ratio_information (4 bits) — raw H.262 aspect-ratio code.
Trait Implementations§
Source§impl Clone for TargetBackgroundGridDescriptor
impl Clone for TargetBackgroundGridDescriptor
Source§fn clone(&self) -> TargetBackgroundGridDescriptor
fn clone(&self) -> TargetBackgroundGridDescriptor
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 TargetBackgroundGridDescriptor
impl Eq for TargetBackgroundGridDescriptor
Source§impl PartialEq for TargetBackgroundGridDescriptor
impl PartialEq for TargetBackgroundGridDescriptor
Source§fn eq(&self, other: &TargetBackgroundGridDescriptor) -> bool
fn eq(&self, other: &TargetBackgroundGridDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetBackgroundGridDescriptor
Auto Trait Implementations§
impl Freeze for TargetBackgroundGridDescriptor
impl RefUnwindSafe for TargetBackgroundGridDescriptor
impl Send for TargetBackgroundGridDescriptor
impl Sync for TargetBackgroundGridDescriptor
impl Unpin for TargetBackgroundGridDescriptor
impl UnsafeUnpin for TargetBackgroundGridDescriptor
impl UnwindSafe for TargetBackgroundGridDescriptor
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