From d8bfa84d06112900bc46989e4edf4bf9b970ea5a Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Mon, 31 Aug 2020 19:53:06 +0200 Subject: [PATCH] Add notes for unsupported predictors --- src/decoder/mod.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 07e6a47..d559dd9 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -284,12 +284,20 @@ fn rev_hpredict(image: DecodingBuffer, size: (u32, u32), color_type: ColorType) rev_hpredict_nsamp(buf, size, samples)?; } DecodingBuffer::F32(_buf) => { - unimplemented!() + // FIXME: check how this is defined. + // See issue #89. // rev_hpredict_nsamp(buf, size, samples)?; + return Err(TiffError::UnsupportedError( + TiffUnsupportedError::HorizontalPredictor(color_type) + )); } DecodingBuffer::F64(_buf) => { - unimplemented!() + //FIXME: check how this is defined. + // See issue #89. // rev_hpredict_nsamp(buf, size, samples)?; + return Err(TiffError::UnsupportedError( + TiffUnsupportedError::HorizontalPredictor(color_type) + )); } } Ok(())