pub struct VideoEncodeConfig {
pub width: u32,
pub height: u32,
pub frame_rate: FrameRate,
pub color: ColorMetadata,
pub rate_control: VideoRateControl,
pub codec: NativeVideoCodec,
pub display: VideoDisplay,
pub container: Container,
}Expand description
Configuration for deterministic native video encoding.
Fields§
§width: u32Encoded frame width; 4:2:0 codecs require an even value.
height: u32Encoded frame height; 4:2:0 codecs require an even value.
frame_rate: FrameRateConstant output frame rate.
color: ColorMetadataSDR output color tags.
rate_control: VideoRateControlResolved rate control. A sink encodes from these numbers and never from a quality level; the host resolves the level before this point.
codec: NativeVideoCodecVideo codec selected by the downstream host.
display: VideoDisplayHow the pictures are shown, which the container says beside them.
container: ContainerThe file format the output is written in, which must offer codec.
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 Freeze 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