pub struct IntraFramePeriod(/* private fields */);Expand description
A period in frames after which a new I-Frame is generated.
Implementations§
Source§impl IntraFramePeriod
impl IntraFramePeriod
Sourcepub const fn from_num_frames(frames: u32) -> Self
pub const fn from_num_frames(frames: u32) -> Self
Creates a period in which I-Frames (group of pictures, “GOP size”) are generated.
Using lower values improves error resilience and allows for faster seeking within the video, but increases the overall required bitrate.
Setting the value to zero is equal to calling IntraFramePeriod::auto().
Trait Implementations§
Source§impl Clone for IntraFramePeriod
impl Clone for IntraFramePeriod
Source§fn clone(&self) -> IntraFramePeriod
fn clone(&self) -> IntraFramePeriod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntraFramePeriod
impl Debug for IntraFramePeriod
Source§impl Default for IntraFramePeriod
impl Default for IntraFramePeriod
Source§fn default() -> IntraFramePeriod
fn default() -> IntraFramePeriod
Returns the “default value” for a type. Read more
impl Copy for IntraFramePeriod
Auto Trait Implementations§
impl Freeze for IntraFramePeriod
impl RefUnwindSafe for IntraFramePeriod
impl Send for IntraFramePeriod
impl Sync for IntraFramePeriod
impl Unpin for IntraFramePeriod
impl UnsafeUnpin for IntraFramePeriod
impl UnwindSafe for IntraFramePeriod
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