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

add PNG reading to sam2p directly (no need for png22pnm) #3

Open
pts opened this issue Jul 20, 2017 · 0 comments
Open

add PNG reading to sam2p directly (no need for png22pnm) #3

pts opened this issue Jul 20, 2017 · 0 comments

Comments

@pts
Copy link
Owner

pts commented Jul 20, 2017

Maybe base it on: load_image_png in https://github.com/pts/pts-swiggle/blob/master/pts-swiggle.c . This uses only a fraction of the libpng library, probably it can be inlined (also zlib, see https://github.com/pts/pdfsizeopt-jbig2).

Maybe base it on: https://gist.github.com/niw/5963798. Which libpng version does it need?

Alpha channel (transparency) handling can get tricky.

Add fast processing for 8-bit RGB, 8-bit grayscale and 8-bit palette, without gamma correction: just memcpy.

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

No branches or pull requests

1 participant