pub struct VideoStreamType {
    pub pixel_format: PixelFormat,
    pub color_space: ColorSpace,
    pub width: u32,
    pub height: u32,
    pub coded_width: u32,
    pub coded_height: u32,
    pub pixel_aspect_ratio_width: u32,
    pub pixel_aspect_ratio_height: u32,
    pub stride: u32,
}Expand description
Describes the type of a video elementary stream.
Fields§
§pixel_format: PixelFormat§color_space: ColorSpace§width: u32Dimensions of the video frames as displayed in pixels.
height: u32§coded_width: u32Dimensions of the video frames as encoded in pixels. These values must be equal to or greater than the respective width/height values.
coded_height: u32§pixel_aspect_ratio_width: u32The aspect ratio of a single pixel as frames are intended to be displayed.
pixel_aspect_ratio_height: u32§stride: u32The number of bytes per ‘coded’ row in the primary video plane.
Trait Implementations§
Source§impl Clone for VideoStreamType
 
impl Clone for VideoStreamType
Source§fn clone(&self) -> VideoStreamType
 
fn clone(&self) -> VideoStreamType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for VideoStreamType
 
impl Debug for VideoStreamType
Source§impl<D> Decode<VideoStreamType, D> for VideoStreamTypewhere
    D: ResourceDialect,
 
impl<D> Decode<VideoStreamType, D> for VideoStreamTypewhere
    D: ResourceDialect,
Source§fn new_empty() -> VideoStreamType
 
fn new_empty() -> VideoStreamType
Creates a valid instance of 
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<VideoStreamType, D> for &VideoStreamTypewhere
    D: ResourceDialect,
 
impl<D> Encode<VideoStreamType, D> for &VideoStreamTypewhere
    D: ResourceDialect,
Source§impl Hash for VideoStreamType
 
impl Hash for VideoStreamType
Source§impl Ord for VideoStreamType
 
impl Ord for VideoStreamType
Source§fn cmp(&self, other: &VideoStreamType) -> Ordering
 
fn cmp(&self, other: &VideoStreamType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VideoStreamType
 
impl PartialEq for VideoStreamType
Source§impl PartialOrd for VideoStreamType
 
impl PartialOrd for VideoStreamType
Source§impl TypeMarker for VideoStreamType
 
impl TypeMarker for VideoStreamType
Source§type Owned = VideoStreamType
 
type Owned = VideoStreamType
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of 
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Returns true if the memory layout of 
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Returns true if the memory layout of 
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for VideoStreamType
 
impl ValueTypeMarker for VideoStreamType
Source§type Borrowed<'a> = &'a VideoStreamType
 
type Borrowed<'a> = &'a VideoStreamType
The Rust type to use for encoding. This is a particular 
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<VideoStreamType as TypeMarker>::Owned,
) -> <VideoStreamType as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<VideoStreamType as TypeMarker>::Owned, ) -> <VideoStreamType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from 
&Self::Owned to Self::Borrowed.impl Copy for VideoStreamType
impl Eq for VideoStreamType
impl Persistable for VideoStreamType
impl StructuralPartialEq for VideoStreamType
Auto Trait Implementations§
impl Freeze for VideoStreamType
impl RefUnwindSafe for VideoStreamType
impl Send for VideoStreamType
impl Sync for VideoStreamType
impl Unpin for VideoStreamType
impl UnwindSafe for VideoStreamType
Blanket Implementations§
Source§impl<T> Body for Twhere
    T: Persistable,
 
impl<T> Body for Twhere
    T: Persistable,
Source§type MarkerAtTopLevel = T
 
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
 
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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