Skip to content
Myr

Merge branch 'optimize_stbi__ldr_to_hdr' of https://github.com/technik/stb into working

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 · parents db691f0, e64d4f8 · Browse files · 1 file+6 added−1 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−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:stb_image.h+6 added-1 removed
82 unmodified lines
83 Optimizations & bugfixes Mikhail Morozov (1-bit BMP)84 Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query)85 Arseny Kapoulkine86 John-Mark Allen87 Carmelo J Fdez-Agüera8889 Bug & warning fixes90 Marc LeBlanc David Woo Guillaume George Martins Mozeiko91 Christpher Lloyd Jerry Jansson Joseph Thomson Phil Jordan
1587 unmodified lines
1679 for (i=0; i < x*y; ++i) {1680 for (k=0; k < n; ++k) {1681 output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale);1682 }1682 if (k < comp) output[i*comp + k] = data[i*comp+k]/255.0f;1683 }1684 if (n < comp) {1685 for (i=0; i < x*y; ++i) {1686 output[i*comp + n] = data[i*comp + n]/255.0f;1687 }1688 }1689 STBI_FREE(data);1690 return output;1691}1692#endif
5835 unmodified lines