pub struct TileEncoderConfig {
pub tile_cols: u32,
pub tile_rows: u32,
pub threads: usize,
pub base_qp: u32,
}Expand description
Configuration for the low-level parallel tile encoder.
Fields§
§tile_cols: u32Number of tile columns (must be ≥ 1).
tile_rows: u32Number of tile rows (must be ≥ 1).
threads: usizeNumber of rayon threads to use (0 = auto-detect from rayon default pool).
base_qp: u32Base quantisation parameter (0 = highest quality / largest output, 255 = lowest quality / smallest output).
Implementations§
Source§impl TileEncoderConfig
impl TileEncoderConfig
Sourcepub fn validate(&self) -> CodecResult<()>
pub fn validate(&self) -> CodecResult<()>
Validate that the configuration is internally consistent.
§Errors
Returns CodecError::InvalidParameter if any field is out of range.
Sourcepub const fn tile_count(&self) -> u32
pub const fn tile_count(&self) -> u32
Total number of tiles.
Trait Implementations§
Source§impl Clone for TileEncoderConfig
impl Clone for TileEncoderConfig
Source§fn clone(&self) -> TileEncoderConfig
fn clone(&self) -> TileEncoderConfig
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 TileEncoderConfig
impl Debug for TileEncoderConfig
Auto Trait Implementations§
impl Freeze for TileEncoderConfig
impl RefUnwindSafe for TileEncoderConfig
impl Send for TileEncoderConfig
impl Sync for TileEncoderConfig
impl Unpin for TileEncoderConfig
impl UnsafeUnpin for TileEncoderConfig
impl UnwindSafe for TileEncoderConfig
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