pub struct VideoStreamDescriptor {
pub multiple_frame_rate_flag: bool,
pub frame_rate_code: FrameRateCode,
pub mpeg_1_only_flag: bool,
pub constrained_parameter_flag: bool,
pub still_picture_flag: bool,
pub profile_and_level_indication: Option<u8>,
pub chroma_format: Option<u8>,
pub frame_rate_extension_flag: Option<bool>,
}Expand description
Video Stream Descriptor.
If mpeg_1_only_flag is true, profile_and_level_indication,
chroma_format, and frame_rate_extension_flag are absent (body
is only 1 byte instead of 3).
Fields§
§multiple_frame_rate_flag: bool1 — more than one frame rate may be present (see Table 2-47 “also includes”).
frame_rate_code: FrameRateCodeFrame rate code (Table 2-47).
mpeg_1_only_flag: bool1 — stream constrained to MPEG-1 (no profile/level/chroma fields follow).
constrained_parameter_flag: boolConstrained parameters flag.
still_picture_flag: boolStill picture flag.
profile_and_level_indication: Option<u8>Profile and level indication — only when mpeg_1_only_flag is false.
chroma_format: Option<u8>Chroma format (H.262 §6.3.11) — only when mpeg_1_only_flag is false.
frame_rate_extension_flag: Option<bool>Frame rate extension flag — only when mpeg_1_only_flag is false.
Trait Implementations§
Source§impl Clone for VideoStreamDescriptor
impl Clone for VideoStreamDescriptor
Source§fn clone(&self) -> VideoStreamDescriptor
fn clone(&self) -> VideoStreamDescriptor
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 moreSource§impl Debug for VideoStreamDescriptor
impl Debug for VideoStreamDescriptor
Source§impl<'a> DescriptorDef<'a> for VideoStreamDescriptor
impl<'a> DescriptorDef<'a> for VideoStreamDescriptor
impl Eq for VideoStreamDescriptor
Source§impl<'a> From<VideoStreamDescriptor> for AnyDescriptor<'a>
impl<'a> From<VideoStreamDescriptor> for AnyDescriptor<'a>
Source§fn from(d: VideoStreamDescriptor) -> Self
fn from(d: VideoStreamDescriptor) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for VideoStreamDescriptor
impl<'a> Parse<'a> for VideoStreamDescriptor
Source§impl PartialEq for VideoStreamDescriptor
impl PartialEq for VideoStreamDescriptor
Source§fn eq(&self, other: &VideoStreamDescriptor) -> bool
fn eq(&self, other: &VideoStreamDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VideoStreamDescriptor
impl Serialize for VideoStreamDescriptor
Source§impl Serialize for VideoStreamDescriptor
impl Serialize for VideoStreamDescriptor
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for VideoStreamDescriptor
Source§impl<'a> Yokeable<'a> for VideoStreamDescriptorwhere
Self: Sized,
impl<'a> Yokeable<'a> for VideoStreamDescriptorwhere
Self: Sized,
Source§type Output = VideoStreamDescriptor
type Output = VideoStreamDescriptor
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl Freeze for VideoStreamDescriptor
impl RefUnwindSafe for VideoStreamDescriptor
impl Send for VideoStreamDescriptor
impl Sync for VideoStreamDescriptor
impl Unpin for VideoStreamDescriptor
impl UnsafeUnpin for VideoStreamDescriptor
impl UnwindSafe for VideoStreamDescriptor
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