- 28 11月, 2017 4 次提交
-
-
由 Chris Forseth 提交于
-
由 Chris Forseth 提交于
Only clear to background color if index is non-zero. Fixed a the disposal test gif I was using - now renders properly (gif has no transparent set, but all renderers still considered it transparent. Spec says 0 should be ignored if 0, but was confusing by saying it only in the context of the pal not existing.. but seems to be the case always.
-
由 Chris Forseth 提交于
Per the contributor doc - added my name. Noticed urraka also did some work here, so hopefully didn't step on any toes. - Fix an issue where the spec of the gif for restore to previous uses code 3, not 4. - To get results that worked - made an assumption that "clear to background" meant "revert back to what was there before I drew", where mode 1 would revert back to the previous frame [slightly different]. If I clear to background color instead, I ended up with large opaque squares in gifs that changes their transparent colour each frame. - Background color is supposed to be used only for pixels not rendered by the image, so took that to mean it only really affected the previous frame, or potentially any frame that used full disposal. Since background color is allowed to be unspecified this is what lead me to believe I shouldn't use it for disposal. - Oh, also upped the codes table to 8192 as 4096 ended up being too small for a few of my test cases. Full disclaimer - I only read through the GIF format for this contribution, so competly could be misinterpreting the spec - but this gave me reuslts that matched Chrome.
-
由 Chris Forseth 提交于
- Allow loading a gif as multiple frames into a single buffer. Each frame is a full image seperated by a (w * h * comp) stride. - Optionally, can pass in a pointer to a int, which will be filled with an array layers long contain ms for each frame. - Fix gif's not loading the initial transparent background - I believe also fix disposal rules for subsequent frames (though being somewhat inefficient with memory to do so) - Add a flip_vertical that takes into account slices as well. Compiled using VS2017, but nothing else as I'm not really setup for it. Apologies.
-
- 24 7月, 2017 5 次提交
-
-
由 Sean Barrett 提交于
-
由 Sean Barrett 提交于
-
由 Sean Barrett 提交于
-
-
由 Sean Barrett 提交于
-
- 23 7月, 2017 31 次提交
-
-
由 Fabian Giesen 提交于
So we report channels_in_file correctly. Fixes #329.
-
由 Fabian Giesen 提交于
Fixes #307, this time for real.
-
由 Fabian Giesen 提交于
Fixes issue #307.
-
由 Fabian Giesen 提交于
Fixes #416.
-
-
-
由 Fabian Giesen 提交于
-
由 Fabian Giesen 提交于
-
由 Fabian Giesen 提交于
Fixes #471.
-
由 Fabian Giesen 提交于
...as present in MS TrueType files. Since this table is optional, the new stbtt_GetFontVMetricsOS2 has a return value and can fail. This is a replacement for pull request #463. Fixes #463.
-
由 Fabian Giesen 提交于
This incorporates #462, but also factors everything into one function that is shared between 8-bit integer, 16-bit integer, and float pixels (vertical flip operates on rows of bytes and doesn't really care), and finally always uses a 2k on-stack buffer without dynamic memory allocation, doing multiple memcpys per row if necessary. Not only does this remove an out-of-memory failure mode, it is also preferable for large images, since it's more L1-cache-firendly this way. Fixes #462.
-
由 Fabian Giesen 提交于
1. const char* for __FILE__ (string literals are const) 2. Use %zd to print size_t where available; the only real problem here is Visual C++. Use long long on the VC++ vers that support 64-bit targets but not %zd, int on the even older 32-bit-only VC++ vers that don't support "long long" either. Fixes #459. I think. (It's hard to be sure since the issue doesn't state the exact warning message.)
-
由 Fabian Giesen 提交于
-
由 Fabian Giesen 提交于
This is the same method as in pull request #455, but using integer arithmetic instead of converting to float. Fixes #455.
-
由 Fabian Giesen 提交于
-
https://github.com/Reedbeta/stb由 Fabian Giesen 提交于
Merge branch 'fix-vs2015-warnings' of https://github.com/Reedbeta/stb into Reedbeta-fix-vs2015-warnings
-
由 Fabian Giesen 提交于
-
由 Fabian Giesen 提交于
-
由 Fabian Giesen 提交于
-
https://github.com/poppolopoppo/stb由 Fabian Giesen 提交于
Merge branch 'load_16_variants' of https://github.com/poppolopoppo/stb into poppolopoppo-load_16_variants
-
由 Fabian Giesen 提交于
-
-
由 Fabian Giesen 提交于
-
-
由 Fabian Giesen 提交于
-
-
由 Fabian Giesen 提交于
-
-
由 Fabian Giesen 提交于
-
-
由 Fabian Giesen 提交于
-