pub struct RasterStreamConfig {
pub chunk_size: (usize, usize),
pub overlap: usize,
pub buffer_size: usize,
pub compression: bool,
pub compression_level: u8,
pub max_memory_bytes: usize,
pub prefetch_count: usize,
pub parallel: bool,
pub num_workers: usize,
}Expand description
Configuration for raster streaming.
Fields§
§chunk_size: (usize, usize)Chunk size in pixels (width, height)
overlap: usizeOverlap between chunks in pixels
buffer_size: usizeBuffer size for the stream
compression: boolWhether to enable compression
compression_level: u8Compression level (1-9)
max_memory_bytes: usizeMaximum memory usage in bytes
prefetch_count: usizeNumber of prefetch chunks
parallel: boolEnable parallel chunk processing
num_workers: usizeNumber of parallel workers
Implementations§
Source§impl RasterStreamConfig
impl RasterStreamConfig
Sourcepub fn with_chunk_size(self, width: usize, height: usize) -> Self
pub fn with_chunk_size(self, width: usize, height: usize) -> Self
Set the chunk size.
Sourcepub fn with_overlap(self, overlap: usize) -> Self
pub fn with_overlap(self, overlap: usize) -> Self
Set the overlap size.
Sourcepub fn with_compression(self, level: u8) -> Self
pub fn with_compression(self, level: u8) -> Self
Enable compression.
Sourcepub fn with_max_memory(self, bytes: usize) -> Self
pub fn with_max_memory(self, bytes: usize) -> Self
Set the maximum memory usage.
Sourcepub fn with_prefetch(self, count: usize) -> Self
pub fn with_prefetch(self, count: usize) -> Self
Set the number of prefetch chunks.
Sourcepub fn with_parallel(self, parallel: bool, num_workers: usize) -> Self
pub fn with_parallel(self, parallel: bool, num_workers: usize) -> Self
Enable or disable parallel processing.
Trait Implementations§
Source§impl Clone for RasterStreamConfig
impl Clone for RasterStreamConfig
Source§fn clone(&self) -> RasterStreamConfig
fn clone(&self) -> RasterStreamConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RasterStreamConfig
impl Debug for RasterStreamConfig
Source§impl Default for RasterStreamConfig
impl Default for RasterStreamConfig
Source§impl<'de> Deserialize<'de> for RasterStreamConfig
impl<'de> Deserialize<'de> for RasterStreamConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RasterStreamConfig
impl RefUnwindSafe for RasterStreamConfig
impl Send for RasterStreamConfig
impl Sync for RasterStreamConfig
impl Unpin for RasterStreamConfig
impl UnsafeUnpin for RasterStreamConfig
impl UnwindSafe for RasterStreamConfig
Blanket Implementations§
impl<T> Allocation for T
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