TiffLibrary icon indicating copy to clipboard operation
TiffLibrary copied to clipboard

Black is zero

Open hhubschle opened this issue 2 years ago • 1 comments

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.

hhubschle avatar Apr 02 '23 21:04 hhubschle

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. image

hhubschle avatar Apr 03 '23 19:04 hhubschle