pub enum PicStruct {
Frame,
TopField,
BottomField,
TopBottomField,
BottomTopField,
TopBottomTopField,
BottomTopBottomField,
FrameDoubling,
FrameTripling,
}Expand description
Pic-struct values from H.264 Table D-1 / H.265 Table D.2.
Variants§
Frame
Frame (progressive).
TopField
Top field only.
BottomField
Bottom field only.
TopBottomField
Top field, then bottom field.
BottomTopField
Bottom field, then top field.
TopBottomTopField
Top field, bottom field, then top field repeated.
BottomTopBottomField
Bottom field, top field, then bottom field repeated.
FrameDoubling
Frame doubling.
FrameTripling
Frame tripling.
Implementations§
Source§impl PicStruct
impl PicStruct
Sourcepub fn progressive_frame_count(self) -> u32
pub fn progressive_frame_count(self) -> u32
Returns the number of progressive-scan frames implied by this PicStruct.
For field-pair types this is 1; for doubling/tripling it is 2/3.
Sourcepub fn is_progressive(self) -> bool
pub fn is_progressive(self) -> bool
Returns true if this PicStruct represents a progressive frame.
Sourcepub fn has_repeated_field(self) -> bool
pub fn has_repeated_field(self) -> bool
Returns true if this PicStruct involves field repetition.
Trait Implementations§
impl Copy for PicStruct
impl Eq for PicStruct
impl StructuralPartialEq for PicStruct
Auto Trait Implementations§
impl Freeze for PicStruct
impl RefUnwindSafe for PicStruct
impl Send for PicStruct
impl Sync for PicStruct
impl Unpin for PicStruct
impl UnsafeUnpin for PicStruct
impl UnwindSafe for PicStruct
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