forked from Unity-Technologies/crunch
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support horizontally flipped TGA images #68
Merged
Merged
Commits on Jul 11, 2024
-
The RLE TGA images were converted from raw TGA ones using GIMP and some tweaks as the GIMP exporter only support bottom-left and top-left: - Left ones are unmodified GIMP export. - Right ones are in-GIMP horizontally flipped images exported as left ones then the TGA X flip bit was modified by hand in a hex editor.
Configuration menu - View commit details
-
Copy full SHA for a2a6678 - Browse repository at this point
Copy the full SHA a2a6678View commit details -
stb_image: support horizontally flipped TGA images
The TGA format is a bottom-left format by default: the first byte of the first column is expected to be displayed at the bottom-left of the screen, this behavior is inherited from devices painting the screen from the bottom left to the top right. The TGA format provides two bits in the image descriptor byte to paint the data from other sides. The 4th bit tells the device to paint the screen from right-to left and the 5th bit tells the device to paint the screen from top to bottom. So basically: - 00: from bottom-left to top-right - 01: from top-left to bottom-right - 10: from bottom-right to top-left - 11: from top-right to bottom-left Previously stb_image only read the 5th bit and then only supported the loading of vertically flipped images, stb_image was ignoring the 4th bit coding the horizontal flip. Now both flipping directions are supported for both raw and RLE storage.
Configuration menu - View commit details
-
Copy full SHA for 5545834 - Browse repository at this point
Copy the full SHA 5545834View commit details -
Configuration menu - View commit details
-
Copy full SHA for a26263b - Browse repository at this point
Copy the full SHA a26263bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4ae6f1 - Browse repository at this point
Copy the full SHA a4ae6f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 487cb5f - Browse repository at this point
Copy the full SHA 487cb5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0974162 - Browse repository at this point
Copy the full SHA 0974162View commit details
Commits on Jul 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9fc7aa8 - Browse repository at this point
Copy the full SHA 9fc7aa8View commit details
Commits on Jul 17, 2024
-
ci: minor changes in ways how things build or link
- appveyor: do not build the shared library (it is unusable yet), - azure-pipelines: make all binaries use the same library, - codeql: use the shared library.
Configuration menu - View commit details
-
Copy full SHA for a3e01ae - Browse repository at this point
Copy the full SHA a3e01aeView commit details
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.