Skip to content

Conversation

@ashinkajay
Copy link

The scaleFactor used to multiply the the array to create the representation using new bit depth is 2**bit_depth.
But this will result in a representation with more than the expected bits.

The expected formula is: scaleFactor = (2**new_bit_depth)/2+1
New formula reference

Closes #396

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.

Wrong formula used for BitCrush

2 participants