Trait quantette::ColorCountsParallelRemap
source · pub trait ColorCountsParallelRemap<Color, Component, const N: usize>: ColorCounts<Color, Component, N>where
Color: ColorComponents<Component, N>,{
// Required method
fn map_indices_par(&self, indices: Vec<u8>) -> Vec<u8>;
}Expand description
Types that allow reconstructing the original image/color slice in parallel
from a Vec of indices into a color palette.
Required Methods§
sourcefn map_indices_par(&self, indices: Vec<u8>) -> Vec<u8>
fn map_indices_par(&self, indices: Vec<u8>) -> Vec<u8>
Uses the given Vec of indices to create indices, in parallel, for each pixel/color
in the original image/color slice.
The given Vec will have the same length as the color slice returned by colors.
The length of the returned Vec must not be greater than MAX_PIXELS.