-
Notifications
You must be signed in to change notification settings - Fork 1
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
Split images to reduce pixel count #6
Comments
We could also do the splitting after decoding the files, and just store the pre-computed areas. This allows us to keep the runtime memory usage low while not affecting compression. Of course this hinders parallel decoding, so perhaps a hybrid method is a good idea. It is also not completely free to do so, but it could also just be used to reduce pixel access for the single access case (decode -> render -> cleanup). Parameters..., parameters... The decoder could potentially also premerge (remove transparency) those sub-images which are only used for specific images, so they are faster to render. Effect might be too little to be worth it though, as it also only makes sense for cases where you switch back and forth, like with characters graphics. |
Consider this image:
While seemingly okay, this could be split into three parts, the left eye, right eye, and mouth. Doing so would reduce the amount of pixels with 50%, while only increasing file size with 2% (~200 bytes). Secondly, we will be able to decode the images in parallel, speeding up decoding.
The text was updated successfully, but these errors were encountered: