TiffLibrary
TiffLibrary copied to clipboard
Black is zero
Fixes a problem where 16 bit gray images are not saved correctly; only 8 bit was supported. Changed BlackIsZero8Encoder to BlackIsZeroEncoder and infer BytePerSample and BitsPerSample from the type. Also add some unit tests that failed previously.
If appears that YCbCr888Tests produces random failures. Probably because TiffYCbCrConverter8 introduces some errors for certain RGB values.
I can reproduce the failure reliably by setting the number of pixels to 100000.
