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

Various things #9

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Various things #9

wants to merge 12 commits into from

Conversation

Sichii
Copy link
Contributor

@Sichii Sichii commented Jan 15, 2025

  • finally figured out archive entry ordering (DataArchive.Sort)
  • fix for palette remapper
  • byte optimized ScaleRange speeds up rendering ~30x
  • palette rendering
  • fix for efa conversion to non-transparent formats
  • fix for efa rendering

- palette remapper must account for preserved blacks...

some images when converted from EPF to PNG have blacks that arent in the first palette index, and thus arent transparent

when this image is then converted back into an EPF, the black is preserved by changing it to a near-black color

when remapping palettes, we must take this possibility into account. It will show itself as the near-black color being in one palette, but not the other. With this we can guess that it was a preserved black, and we can re-map it back to a black that isnt in the target palette's 0 index.
- created an optimized version of ScaleRange for the byte type
- optimized existing ScaleRange
- nothing actually important
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