Skip to content
Myr

version; tweak docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent bc58f37 · Browse files · 1 file+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:stb_image_resize.h+6 added-5 removed
1/* stb_image_resize - v0.93 - public domain image resizing1/* stb_image_resize - v0.94 - public domain image resizing2 by Jorge L Rodriguez (@VinoBS) - 20143 http://github.com/nothings/stb45 Written with emphasis on usability, portability, and efficiency. (No
100 unmodified lines
106 thing". While premultiplied alpha is standard in the movie CGI107 industry, it is still uncommon in the videogame/real-time world.108109 If you linearly filter non-premultiplied alpha, strange effects110 occur. (For example, the average of 1% opaque bright green111 and 99% opaque black produces 50% transparent dark green when110 occur. (For example, the 50/50 average of 99% transparent bright green111 and 1% transparent black produces 50% transparent dark green when112 non-premultiplied, whereas premultiplied it produces 50%113 transparent near-black. The former introduces green energy114 that doesn't exist in the source image.)115
35 unmodified lines
151 it is linear; you almost never want to apply the colorspace.152 (For example, graphics hardware does not apply sRGB conversion153 to the alpha channel.)154155 ADDITIONAL CONTRIBUTORS155 CONTRIBUTORS156 Jorge L Rodriguez: Implementation157 Sean Barrett: API design, optimizations158 Aras Pranckevicius: bugfix159 160 REVISIONS161 0.94 (2017-03-18) fixed warnings162 0.93 (2017-03-03) fixed bug with certain combinations of heights163 0.92 (2017-01-02) fix integer overflow on large (>2GB) images164 0.91 (2016-04-02) fix warnings; fix handling of subpixel regions165 0.90 (2014-09-17) first released version166167 LICENSE166168 See end of file for license information.169170 TODO171 Don't decode all of the image data when only processing a partial tile
2453 unmodified lines