pub struct PipelineConfig {
pub enable_deblock: bool,
pub enable_loop_filter: bool,
pub enable_cdef: bool,
pub enable_super_res: bool,
pub enable_film_grain: bool,
pub width: u32,
pub height: u32,
pub bit_depth: u8,
pub subsampling: ChromaSubsampling,
pub threads: usize,
pub buffer_pool_size: usize,
pub collect_metrics: bool,
}Expand description
Configuration for the decoder pipeline.
Fields§
§enable_deblock: boolEnable deblocking filter.
enable_loop_filter: boolEnable loop filter.
enable_cdef: boolEnable CDEF.
enable_super_res: boolEnable super-resolution.
enable_film_grain: boolEnable film grain synthesis.
width: u32Frame dimensions.
height: u32Frame height.
bit_depth: u8Bit depth.
subsampling: ChromaSubsamplingChroma subsampling.
threads: usizeNumber of threads for parallel processing.
buffer_pool_size: usizeBuffer pool size.
collect_metrics: boolEnable performance metrics collection.
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
Sourcepub const fn with_bit_depth(self, bit_depth: u8) -> Self
pub const fn with_bit_depth(self, bit_depth: u8) -> Self
Set bit depth.
Sourcepub const fn with_subsampling(self, subsampling: ChromaSubsampling) -> Self
pub const fn with_subsampling(self, subsampling: ChromaSubsampling) -> Self
Set chroma subsampling.
Sourcepub const fn with_all_filters(self) -> Self
pub const fn with_all_filters(self) -> Self
Enable all filters.
Sourcepub const fn without_filters(self) -> Self
pub const fn without_filters(self) -> Self
Disable all filters.
Sourcepub const fn with_threads(self, threads: usize) -> Self
pub const fn with_threads(self, threads: usize) -> Self
Set number of threads.
Sourcepub fn validate(&self) -> ReconstructResult<()>
pub fn validate(&self) -> ReconstructResult<()>
Validate the configuration.
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
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 PipelineConfig
impl Debug for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnsafeUnpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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