Struct fidl_fuchsia_media::VideoStreamType
source · 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: u32
Dimensions of the video frames as displayed in pixels.
height: u32
§coded_width: u32
Dimensions 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: u32
The aspect ratio of a single pixel as frames are intended to be displayed.
pixel_aspect_ratio_height: u32
§stride: u32
The 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 copy 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 Decode<VideoStreamType> for VideoStreamType
impl Decode<VideoStreamType> for VideoStreamType
source§impl Encode<VideoStreamType> for &VideoStreamType
impl Encode<VideoStreamType> for &VideoStreamType
source§impl<T0: Encode<PixelFormat>, T1: Encode<ColorSpace>, T2: Encode<u32>, T3: Encode<u32>, T4: Encode<u32>, T5: Encode<u32>, T6: Encode<u32>, T7: Encode<u32>, T8: Encode<u32>> Encode<VideoStreamType> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0: Encode<PixelFormat>, T1: Encode<ColorSpace>, T2: Encode<u32>, T3: Encode<u32>, T4: Encode<u32>, T5: Encode<u32>, T6: Encode<u32>, T7: Encode<u32>, T8: Encode<u32>> Encode<VideoStreamType> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
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§fn eq(&self, other: &VideoStreamType) -> bool
fn eq(&self, other: &VideoStreamType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoStreamType
impl PartialOrd for VideoStreamType
source§fn partial_cmp(&self, other: &VideoStreamType) -> Option<Ordering>
fn partial_cmp(&self, other: &VideoStreamType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for VideoStreamType
impl TypeMarker for VideoStreamType
§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
.§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 more§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
§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 moreimpl 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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)