Skip to content

Black is zero - #17

Open
hhubschle wants to merge 3 commits into
yigolden-oss:mainfrom
hhubschle:BlackIsZero
Open

Black is zero#17
hhubschle wants to merge 3 commits into
yigolden-oss:mainfrom
hhubschle:BlackIsZero

Conversation

@hhubschle

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant