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<D: ResourceDialect> Decode<VideoStreamType, D> for VideoStreamType
impl<D: ResourceDialect> Decode<VideoStreamType, D> for VideoStreamType
Source§impl<D: ResourceDialect> Encode<VideoStreamType, D> for &VideoStreamType
impl<D: ResourceDialect> Encode<VideoStreamType, D> for &VideoStreamType
Source§impl<D: ResourceDialect, T0: Encode<PixelFormat, D>, T1: Encode<ColorSpace, D>, T2: Encode<u32, D>, T3: Encode<u32, D>, T4: Encode<u32, D>, T5: Encode<u32, D>, T6: Encode<u32, D>, T7: Encode<u32, D>, T8: Encode<u32, D>> Encode<VideoStreamType, D> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<D: ResourceDialect, T0: Encode<PixelFormat, D>, T1: Encode<ColorSpace, D>, T2: Encode<u32, D>, T3: Encode<u32, D>, T4: Encode<u32, D>, T5: Encode<u32, D>, T6: Encode<u32, D>, T7: Encode<u32, D>, T8: Encode<u32, D>> Encode<VideoStreamType, D> 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§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
.§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
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 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§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
)