pub struct GopFrame {
pub position: u32,
pub is_keyframe: bool,
pub is_b_frame: bool,
pub pyramid_level: PyramidLevel,
}Expand description
Describes a single frame’s position within a planned GOP.
Fields§
§position: u32Display-order position (0-based within the GOP).
is_keyframe: boolWhether this frame is the GOP’s opening I- or IDR-frame.
is_b_frame: boolWhether this frame is a B-frame.
pyramid_level: PyramidLevelThe B-pyramid level for this frame.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GopFrame
impl RefUnwindSafe for GopFrame
impl Send for GopFrame
impl Sync for GopFrame
impl Unpin for GopFrame
impl UnsafeUnpin for GopFrame
impl UnwindSafe for GopFrame
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