-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bi level support #188
base: master
Are you sure you want to change the base?
Bi level support #188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @silabpm for the pull, please check few minor comments.
EncodeContext( | ||
inputPixels, | ||
outputBytes, | ||
bitsPerPixel / BITS_PER_BYTE,//bitsPerPixel, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need ceil(bitsPerPixel.toDouble() / BITS_PER_BYTE).toInt()
here as well?
pixelsPerLine: Int | ||
) { | ||
private val bytesPerLine = bytesPerPixel * pixelsPerLine | ||
private val bytesPerLine = | ||
bytesPerPixel * pixelsPerLine//ceil(bitsPerPixel.toDouble() / BITS_PER_BYTE * pixelsPerLine).toInt() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the comments ?
Implement PackBit decoding for bit per pixel < 8