#[repr(u32)]pub enum EncoderProfile {
Default = 0,
Vp9Profile1 = 1,
Vp9Profile2 = 2,
Vp9Profile3 = 3,
}Expand description
The VP9 codec supports a notion of multiple bitstream profiles. This maps to a set of features that are turned on or off. Often the profile to use is determined by the features of the intended decoder.
Variants§
Default = 0
The default bitstream profile for any codec.
- VP8 only supports this basic profile
- VP9 treats this as bitstream Profile 0
This profile only supports 8-bit 4:2:0 (for both VP8 and VP9).
Vp9Profile1 = 1
VP 9 Profile 1. 8-bit 4:4:4, 4:2:2, and 4:4:0.
Vp9Profile2 = 2
VP9 Profile 2. 10-bit and 12-bit color only, with 4:2:0 sampling.
Vp9Profile3 = 3
VP9 Profile 3. 10-bit and 12-bit color only, with 4:2:2/4:4:4/4:4:0 sampling.
Trait Implementations§
Source§impl Clone for EncoderProfile
impl Clone for EncoderProfile
Source§fn clone(&self) -> EncoderProfile
fn clone(&self) -> EncoderProfile
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 EncoderProfile
impl Debug for EncoderProfile
Source§impl Default for EncoderProfile
impl Default for EncoderProfile
Source§fn default() -> EncoderProfile
fn default() -> EncoderProfile
Returns the “default value” for a type. Read more
Source§impl Hash for EncoderProfile
impl Hash for EncoderProfile
Source§impl Ord for EncoderProfile
impl Ord for EncoderProfile
Source§fn cmp(&self, other: &EncoderProfile) -> Ordering
fn cmp(&self, other: &EncoderProfile) -> Ordering
1.21.0 · 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 EncoderProfile
impl PartialEq for EncoderProfile
Source§impl PartialOrd for EncoderProfile
impl PartialOrd for EncoderProfile
impl Copy for EncoderProfile
impl Eq for EncoderProfile
impl StructuralPartialEq for EncoderProfile
Auto Trait Implementations§
impl Freeze for EncoderProfile
impl RefUnwindSafe for EncoderProfile
impl Send for EncoderProfile
impl Sync for EncoderProfile
impl Unpin for EncoderProfile
impl UnwindSafe for EncoderProfile
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