pub struct Ffv1Config {
pub level: Ffv1Level,
pub coder: Ffv1Coder,
pub slice_count: u8,
pub context_model: u8,
pub checksum: bool,
}Expand description
FFV1 lossless video codec configuration.
Fields§
§level: Ffv1LevelFFV1 level (1 or 3).
coder: Ffv1CoderEntropy coder selection.
slice_count: u8Number of slices for multithreaded encoding (1, 4, 9, 16, 24).
context_model: u8Context model complexity (0=simple, 1=complex/better compression).
checksum: boolEnable per-slice CRC checksums for error detection.
Implementations§
Source§impl Ffv1Config
impl Ffv1Config
Sourcepub fn lossless_archive() -> Self
pub fn lossless_archive() -> Self
Best-compression archival preset.
Uses Level 3, Range coder, 16 slices, complex context model, and checksums. Ideal for long-term preservation where file size and integrity matter most.
Sourcepub fn lossless_fast() -> Self
pub fn lossless_fast() -> Self
Fastest lossless encoding preset.
Uses Level 1, Golomb-Rice coder, 4 slices, simple context model, no checksums. Ideal for fast ingest or intermediate encoding.
Sourcepub fn with_slices(self, count: u8) -> Self
pub fn with_slices(self, count: u8) -> Self
Sets the number of encoding slices.
Valid values: 1, 4, 9, 16, 24. More slices enable better multithreading.
Sourcepub fn build(self) -> CodecConfig
pub fn build(self) -> CodecConfig
Builds a CodecConfig from this FFV1 configuration.
Trait Implementations§
Source§impl Clone for Ffv1Config
impl Clone for Ffv1Config
Source§fn clone(&self) -> Ffv1Config
fn clone(&self) -> Ffv1Config
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Ffv1Config
impl Debug for Ffv1Config
Auto Trait Implementations§
impl Freeze for Ffv1Config
impl RefUnwindSafe for Ffv1Config
impl Send for Ffv1Config
impl Sync for Ffv1Config
impl Unpin for Ffv1Config
impl UnsafeUnpin for Ffv1Config
impl UnwindSafe for Ffv1Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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