Commit Graph

1075 Commits

Author SHA1 Message Date
Sean Barrett
133a565624 yocto stuff 2016-04-14 07:30:23 -07:00
Sean Barrett
4c519106a7 back out previous change to stb_vorbis (truncation of last frame in corrupt file) 2016-04-04 18:39:30 -07:00
Sean Barrett
5aef2b50aa Merge branch 'master' of https://github.com/nothings/stb 2016-04-02 13:46:39 -07:00
Sean Barrett
62d773db5d updat versions 2016-04-02 13:46:11 -07:00
Sean Barrett
a1a918a487 fix unused variable warning 2016-04-02 13:45:32 -07:00
Sean Barrett
fdca443892 fix crash in 2.11 2016-04-02 07:29:34 -07:00
Sean Barrett
136455df6d clarify 2016-04-02 04:55:44 -07:00
Sean Barrett
fcdf5c682e Merge branch 'master' of https://github.com/nothings/stb 2016-04-02 04:52:02 -07:00
Sean Barrett
6e4154737c update version numbers, documentation, and contributors 2016-04-02 04:51:26 -07:00
Sean Barrett
b03133000a avoid dropping final frame of audio data due to wrong test 2016-04-02 04:20:36 -07:00
Sean Barrett
7a694bdcca re-enable SSE2 code on x64 except with gcc 2016-04-02 04:01:59 -07:00
Sean Barrett
92bd7a49a8 emscripten needs explicit alloca as well 2016-04-02 03:57:17 -07:00
Sean Barrett
56e8fd063c don't leak vertex data if text is scaled to 0 2016-04-02 03:55:03 -07:00
Sean Barrett
538b96d6e2 remove claims of supporting C++ in stretchy_buffer 2016-04-02 03:52:47 -07:00
Sean Barrett
5990ff8a47 remove duplicate typedef of stbtt_fontinfo 2016-04-02 03:51:19 -07:00
Sean Barrett
201af99d9f return correct # of channels for PNG 2016-04-02 03:49:46 -07:00
Sean Barrett
65edb64dd8 Merge branch 'master' into working 2016-04-02 03:45:01 -07:00
Sean Barrett
75c5908f95 fix includes for linux alloca 2016-04-02 03:44:50 -07:00
Sean Barrett
591c7f8cb3 remove white matting when loading transparent PSD 2016-04-02 03:44:50 -07:00
Sean Barrett
a8876b884d fix _WIN32 if STB_THREADS 2016-04-02 03:44:37 -07:00
Jörn Heusipp
aeba55604a stb_vorbis: Fix memory leak in start_decoder(). 2016-04-02 03:44:37 -07:00
Sean Barrett
b7603b0ca6 dr_flac 2016-04-02 03:34:51 -07:00
Sean Barrett
8420e20af6 Merge branch 'for-upstream-fix-stbvorbis-startdecoder-memleak' of https://github.com/manxorist/stb into working 2016-04-02 02:59:53 -07:00
Sean Barrett
8f368799e1 Merge branch 'for-upstream-stbvorbis-fix-memleaks' of https://github.com/manxorist/stb 2016-04-02 02:58:19 -07:00
Sean Barrett
c03f4b3c2f Merge branch 'patch-1' of https://github.com/kinetiknz/stb 2016-04-02 02:57:34 -07:00
Sean Barrett
097a70ae38 Merge branch 'master' of https://github.com/tulrich/stb 2016-04-02 02:56:39 -07:00
Sean Barrett
ba1277e39c Merge branch 'fix_warnings' of https://github.com/tgoulart/stb into working 2016-04-02 02:54:53 -07:00
Sean Barrett
a013c036f3 initialize bmp mr/mg/mb/ma properly 2016-04-02 02:54:25 -07:00
Sean Barrett
218ecd17a4 Merge branch 'patch-1' of https://github.com/looki/stb 2016-04-02 02:42:17 -07:00
Sean Barrett
406d537b41 Merge branch 'initial_png_16bpc' of https://github.com/socks-the-fox/stb into working 2016-04-02 02:41:16 -07:00
Sean Barrett
275d1204b1 Merge branch 'working' 2016-04-02 02:38:07 -07:00
Sean Barrett
4be8fa919f Merge branch 'pull-request-fabs2' of https://github.com/sglass68/stb into working 2016-04-02 02:37:51 -07:00
Sean Barrett
814bb9b5dc remove STBIR__DEBUG_ASSERT because it requires defining/not-defining assert() in a warning-free way on all platforms independent of #include <assert.h>, which is too hard 2016-04-02 02:36:24 -07:00
Sean Barrett
d514035d70 Merge branch 'textedit-drag-while-typing' of https://github.com/ocornut/stb 2016-04-02 02:32:51 -07:00
Sean Barrett
878e8caaa6 Merge branch 'patch-1' of https://github.com/saolsen/stb into working 2016-04-02 02:31:12 -07:00
Sean Barrett
cbc1e7c897 Merge branch 'test' into working 2016-04-02 02:13:41 -07:00
Sean Barrett
4ff6723a6d make resample_test work in VC6 2016-04-02 02:13:20 -07:00
Sean Barrett
c238cebe6a Merge branch 'master' of https://github.com/BSVino/stb into test 2016-04-02 01:46:09 -07:00
Sean Barrett
86bff62371 greatest; munit; parg 2016-04-01 22:15:47 -07:00
Sean Barrett
c66b565cb3 cro_mipmap 2016-04-01 22:06:19 -07:00
Sean Barrett
b79fa5b08c Merge pull request #255 from corporateshark/master
Added PoissonGenerator.h
2016-04-01 21:46:42 -07:00
Sean Barrett
efdfbb3c7c Merge branch 'master' into working 2016-04-01 21:43:22 -07:00
Sean Barrett
a222dc519e Merge branch 'license' of https://github.com/oon3m0oo/stb into work2 2016-03-26 15:49:33 -07:00
Sean Barrett
50479cb07c stb_image: allow jpegs that are rgb not YCrCb 2016-03-26 15:46:59 -07:00
Jörn Heusipp
0e3506d7d1 stb_vorbis: Fix memory leak in start_decoder(). 2016-03-24 18:20:39 +01:00
Jörn Heusipp
0985e89335 stb_vorbis: Fix memory leak in decode_residue() and inverse_mdct() when redefining temp_alloc() and temp_free()
temp_alloc() and temp_free() are documented as customization points in section "MEMORY ALLOCATION" (stb_vorbis.c:81).
However, in decode_residue() and inverse_mdct() (via temp_block_array() and temp_alloc() respectively), stb_vorbis allocates temporary memory but does not call temp_free() when finished. It does call temp_alloc_restore() though, but there is no sane way to provide an implementation thereof when using a malloc()/free()-like allocation backend.

Adding calls to temp_free() before the respective calls to temp_alloc_restore() is safe, because in case of a non-empty temp_alloc_restore() implementation, temp_free() would simply be implemented empty (the current implementation of temp_*() is fine in this regard). That way, all possible temporary memory allocation schemes (i.e. alloca(), custom provided alloc_buffer, malloc()) are handled properly.

Add the appropriate temp_free() calls.
2016-03-17 09:23:45 +01:00
Matthew Gregan
94f2ceac15 Fix typo in stbi__parse_uncompressed_block 2016-03-12 01:55:59 +13:00
Sergey Kosarevsky
46b64eb878 Added PoissonGenerator.h 2016-03-10 19:49:38 +01:00
Sean Barrett
8aa9afb30e typo 2016-03-07 20:44:59 -08:00
Sean Barrett
b9bc6148d4 linalg.h 2016-03-07 20:44:29 -08:00