pub struct ProfileConstraint {
pub max_bit_depth: Depth,
pub chroma_formats: Vec<ChromaSampling>,
}
Fields§
§max_bit_depth: Depth
§chroma_formats: Vec<ChromaSampling>
Implementations§
Source§impl ProfileConstraint
impl ProfileConstraint
pub fn new(max_bit_depth: Depth, chroma_formats: Vec<ChromaSampling>) -> Self
pub fn max_chroma_format(&self) -> ChromaSampling
pub fn supports_chroma_format(&self, chroma_format: ChromaSampling) -> bool
pub fn supports_mono_chrome(&self) -> bool
Trait Implementations§
Source§impl Clone for ProfileConstraint
impl Clone for ProfileConstraint
Source§fn clone(&self) -> ProfileConstraint
fn clone(&self) -> ProfileConstraint
Returns a copy 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 ProfileConstraint
impl Debug for ProfileConstraint
Source§impl From<&Profile> for ProfileConstraint
impl From<&Profile> for ProfileConstraint
Source§impl From<&Profile> for ProfileConstraint
impl From<&Profile> for ProfileConstraint
Source§impl PartialEq for ProfileConstraint
impl PartialEq for ProfileConstraint
impl Eq for ProfileConstraint
impl StructuralPartialEq for ProfileConstraint
Auto Trait Implementations§
impl Freeze for ProfileConstraint
impl RefUnwindSafe for ProfileConstraint
impl Send for ProfileConstraint
impl Sync for ProfileConstraint
impl Unpin for ProfileConstraint
impl UnwindSafe for ProfileConstraint
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