pub struct SequenceHeaderValidator;Expand description
Validates a parsed SequenceHeader against AV1 specification constraints.
Checks cover:
seq_profilerange (0–2)- Bit depth validity (8, 10, or 12)
- Profile-specific chroma subsampling requirements
order_hint_bitsrange and consistency withenable_order_hintfilm_grain_params_presentagainst profile constraints
Implementations§
Source§impl SequenceHeaderValidator
impl SequenceHeaderValidator
Sourcepub fn validate(header: &SequenceHeader) -> ValidationResult
pub fn validate(header: &SequenceHeader) -> ValidationResult
Validate a SequenceHeader and return a ValidationResult.
This is a pure, side-effect-free function.
Auto Trait Implementations§
impl Freeze for SequenceHeaderValidator
impl RefUnwindSafe for SequenceHeaderValidator
impl Send for SequenceHeaderValidator
impl Sync for SequenceHeaderValidator
impl Unpin for SequenceHeaderValidator
impl UnsafeUnpin for SequenceHeaderValidator
impl UnwindSafe for SequenceHeaderValidator
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
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