pub struct ProgressiveLoader { /* private fields */ }Expand description
Progressive image loader
Implementations§
Source§impl ProgressiveLoader
impl ProgressiveLoader
Sourcepub fn load(
&self,
request: &LoadRequest,
raw_data: Option<&[u8]>,
width: usize,
height: usize,
bits_per_pixel: usize,
) -> LoadResult
pub fn load( &self, request: &LoadRequest, raw_data: Option<&[u8]>, width: usize, height: usize, bits_per_pixel: usize, ) -> LoadResult
Load an image progressively
Returns immediately with best available quality. Schedules background load for higher quality if needed.
Sourcepub fn store_thumbnail(
&self,
study_id: &str,
series_id: &str,
slice_index: usize,
data: Vec<u8>,
original_size: [usize; 2],
)
pub fn store_thumbnail( &self, study_id: &str, series_id: &str, slice_index: usize, data: Vec<u8>, original_size: [usize; 2], )
Store thumbnail only (for quick initial display)
Sourcepub fn store_mid_res(
&self,
study_id: &str,
series_id: &str,
slice_index: usize,
data: Vec<u8>,
original_size: [usize; 2],
)
pub fn store_mid_res( &self, study_id: &str, series_id: &str, slice_index: usize, data: Vec<u8>, original_size: [usize; 2], )
Store mid-res image
Sourcepub fn store_full_res(
&self,
study_id: &str,
series_id: &str,
slice_index: usize,
data: Vec<u8>,
original_size: [usize; 2],
)
pub fn store_full_res( &self, study_id: &str, series_id: &str, slice_index: usize, data: Vec<u8>, original_size: [usize; 2], )
Store full-res image
Sourcepub fn get_quality_status(
&self,
study_id: &str,
series_id: &str,
slice_index: usize,
) -> Option<QualityStatus>
pub fn get_quality_status( &self, study_id: &str, series_id: &str, slice_index: usize, ) -> Option<QualityStatus>
Get quality status for a slice
Sourcepub fn get_series_quality(
&self,
study_id: &str,
series_id: &str,
) -> Vec<QualityStatus>
pub fn get_series_quality( &self, study_id: &str, series_id: &str, ) -> Vec<QualityStatus>
Get all quality statuses for a series
Sourcepub fn clear_study(&self, study_id: &str)
pub fn clear_study(&self, study_id: &str)
Clear cache for a specific study
Sourcepub fn stats(&self) -> ProgressiveLoaderStats
pub fn stats(&self) -> ProgressiveLoaderStats
Get cache statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProgressiveLoader
impl RefUnwindSafe for ProgressiveLoader
impl Send for ProgressiveLoader
impl Sync for ProgressiveLoader
impl Unpin for ProgressiveLoader
impl UnwindSafe for ProgressiveLoader
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