Struct jpeg_decoder::worker::rayon::ImmediateWorker
source · struct ImmediateWorker {
offsets: [usize; 4],
results: [Vec<u8>; 4],
components: [Option<Component>; 4],
quantization_tables: [Option<Arc<[u16; 64]>>; 4],
}
Expand description
Technically similar to immediate::ImmediateWorker
but we copy it since we may prefer
different style of managing the memory allocation, something that multiple actors can access in
parallel.
Fields§
§offsets: [usize; 4]
§results: [Vec<u8>; 4]
§components: [Option<Component>; 4]
§quantization_tables: [Option<Arc<[u16; 64]>>; 4]
Implementations§
source§impl ImmediateWorker
impl ImmediateWorker
pub fn start_immediate(&mut self, data: RowData)
pub fn get_result_immediate(&mut self, index: usize) -> Vec<u8>
pub fn component_metadata(&self, index: usize) -> Option<ComponentMetadata>
pub fn append_row_locked( quantization_table: Arc<[u16; 64]>, metadata: ComponentMetadata, data: Vec<i16>, result_block: &mut [u8], )
Trait Implementations§
source§impl Default for ImmediateWorker
impl Default for ImmediateWorker
source§fn default() -> ImmediateWorker
fn default() -> ImmediateWorker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImmediateWorker
impl RefUnwindSafe for ImmediateWorker
impl Send for ImmediateWorker
impl Sync for ImmediateWorker
impl Unpin for ImmediateWorker
impl UnwindSafe for ImmediateWorker
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> 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