pub const RGB24_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::RGB(RGBSubmodel::RGB), components: 3,
comp_info: [
- chromaton!(packrgb; 8, 0, 2, 3),
- chromaton!(packrgb; 8, 0, 1, 3),
chromaton!(packrgb; 8, 0, 0, 3),
+ chromaton!(packrgb; 8, 0, 1, 3),
+ chromaton!(packrgb; 8, 0, 2, 3),
None, None],
elem_size: 3, be: false, alpha: false, palette: false };
pub fn is_paletted(&self) -> bool { self.palette }
pub fn get_elem_size(&self) -> u8 { self.elem_size }
pub fn is_unpacked(&self) -> bool {
+ if self.palette { return false; }
for chr in self.comp_info.iter() {
if let Some(ref chromaton) = chr {
if chromaton.is_packed() { return false; }