pub struct VideoCodecId(/* private fields */);Expand description
An VideoCodecId is a unique identifier used to identify a specific video codec.
§Creating a Codec ID
Using a well-known codec ID is highly recommended to maximize compatibility
between components, libraries, and applications. However, if a codec requires custom codec ID,
or there is no well-known ID, then the FourCc for the codec may be converted into a codec
ID.
Implementations§
Source§impl VideoCodecId
impl VideoCodecId
Sourcepub const fn new(cc: FourCc) -> VideoCodecId
pub const fn new(cc: FourCc) -> VideoCodecId
Create a new video codec ID from a FourCC.
Trait Implementations§
Source§impl Clone for VideoCodecId
impl Clone for VideoCodecId
Source§fn clone(&self) -> VideoCodecId
fn clone(&self) -> VideoCodecId
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 VideoCodecId
impl Debug for VideoCodecId
Source§impl Default for VideoCodecId
impl Default for VideoCodecId
Source§impl Display for VideoCodecId
impl Display for VideoCodecId
Source§impl From<FourCc> for VideoCodecId
impl From<FourCc> for VideoCodecId
Source§impl From<VideoCodecId> for CodecId
impl From<VideoCodecId> for CodecId
Source§fn from(value: VideoCodecId) -> Self
fn from(value: VideoCodecId) -> Self
Converts to this type from the input type.
Source§impl Hash for VideoCodecId
impl Hash for VideoCodecId
Source§impl Ord for VideoCodecId
impl Ord for VideoCodecId
Source§fn cmp(&self, other: &VideoCodecId) -> Ordering
fn cmp(&self, other: &VideoCodecId) -> Ordering
1.21.0 (const: unstable) · 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 VideoCodecId
impl PartialEq for VideoCodecId
Source§fn eq(&self, other: &VideoCodecId) -> bool
fn eq(&self, other: &VideoCodecId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VideoCodecId
impl PartialOrd for VideoCodecId
impl Copy for VideoCodecId
impl Eq for VideoCodecId
impl StructuralPartialEq for VideoCodecId
Auto Trait Implementations§
impl Freeze for VideoCodecId
impl RefUnwindSafe for VideoCodecId
impl Send for VideoCodecId
impl Sync for VideoCodecId
impl Unpin for VideoCodecId
impl UnsafeUnpin for VideoCodecId
impl UnwindSafe for VideoCodecId
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