Skip to content
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

fix colorReduce4 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix colorReduce4 #3

wants to merge 2 commits into from

Conversation

captainwong
Copy link

I've test it, origin code will generate a bad image.

Github had automatically converted source code's encoding from GB18030 to UTF8.

Valid change is line 177:
origin:
*(data+i)= *data&mask + div/2;
change to:
*(data+i)= *(data+1)&mask + div/2;

I've test it, origin code will generate a bad image.
@captainwong captainwong changed the title fix colorReduce5 fix colorReduce4 Apr 24, 2017
Comment abundant & error process, changed line 278, 289.
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