pub struct GopConfig {
pub max_gop_size: u32,
pub b_frames: u32,
pub closed_gop: bool,
pub adaptive_keyframes: bool,
}Expand description
Configuration for a Group Of Pictures (GOP).
Fields§
§max_gop_size: u32Maximum GOP length (number of frames between I-frames).
b_frames: u32Number of consecutive B-frames between each pair of reference frames.
closed_gop: boolWhether closed GOPs are used (each GOP is independently decodable).
adaptive_keyframes: boolWhether adaptive scene-change detection may insert extra I-frames.
Implementations§
Source§impl GopConfig
impl GopConfig
Sourcepub fn intra_only() -> Self
pub fn intra_only() -> Self
Creates a config for a simple all-I-frame stream.
Sourcepub fn with_b_frames(gop_size: u32, b_frames: u32) -> Self
pub fn with_b_frames(gop_size: u32, b_frames: u32) -> Self
Creates a standard IBP GOP with the given B-frame count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GopConfig
impl RefUnwindSafe for GopConfig
impl Send for GopConfig
impl Sync for GopConfig
impl Unpin for GopConfig
impl UnsafeUnpin for GopConfig
impl UnwindSafe for GopConfig
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