Commit Graph

1250 Commits

Author SHA1 Message Date
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
Thatcher Ulrich 7e1ee2d386 Allocate large structure using malloc instead of stack. 2016-03-02 15:56:53 -05:00
Thatcher Ulrich 291ad22e84 Replace large stack allocations with dynamic allocations. 2016-03-02 15:31:07 -05:00
Thiago Goulart 5a00ce39eb Fix a few warnings when building std_vorbis using Xcode 7.2.1 2016-03-02 00:50:40 -08:00
Craig Donner 20f2eec024 Update license with a few more tweaks and better English grammar. 2016-02-25 13:05:11 -08:00
Craig Donner ee6978cb68 Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable. 2016-02-25 12:55:44 -08:00
Sean Barrett a83ab31335 Merge pull request #248 from ReadmeCritic/patch-1
Update links for par_shapes, fastlz
2016-02-22 14:07:57 -08:00
ReadmeCritic c0774cc7eb Update links for par_shapes, fastlz 2016-02-22 08:50:47 -08:00
Sean Barrett a4c0a5e882 Update other_libs.md 2016-02-22 06:26:21 -08:00
Sean Barrett 32b19a6c8b Update other_libs.md 2016-02-20 02:15:04 -08:00
Craig Donner 49b65c0873 Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable. 2016-02-10 14:48:59 -08:00
Jorge Rodriguez 5e2d0fd777 Add support for obtaining the entire kerning table from a font all at once, for use in rendering packed textures offline. 2016-02-09 19:40:18 -08:00
Jorge Rodriguez ff862a2a46 Merge https://github.com/nothings/stb 2016-02-09 19:37:07 -08:00
Sean Barrett 955dfe991b Merge pull request #238 from dbohdan/master
other_libs.md: Update Picol
2016-01-28 13:07:09 -08:00
Danyil Bohdan d35dbc4368 other_libs.md: Update Picol 2016-01-28 16:42:13 +02:00
Sean Barrett a78bc165b9 Update other_libs.md 2016-01-26 12:29:13 -08:00
Sean Barrett 124669a8f5 Update other_libs.md 2016-01-26 12:28:23 -08:00
Sean Barrett 6fb2270617 Update other_libs.md 2016-01-26 12:27:51 -08:00
Sean Barrett 1d95d24ae9 Update other_libs.md 2016-01-26 12:26:47 -08:00
Sean Barrett b8a9e19f86 Update other_libs.md 2016-01-26 12:23:45 -08:00
Sean Barrett a1169d90d0 Update other_libs.md 2016-01-26 12:22:16 -08:00
Sean Barrett 6e556fe757 Update other_libs.md 2016-01-26 12:08:20 -08:00
Sean Barrett c63e608497 Update other_libs.md 2016-01-26 11:42:11 -08:00
Sean Barrett b9504633b9 Update other_libs.md 2016-01-26 10:23:34 -08:00
Sean Barrett ccfca5a5da Update other_libs.md 2016-01-26 08:45:05 -08:00
Sean Barrett 547c951091 Update other_libs.md 2016-01-26 08:43:34 -08:00