#[non_exhaustive]pub struct SequenceEncodeOptions {
pub timescale: u32,
pub frame_duration: u32,
pub base_q_idx: u8,
pub all_intra: bool,
pub gop_length: usize,
}Expand description
Tuning for encode_sequence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timescale: u32Movie / media timescale in ticks per second (mvhd / mdhd).
frame_duration: u32Duration of every sample in timescale ticks (stts).
base_q_idx: u8AV1 base_q_idx; 0 = lossless.
all_intra: boolCode every frame as a KEY frame (every sample a sync sample,
avio brand). Otherwise KEY + P groups.
gop_length: usizeFrames per KEY + P group, 1..=GOP_MAX_FRAMES (64). Ignored
when all_intra.
Implementations§
Source§impl SequenceEncodeOptions
impl SequenceEncodeOptions
Sourcepub fn new(
timescale: u32,
frame_duration: u32,
base_q_idx: u8,
all_intra: bool,
gop_length: usize,
) -> Self
pub fn new( timescale: u32, frame_duration: u32, base_q_idx: u8, all_intra: bool, gop_length: usize, ) -> Self
Every field as a positional argument, in declaration order
(the record is #[non_exhaustive]: build it here, or from
Default where one exists, then read / assign the public
fields).
Sourcepub fn with_timescale(self, timescale: u32) -> Self
pub fn with_timescale(self, timescale: u32) -> Self
Setter: replace timescale.
Sourcepub fn with_frame_duration(self, frame_duration: u32) -> Self
pub fn with_frame_duration(self, frame_duration: u32) -> Self
Setter: replace frame_duration.
Sourcepub fn with_base_q_idx(self, base_q_idx: u8) -> Self
pub fn with_base_q_idx(self, base_q_idx: u8) -> Self
Setter: replace base_q_idx.
Sourcepub fn with_all_intra(self, all_intra: bool) -> Self
pub fn with_all_intra(self, all_intra: bool) -> Self
Setter: replace all_intra.
Sourcepub fn with_gop_length(self, gop_length: usize) -> Self
pub fn with_gop_length(self, gop_length: usize) -> Self
Setter: replace gop_length.
Trait Implementations§
Source§impl Clone for SequenceEncodeOptions
impl Clone for SequenceEncodeOptions
impl Copy for SequenceEncodeOptions
Source§impl Debug for SequenceEncodeOptions
impl Debug for SequenceEncodeOptions
Auto Trait Implementations§
impl Freeze for SequenceEncodeOptions
impl RefUnwindSafe for SequenceEncodeOptions
impl Send for SequenceEncodeOptions
impl Sync for SequenceEncodeOptions
impl Unpin for SequenceEncodeOptions
impl UnsafeUnpin for SequenceEncodeOptions
impl UnwindSafe for SequenceEncodeOptions
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