Add notes for unsupported predictors
This commit is contained in:
1 parent
200355d3bc
commit
d8bfa84d06
1 file changed
+10
-2
+10
-2
@@ -284,12 +284,20 @@ fn rev_hpredict(image: DecodingBuffer, size: (u32, u32), color_type: ColorType)
|
|||||||
rev_hpredict_nsamp(buf, size, samples)?;
|
rev_hpredict_nsamp(buf, size, samples)?;
|
||||||
}
|
}
|
||||||
DecodingBuffer::F32(_buf) => {
|
DecodingBuffer::F32(_buf) => {
|
||||||
unimplemented!()
|
// FIXME: check how this is defined.
|
||||||
|
// See issue #89.
|
||||||
// rev_hpredict_nsamp(buf, size, samples)?;
|
// rev_hpredict_nsamp(buf, size, samples)?;
|
||||||
|
return Err(TiffError::UnsupportedError(
|
||||||
|
TiffUnsupportedError::HorizontalPredictor(color_type)
|
||||||
|
));
|
||||||
}
|
}
|
||||||
DecodingBuffer::F64(_buf) => {
|
DecodingBuffer::F64(_buf) => {
|
||||||
unimplemented!()
|
//FIXME: check how this is defined.
|
||||||
|
// See issue #89.
|
||||||
// rev_hpredict_nsamp(buf, size, samples)?;
|
// rev_hpredict_nsamp(buf, size, samples)?;
|
||||||
|
return Err(TiffError::UnsupportedError(
|
||||||
|
TiffUnsupportedError::HorizontalPredictor(color_type)
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in new issue
Block a user