Repository navigation
PNG Lossless compression - #61
Open
satishontrack wants to merge 3 commits into
Open
satishontrack wants to merge 3 commits into
satishontrack wants to merge 3 commits into
Conversation
PIL's default PNG level (6) dominated panorama projection time. Level 1 is still lossless and encodes ~3.2x faster end-to-end (1.56 -> 0.48 s per 4096x2048 panorama, 3 views) for ~9% larger files. Rendered pixels are identical (0/180 views differ on a 60-panorama sample). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-level Render panorama views with PNG compress_level=1
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Panorama projection saves each rendered pinhole view with PIL's default PNG level (6), and that encoding dominates the step. This switches to
compress_level=1, which is still lossless.Measurements
Sample of 60 panoramas from a 4096×2048 360 video(3 views each), run through
prepare_panorama_capture: