From: Kostya Shishkov Date: Thu, 7 Mar 2019 14:31:31 +0000 (+0100) Subject: formats: mark paletted formats as packed X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf;p=nihav.git formats: mark paletted formats as packed --- diff --git a/nihav-core/src/formats.rs b/nihav-core/src/formats.rs index 69293c6..f7ef8d8 100644 --- a/nihav-core/src/formats.rs +++ b/nihav-core/src/formats.rs @@ -505,6 +505,7 @@ impl NAPixelFormaton { 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; }