-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit and, by extension, PR attempts to update `stb` in the most straightforward way possible. Whether that was successful is left to the reader's judgement... Aside from synchronizing the library with the main repo, the following fixes from unmerged PRs were included in this change: - stb#1299: stb_rect_pack: make rect_height_compare a stable sort - stb#1402: stb_image: Fix "unused invalid_chunk" with STBI_FAILURE_USERMSG - stb#1404: stb_image: Fix gif two_back memory address - stb#1420: stb_image: Improve error reporting if file operations fail within *_from_file functions - stb#1445: stb_vorbis: Few static analyzers fixes - stb#1487: stb_vorbis: Fix residue classdata bounding for f->temp_memory_required - stb#1490: stb_vorbis: Fix broken clamp in codebook_decode_deinterleave_repeat - stb#1496: stb_image: Fix pnm only build - stb#1497: stb_image: Fix memory leaks if stbi__convert failed - stb#1498: stb_vorbis: Fix memory leaks in stb_vorbis - stb#1499: stb_vorbis: Minor change to prevent the undefined behavior - left shift of a negative value - stb#1500: stb_vorbis: Fix signed integer overflow Additional, relevant minor fixes I felt didn't warrant a separate PR: - make `dct()` and `dctjpeg()` accept a stride parameter - don't expose `stbi__flip_vertically_on_write` outside std_image_write - remove `ifndef` shenanigans from `stbi__load_main()`; reorder formats - remove `bpc` parameter from `stbi__load_main()` due to no PSD support - check for running out of bits from stream in `stbi__jpeg_get_bit*()`s - check for 0xFF while skipping trash in stbi__skip_jpeg_junk_at_end()` - return APP0 marker type through `stbi__jpeg->jfif` member - consistently use `tinyprint` and `fileno.h` in programs utilizing stb - fix `-?` not echoing help when using getopt in programs utilizing stb - fix `-m` not being registered in `getopt()` in `memzoom.c` - reorder some comments mangled by `clang-format` Signed-off-by: mataha <mataha@users.noreply.github.com>
- Loading branch information
Showing
19 changed files
with
1,137 additions
and
643 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.