pub enum VideoCodec {
H264,
H265,
}Expand description
Video codec choice.
Variants§
Implementations§
Source§impl VideoCodec
impl VideoCodec
Sourcepub fn mp4_tag(self) -> Option<&'static str>
pub fn mp4_tag(self) -> Option<&'static str>
The -tag:v value needed for MP4 compatibility, if any.
Sourcepub fn crf_search_bounds(self) -> (u8, u8)
pub fn crf_search_bounds(self) -> (u8, u8)
Inclusive CRF range to search when targeting a VMAF score, best quality (lowest CRF) first. x265’s CRF scale is shifted ~+6 vs x264 for the same perceptual quality, so the bounds differ per codec.
Trait Implementations§
Source§impl Clone for VideoCodec
impl Clone for VideoCodec
Source§fn clone(&self) -> VideoCodec
fn clone(&self) -> VideoCodec
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 moreimpl Copy for VideoCodec
Source§impl Debug for VideoCodec
impl Debug for VideoCodec
impl Eq for VideoCodec
Source§impl PartialEq for VideoCodec
impl PartialEq for VideoCodec
impl StructuralPartialEq for VideoCodec
Auto Trait Implementations§
impl Freeze for VideoCodec
impl RefUnwindSafe for VideoCodec
impl Send for VideoCodec
impl Sync for VideoCodec
impl Unpin for VideoCodec
impl UnsafeUnpin for VideoCodec
impl UnwindSafe for VideoCodec
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