Skip to content
Myr

fixes to that PR

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 5511239 · Browse files · 1 file+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:stb_image.h+5 added-4 removed
1/* stb_image - v2.14 - public domain image loader - http://nothings.org/stb_image.h1/* stb_image - v2.15 - public domain image loader - http://nothings.org/stb_image.h2 no warranty implied; use at your own risk34 Do this:5 #define STB_IMAGE_IMPLEMENTATION
41 unmodified lines
47 See end of file for license information.4849RECENT REVISION HISTORY:5051 2.15 (2017-03-18) fix png-1,2,4 bug; warnings52 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs53 2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes54 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes55 2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64
21 unmodified lines
77 Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip)78 Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD)79 github:urraka (animated gif) Junggon Kim (PNM comments)80 Daniel Gibson (16-bit TGA)80 socks-the-fox (16-bit TGA)81 socks-the-fox (16-bit PNG)82 Jeremy Sawicki (handle all ImageNet JPGs)83 Optimizations & bugfixes84 Fabian "ryg" Giesen85 Arseny Kapoulkine
10 unmodified lines
96 Aruelien Pocheville Thibault Reuille Cass Everitt Matthew Gregan97 Ryamond Barbiero Paul Du Bois Engin Manap github:snagar98 Michaelangel007@github Oriol Ferrer Mesia Dale Weiler github:Zelex99 Philipp Wiesemann Josh Tobin github:rlyeh github:grim210@github99 Blazej Dariusz Roszkowski github:sammyhw GrayHatter@uTox100 Blazej Dariusz Roszkowski github:sammyhw Gregory Mullen101102*/103104#ifndef STBI_INCLUDE_STB_IMAGE_H
3489 unmodified lines
3594}35953596static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)3597{3597 (void)ri; // This unused warning is safe to ignore.3598 unsigned char* result;3599 stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg));3600 STBI_NOTUSED(ri);3601 j->s = s;3602 stbi__setup_jpeg(j);3603 result = load_jpeg_image(j, x,y,comp,req_comp);3604 STBI_FREE(j);
3448 unmodified lines