pub struct VideoCodecParameters {
pub format: Option<PixelFormat>,
pub width: Option<NonZeroU32>,
pub height: Option<NonZeroU32>,
pub color_range: Option<ColorRange>,
pub color_matrix: Option<ColorMatrix>,
pub color_primaries: Option<ColorPrimaries>,
pub color_transfer_characteristics: Option<ColorTransferCharacteristics>,
pub chroma_location: Option<ChromaLocation>,
pub frame_rate: Option<Rational64>,
}Fields§
§format: Option<PixelFormat>§width: Option<NonZeroU32>§height: Option<NonZeroU32>§color_range: Option<ColorRange>§color_matrix: Option<ColorMatrix>§color_primaries: Option<ColorPrimaries>§color_transfer_characteristics: Option<ColorTransferCharacteristics>§chroma_location: Option<ChromaLocation>§frame_rate: Option<Rational64>Trait Implementations§
Source§impl Clone for VideoCodecParameters
impl Clone for VideoCodecParameters
Source§fn clone(&self) -> VideoCodecParameters
fn clone(&self) -> VideoCodecParameters
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 VideoCodecParameters
impl Debug for VideoCodecParameters
Source§impl Default for VideoCodecParameters
impl Default for VideoCodecParameters
Source§fn default() -> VideoCodecParameters
fn default() -> VideoCodecParameters
Returns the “default value” for a type. Read more
Source§impl From<VideoCodecParameters> for CodecSpecificParameters
impl From<VideoCodecParameters> for CodecSpecificParameters
Source§fn from(params: VideoCodecParameters) -> Self
fn from(params: VideoCodecParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoCodecParameters
impl RefUnwindSafe for VideoCodecParameters
impl Send for VideoCodecParameters
impl Sync for VideoCodecParameters
impl Unpin for VideoCodecParameters
impl UnwindSafe for VideoCodecParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more