pub struct VideoEncodeConfig {
pub codec: VideoCodec,
pub width: u32,
pub height: u32,
pub frame_rate: FrameRate,
pub layout: PixelLayout,
pub rate: VideoRateControl,
pub color: ColorMetadata,
pub keyframe_interval: u32,
pub software: bool,
}Expand description
What a video encoder is asked for.
Fields§
§codec: VideoCodecThe codec.
width: u32Picture width in pixels.
height: u32Picture height in pixels.
frame_rate: FrameRateFrames per second.
layout: PixelLayoutThe planes each frame arrives in.
rate: VideoRateControlThe rate control the export resolved.
color: ColorMetadataThe color the bitstream is tagged with.
keyframe_interval: u32Frames between forced keyframes.
software: boolAsk for a software encoder (a retry after a hardware encoder failed).
Trait Implementations§
Source§impl Clone for VideoEncodeConfig
impl Clone for VideoEncodeConfig
impl Copy for VideoEncodeConfig
Source§impl Debug for VideoEncodeConfig
impl Debug for VideoEncodeConfig
Source§impl PartialEq for VideoEncodeConfig
impl PartialEq for VideoEncodeConfig
impl StructuralPartialEq for VideoEncodeConfig
Auto Trait Implementations§
impl Forget for VideoEncodeConfig
impl Freeze for VideoEncodeConfig
impl Move for VideoEncodeConfig
impl RefUnwindSafe for VideoEncodeConfig
impl Send for VideoEncodeConfig
impl Sync for VideoEncodeConfig
impl Unpin for VideoEncodeConfig
impl UnsafeUnpin for VideoEncodeConfig
impl UnwindSafe for VideoEncodeConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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