pub enum SliceType {
P,
B,
I,
Sp,
Si,
}Expand description
H.264 slice types as defined in Table 7-6.
The spec defines values 0–9; values 5–9 are equivalent to 0–4 but signal that all slices in the picture are the same type.
Variants§
P
Predictive slice (inter-predicted from reference frames).
B
Bi-predictive slice (two reference frames).
I
Intra-only slice.
Sp
Switching P slice.
Si
Switching I slice.
Implementations§
Source§impl SliceType
impl SliceType
Sourcepub fn is_bipredictive(self) -> bool
pub fn is_bipredictive(self) -> bool
Returns true when this is a bi-predictive slice.
Sourcepub fn is_switching(self) -> bool
pub fn is_switching(self) -> bool
Returns true when this is a switching slice (SP or SI).
Trait Implementations§
impl Copy for SliceType
impl Eq for SliceType
impl StructuralPartialEq for SliceType
Auto Trait Implementations§
impl Freeze for SliceType
impl RefUnwindSafe for SliceType
impl Send for SliceType
impl Sync for SliceType
impl Unpin for SliceType
impl UnsafeUnpin for SliceType
impl UnwindSafe for SliceType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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