imgcodecs(tiff): sanitize tiff decoder
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Thu, 4 Apr 2019 00:35:08 +0000 (00:35 +0000)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 4 Apr 2019 11:16:53 +0000 (14:16 +0300)
commitba5ddd649957e42e61f3ebba620bf503e55e9c60
tree9ef97249592c2bb46cd2cf3b4007e73205a8c633
parentd8b8c3b1456b508fb903843bcdcdb98036a77c73
imgcodecs(tiff): sanitize tiff decoder

- more checks
- drop separate branches for 32FC1/32FC3(read) handling
- added for 32F/64F non-compressed
- added tests for 32FC3 (RAW + hdr SGILOG compression)
- added test 64FC1
- dump tiff errors on stderr
modules/imgcodecs/src/grfmt_tiff.cpp
modules/imgcodecs/src/grfmt_tiff.hpp
modules/imgcodecs/src/utils.cpp
modules/imgcodecs/src/utils.hpp
modules/imgcodecs/test/test_tiff.cpp