pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for the context configuration.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn profile(&mut self, profile: Profile) -> &mut Self
pub fn profile(&mut self, profile: Profile) -> &mut Self
Set the color profile, i.e. the accepted range of the input components.
Sourcepub fn with_profile(self, profile: Profile) -> Self
pub fn with_profile(self, profile: Profile) -> Self
Set the color profile, i.e. the accepted range of the input components.
Sourcepub fn flags(&mut self, flags: Flags) -> &mut Self
pub fn flags(&mut self, flags: Flags) -> &mut Self
Set the flags to use when initializing astcenc
.
Sourcepub fn with_flags(self, flags: Flags) -> Self
pub fn with_flags(self, flags: Flags) -> Self
Set the flags to use when initializing astcenc
.
Sourcepub fn preset(&mut self, preset: Preset) -> &mut Self
pub fn preset(&mut self, preset: Preset) -> &mut Self
Set the preset, i.e. the balance between speed and quality (not speed and compression ratio, compression ratio, compression ratio is decided by the block size).
Sourcepub fn with_preset(self, preset: Preset) -> Self
pub fn with_preset(self, preset: Preset) -> Self
Set the preset, i.e. the balance between speed and quality (not speed and compression ratio, compression ratio, compression ratio is decided by the block size).
Sourcepub fn block_size(&mut self, block_size: Extents) -> &mut Self
pub fn block_size(&mut self, block_size: Extents) -> &mut Self
Set the block size, which decides the compression ratio for the image. Each block uses 16 bytes of memory.
Sourcepub fn with_block_size(self, block_size: Extents) -> Self
pub fn with_block_size(self, block_size: Extents) -> Self
Set the block size, which decides the compression ratio for the image. Each block uses 16 bytes of memory.
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more