diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-03-07 15:31:31 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-04-29 14:36:26 +0200 |
commit | c7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf (patch) | |
tree | a3f11e7b4150c45855cad0011b57e3616a0f7288 /nihav-core/src/formats.rs | |
parent | c6297d1f0324638b5d9d818b57c53f626a4e5493 (diff) | |
download | nihav-c7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf.tar.gz |
formats: mark paletted formats as packed
Diffstat (limited to 'nihav-core/src/formats.rs')
-rw-r--r-- | nihav-core/src/formats.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |