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 5, 5, 5, 5, 5
|
|
|
|
|
|
+static const stbi_uc stbi__zdefault_distance[32] =
|
|
|
|
+{
|
|
|
|
+ 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
|
|
};
|
|
};
|
|
/*
|
|
/*
|
|
Init algorithm:
|
|
Init algorithm:
|
|
@@ -6977,7 +6968,8 @@ STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int
|
|
revision history:
|
|
revision history:
|
|
2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode;
|
|
2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode;
|
|
warning fixes; disable run-time SSE detection on gcc;
|
|
warning fixes; disable run-time SSE detection on gcc;
|
|
- uniform handling of optional "return" values
|
|
|
|
|
|
+ uniform handling of optional "return" values;
|
|
|
|
+ thread-safe initialization of zlib tables
|
|
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
|
|
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
|
|
2.13 (2016-11-29) add 16-bit API, only supported for PNG right now
|
|
2.13 (2016-11-29) add 16-bit API, only supported for PNG right now
|
|
2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes
|
|
2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes
|