Skip to content
Myr

Merge branch 'master' of https://github.com/Michaelangel007/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 0eb5da5, c11532b · Browse files · 1 file+10 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+10 added−1 removed

  • other:+10 added−1 removed

1 file+10 added−1 removed

modified:stb_image.h+10 added-1 removed
994 unmodified lines
995996 return result;997}998999#ifndef STBI_NO_HDR1000static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)1001{1002 if (stbi__vertically_flip_on_load && result != NULL) {1003 int w = *x, h = *y;
12 unmodified lines
1016 }1017 }1018 }1019}1020#endif102110201022#ifndef STBI_NO_STDIO10231024static FILE *stbi__fopen(char const *filename, char const *mode)1025{
134 unmodified lines
1160 stbi__context s;1161 stbi__start_file(&s,f);1162 return stbi__hdr_test(&s);1163 #else1164 STBI_NOTUSED(f);1165 return 0;1166 #endif1167}1168#endif // !STBI_NO_STDIO
4 unmodified lines
1173 stbi__context s;1174 stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user);1175 return stbi__hdr_test(&s);1176 #else1177 STBI_NOTUSED(clbk);1178 STBI_NOTUSED(user);1179 return 0;1180 #endif1181}1182
112 unmodified lines
1295 stbi__uint32 z = stbi__get16be(s);1296 return (z << 16) + stbi__get16be(s);1297}12981299#if defined (STBI_NO_BMP) && (STBI_NO_TGA) && (STBI_NO_GIF)1300#else1301static int stbi__get16le(stbi__context *s)1302{1303 int z = stbi__get8(s);1304 return z + (stbi__get8(s) << 8);1305}1306#endif13071308#ifndef STBI_NO_BMP1309static stbi__uint32 stbi__get32le(stbi__context *s)1310{1311 stbi__uint32 z = stbi__get16le(s);1312 return z + (stbi__get16le(s) << 16);1313}1314#endif13151316#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings13171318
5169 unmodified lines