Squashed 'external/stb/stb/' changes from f4a71b13373..f7f20f39fe4
f7f20f39fe4 update README 8503b888748 Merge branch 'resize_latest' of https://github.com/jeffrbig2/stb into working 6e9f34d5429 Merge branch 'master' into working 2a584248766 2.09 resize - fix defines for GCC arm 32 013ac3beddf stb_image: fix gcc bounds-check warning (believed erroneous) 449758bd74c update stb_image_resize2.h 43201e7788f image resize 2.07 ae721c50eaf Merge pull request #1609 from jeffrbig2/fix_coeffs 2fb057af65b remove test 1828f357dc8 Fix bug in coeff generation on more than 3x downsamples with width and height scale equal b7cf1246284 stb_image: fix VC6 c59da6729e0 Mark row0 as unused 7f7e3469cf2 clean up comments 7a075fe7c79 Fix 2 pixel to 1 pixel with wrap Fix output buffer for output callback 177b6c6d9d5 Merge branch 'patch-1' of https://github.com/mundusnine/stb into working 2a74e27bdc4 Merge branch 'floatfix' of https://github.com/ybungalobill/stb into working c497f727861 Merge branch 'dev' into working aac5e88febc Add contributor 84fa046c7c9 Fix custom types having a string_len of 0(always) b1947dd6cfb pre-C99; decrease epsilon d84b174fd35 add self d7a44685a82 use STBTT_fabs 7e2ade58ea2 stb_truetype -- fix floating point comparison against zero by using a correct epsilon git-subtree-dir: external/stb/stb git-subtree-split: f7f20f39fe4f206c6f19e26ebfef7b261ee59ee4
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* stb_image - v2.29 - public domain image loader - http://nothings.org/stb
|
||||
/* stb_image - v2.30 - public domain image loader - http://nothings.org/stb
|
||||
no warranty implied; use at your own risk
|
||||
|
||||
Do this:
|
||||
@@ -48,6 +48,7 @@ LICENSE
|
||||
|
||||
RECENT REVISION HISTORY:
|
||||
|
||||
2.30 (2024-05-31) avoid erroneous gcc warning
|
||||
2.29 (2023-05-xx) optimizations
|
||||
2.28 (2023-01-29) many error fixes, security errors, just tons of stuff
|
||||
2.27 (2021-07-11) document stbi_info better, 16-bit PNM support, bug fixes
|
||||
@@ -5159,9 +5160,11 @@ static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)
|
||||
// non-paletted with tRNS = constant alpha. if header-scanning, we can stop now.
|
||||
if (scan == STBI__SCAN_header) { ++s->img_n; return 1; }
|
||||
if (z->depth == 16) {
|
||||
for (k = 0; k < s->img_n; ++k) tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is
|
||||
for (k = 0; k < s->img_n && k < 3; ++k) // extra loop test to suppress false GCC warning
|
||||
tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is
|
||||
} else {
|
||||
for (k = 0; k < s->img_n; ++k) tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger
|
||||
for (k = 0; k < s->img_n && k < 3; ++k)
|
||||
tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user