pub struct TileEncoderConfig {
pub tile_cols: u32,
pub tile_rows: u32,
pub threads: usize,
pub sb_size: u32,
pub uniform_spacing: bool,
pub min_tile_width_sb: u32,
pub max_tile_width_sb: u32,
pub min_tile_height_sb: u32,
pub max_tile_height_sb: u32,
}Expand description
Configuration for tile-based encoding.
Fields§
§tile_cols: u32Number of tile columns (power of 2, 1-64).
tile_rows: u32Number of tile rows (power of 2, 1-64).
threads: usizeNumber of encoding threads (0 = auto-detect).
sb_size: u32Superblock size (64 or 128).
uniform_spacing: boolUse uniform tile spacing.
min_tile_width_sb: u32Minimum tile width in superblocks.
max_tile_width_sb: u32Maximum tile width in superblocks.
min_tile_height_sb: u32Minimum tile height in superblocks.
max_tile_height_sb: u32Maximum tile height in superblocks.
Implementations§
Source§impl TileEncoderConfig
impl TileEncoderConfig
Sourcepub fn auto(width: u32, height: u32, threads: usize) -> Self
pub fn auto(width: u32, height: u32, threads: usize) -> Self
Create a new tile encoder config with automatic tile layout.
Automatically determines optimal tile configuration based on frame dimensions and thread count.
Sourcepub fn with_tile_counts(
tile_cols: u32,
tile_rows: u32,
threads: usize,
) -> CodecResult<Self>
pub fn with_tile_counts( tile_cols: u32, tile_rows: u32, threads: usize, ) -> CodecResult<Self>
Sourcepub fn configure_for_dimensions(&mut self, width: u32, height: u32)
pub fn configure_for_dimensions(&mut self, width: u32, height: u32)
Configure tile layout for given dimensions.
Sourcepub const fn tile_count(&self) -> u32
pub const fn tile_count(&self) -> u32
Get total number of tiles.
Sourcepub fn thread_count(&self) -> usize
pub fn thread_count(&self) -> usize
Get effective thread count.
Sourcepub fn validate(&self) -> CodecResult<()>
pub fn validate(&self) -> CodecResult<()>
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