Sean Barrett
555efbedfc
Update version numbers
ago%!(EXTRA string=8 years)
Fabian Giesen
0fbbda56fa
stb_image: Account for tRNS chunk in non-paletted images.
...
So we report channels_in_file correctly.
Fixes #329 .
ago%!(EXTRA string=8 years)
Fabian Giesen
49c7f1b397
stb_image: Optimise vertical flip.
...
This incorporates #462 , but also factors everything into one
function that is shared between 8-bit integer, 16-bit integer, and
float pixels (vertical flip operates on rows of bytes and doesn't
really care), and finally always uses a 2k on-stack buffer without
dynamic memory allocation, doing multiple memcpys per row if
necessary. Not only does this remove an out-of-memory failure mode,
it is also preferable for large images, since it's more
L1-cache-firendly this way.
Fixes #462 .
ago%!(EXTRA string=8 years)
Fabian Giesen
25a2596b2f
stb_image: Fix rounding during unpremultiply.
...
This is the same method as in pull request #455 , but using integer
arithmetic instead of converting to float.
Fixes #455 .
ago%!(EXTRA string=8 years)
Fabian Giesen
316571b395
stb_image: 3-char indent and other minor formatting issues.
ago%!(EXTRA string=8 years)
Fabian Giesen
cc7f1d1e6d
stb_image: Documentation fixes.
...
req_comp is now desired_channels and *comp is *channels_in_file.
Fixes issue #466 .
ago%!(EXTRA string=8 years)
Fabian Giesen
0674660451
stb_image: Relax raw_len validation for non-interlaced PNGs.
...
We used to require exact match between img_len and raw_len for
non-interlaced PNGs, but the PNG in issue #276 has extra bytes
(all zeros) at the end of the compressed DEFLATE stream.
The PNG spec doesn't have anything to say about it (that I
can tell), and if libpng accepts this, who are we to judge.
Fixes issue #276 .
ago%!(EXTRA string=8 years)
Nathan Reed
76a1a1c408
Fix variable-shadowing warnings
ago%!(EXTRA string=8 years)
Nathan Reed
7091cb6ed6
Fix integer conversion warning
ago%!(EXTRA string=8 years)
PopPoLoPoPpo
9bcda8bb1c
Add stbi_load_16() variants to load from memory or callbacks
ago%!(EXTRA string=8 years)
Jean-Sebastien Bevilacqua
d8796f05bf
Robustify stbi__sse2_available in stb_image.h
...
Function `stbi__sse2_available` takes no argument,
we should be explicit by passing `void` as argument.
It will remove warnings from 'some' compilers.
ago%!(EXTRA string=8 years)
Kevin Schmidt
97ae5fb3db
Edit contributor list.
ago%!(EXTRA string=8 years)
Kevin Schmidt
1dfdf5558d
Fix STBI_NO_STDIO.
ago%!(EXTRA string=8 years)
Sean Barrett
d795785f3d
docs
ago%!(EXTRA string=8 years)
Sean Barrett
56a61e178f
reorganize contributor list (removing one redundant name and adding one new one as well)
ago%!(EXTRA string=8 years)
Sean Barrett
c79fa78ee8
tweaks to previous merge
ago%!(EXTRA string=8 years)
Sean Barrett
2de9961443
docs
ago%!(EXTRA string=8 years)
Sean Barrett
d9e7c55bd7
minor docs for last merge
ago%!(EXTRA string=8 years)
Sean Barrett
24fa816116
merge https://github.com/nothings/stb/pull/427 but I messed up the merge
...
so you don't get the automatic info you normally do
ago%!(EXTRA string=8 years)
Sean Barrett
6d60610348
tweaks to previous merge
ago%!(EXTRA string=8 years)
Sean Barrett
8fe48099cc
add comment for next fix prematurely
ago%!(EXTRA string=8 years)
Sean Barrett
5bbe1d8c2a
fixes to that PR
ago%!(EXTRA string=8 years)
Sean Barrett
be6d13cd6d
fix bug in png decoding with 1,2,4-bpp images using filter that samples previous line
ago%!(EXTRA string=8 years)
Vladislav
667f35578b
statically initialize
ago%!(EXTRA string=8 years)
Fabian Giesen
22c72a069c
stb_image: Support optional args consistently.
...
My guideline for the rules is the PNG loader (which I consider
"canonical"). In the _load functions, x and y are required but
comp is optional; in the _info functions, all three are optional.
Fixes issue #411 (and other related, unreported issues).
ago%!(EXTRA string=8 years)
Fabian Giesen
3e17544873
stb_image: Give up trying to runtime-detect SSE2 on GCC.
...
We tried but it was nothing but trouble. New rule: with
GCC/Clang, if you're compiling with -msse2, you get always-on
SSE2 code, otherwise you don't get any. Trying to ship
anything with proper runtime dispatch requires both working
around certain bugs and some fiddling with build settings,
which runs contrary to the intent of a one-file library,
so bail on it entirely.
Fixes issue #280 .
Fixes issue #410 .
ago%!(EXTRA string=8 years)
Jeremy Sawicki
9e76bb5108
stb_image: JPEG: Improved detection of RGB images
ago%!(EXTRA string=8 years)
Gregory Mullen (grayhatter)
16c83cd5fc
Fix a pair of warnings in stb_image.h
ago%!(EXTRA string=8 years)
Sean Barrett
dc6089f05b
tweak fill byte PR
ago%!(EXTRA string=8 years)
Sean Barrett
a6dc061137
tweak 16-bit quantization for clarity
ago%!(EXTRA string=8 years)
Sean Barrett
786ac92daa
tweak RGB-to-Y conversion
ago%!(EXTRA string=8 years)
Sean Barrett
47685c5f84
remove deprecated old-precision jpg path from stb_image.h
...
tweak license reference wording
ago%!(EXTRA string=8 years)
Sean Barrett
e248e30954
change license to public-domain AND mit (based on twitter vote)
ago%!(EXTRA string=8 years)
Jeremy Sawicki
f5f7dc02a1
stb_image: JPEG: Provide failure reason for unknown marker
ago%!(EXTRA string=8 years)
Jeremy Sawicki
2219a6da29
stb_image: JPEG: Accept DNL segment
ago%!(EXTRA string=8 years)
Jeremy Sawicki
6f5677946c
stb_image: JPEG: Accept non-zero junk bytes at the end of image data
ago%!(EXTRA string=8 years)
Jeremy Sawicki
344c3f73d5
stb_image: JPEG: Accept fill bytes in stbi__grow_buffer_unsafe
ago%!(EXTRA string=8 years)
Jeremy Sawicki
e08d398671
stb_image: JPEG: Accept 16-bit quantization tables
ago%!(EXTRA string=8 years)
Jeremy Sawicki
34fa37bbb4
stb_image: JPEG: Accept any component IDs
ago%!(EXTRA string=8 years)
Jeremy Sawicki
cb7ffb2408
stb_image: Update contributors
ago%!(EXTRA string=8 years)
Jeremy Sawicki
552c548a0e
stb_image: JPEG: Convert RGB to grayscale properly
ago%!(EXTRA string=8 years)
themanagainstthetank
7e989db555
update stb_image.h
...
int raw_data[4] to 0, or the compiler bugs
ago%!(EXTRA string=8 years)
Sean Barrett
96620a3a54
update version numbers
ago%!(EXTRA string=8 years)
Sean Barrett
dead3815e2
credits
ago%!(EXTRA string=8 years)
Sean Barrett
48710234f2
credits; 1/2/4-bit png fix; easy font spacing; NO_STDIO in image_write
ago%!(EXTRA string=8 years)
Thomas Ruf
f07727a28a
stb_image.h: large structures on the stack
...
more of "allocate large structures on the stack", this time in the forgotten stbi__jpeg_test
-> avoids the infamous _chkstk() when working with CRT
ago%!(EXTRA string=9 years)
sammyhw
ec9db6f84b
allow for all 16 bits
ago%!(EXTRA string=9 years)
Sean Barrett
b61b7a74fa
update version info
ago%!(EXTRA string=9 years)
Sean Barrett
4a1523f60a
make tga load function static to avoid link errors on multiple instances
ago%!(EXTRA string=9 years)
Sean Barrett
7759a2a93d
fix "misleading indentation" gcc warning
ago%!(EXTRA string=9 years)