Remove outdate and ambiguous TODO (minor)
This commit is contained in:
1 parent
c72a8d364d
commit
abd6aee19f
1 file changed
-1
@@ -351,7 +351,6 @@ impl<R: Read + Seek> Decoder<R> {
|
|||||||
|
|
||||||
pub fn colortype(&mut self) -> TiffResult<ColorType> {
|
pub fn colortype(&mut self) -> TiffResult<ColorType> {
|
||||||
match self.photometric_interpretation {
|
match self.photometric_interpretation {
|
||||||
// TODO: catch also [ 8, 8, 8, _] this does not work due to a bug in rust atm
|
|
||||||
PhotometricInterpretation::RGB => {
|
PhotometricInterpretation::RGB => {
|
||||||
match self.bits_per_sample[..] {
|
match self.bits_per_sample[..] {
|
||||||
[r, g, b] if [r, r] == [g, b] => Ok(ColorType::RGB(r)),
|
[r, g, b] if [r, r] == [g, b] => Ok(ColorType::RGB(r)),
|
||||||
|
|||||||
Reference in new issue
Block a user