Commit Graph

338 Commits

Author SHA1 Message Date
Sean Barrett bd8d9a88bc test.sbm: add clang compilation 2019-08-11 04:57:39 -07:00
Randy 0637408284 fuzz: fix error handling 2019-03-12 00:59:20 +01:00
Randy af516b99ff fuzz: remove some chunk identifiers from stb_png.dict
these chunks are not parsed
2019-03-12 00:14:16 +01:00
Randy cd797f8116 add fuzz target, dictionary, iphone png's 2019-03-11 23:56:45 +01:00
Sean Barrett a0b521fcf2 no warnings when compiling /W3
compiling all test cases and compilers in test.sbm
   Compilers:
     32-bit:
       VS2015
       VS2013
       VS2008
       VC6 (1998)
       clang-cl 9.0.1
     64-bit
       VS2015
       clang-cl 9.0.1
2019-03-04 14:45:06 -08:00
Sean Barrett 96b4748d57 update test_ds.c 2019-03-03 21:40:18 -08:00
Sean Barrett 30496e22d7 add new test files 2019-03-03 21:39:46 -08:00
Sean Barrett 72990efc3e test updates for test_ds unit testing 2019-02-25 13:49:37 -08:00
Sean Barrett e704ed0efb update tests and project files for stb_ds 2019-02-25 11:17:27 -08:00
Sean Barrett 477471d9a8 add stb_ds.h and tests 2019-02-25 11:16:35 -08:00
Sean Barrett 5715e6faaf Makefile: update how to build image_write_test 2019-02-24 04:37:37 -08:00
Sean Barrett 57c7029166 test_image_write.c: change from standalone to integrated with image_test.c 2019-02-24 04:22:47 -08:00
Fabian Giesen e0ee0de26c tests: Add simple image_write_test smoke test 2019-02-23 05:18:14 -08:00
Sean Barrett f11f1e801a stb_sprintf: credits 2019-02-07 09:23:01 -08:00
Sean Barrett 476c1f89a2 stb_image_write: fix the previous fix (incorrectly labelled as stb_image) 2019-02-07 07:01:23 -08:00
Sean Barrett f82dbd638c windows unicode: don't malloc buffers, add explicit STBI_WINDOWS_UTF8 #define 2019-02-07 05:55:03 -08:00
Sean Barrett 3005bcfe87 Merge branch 'misc-typos' of https://github.com/luzpaz/stb into working 2019-02-07 05:00:12 -08:00
Sean Barrett a28a6b126b tests: 64-bit fixes, fix typo in image tests 2019-02-07 04:42:32 -08:00
Marcin Wojdyr e0a0328b43 add tests to tests/test_sprintf.c 2018-04-29 16:50:25 +01:00
Sean Barrett e5254a7fde whoops, makefile for travis was no longer testing most libraries compiling 2018-04-27 04:47:03 -07:00
luz.paz 622b3adad3 Misc. comment typos
Found via `codespell -q 3`
2018-02-12 14:54:22 -05:00
Sean Barrett aeb2b4b64d tweak handling of STBIWDEF 2018-02-11 11:19:45 -08:00
Sean Barrett a6796aee40 test stb_lib 2018-01-31 10:46:31 -08:00
Sean Barrett 6ba21df503 update dsp with new compile tests 2018-01-30 17:33:17 -08:00
Sean Barrett 40f43afe56 tweak tests 2018-01-30 05:40:17 -08:00
Sean Barrett 085ba4b627 add compilation tests that have no other includes to avoid accidental dependencies 2018-01-30 05:31:18 -08:00
Sean Barrett 3ac351f39d break out stb_lib.h 2018-01-30 05:16:47 -08:00
Sean Barrett 06fedddb4d fix stb_dxt.h; fix misspelled STB_DXT_IMPLEMENTATION in test jig 2018-01-30 02:56:16 -08:00
Sean Barrett 5db03ef592 Merge branch 'master' into working
Conflicts:
	stb_image.h
2018-01-29 04:04:28 -08:00
Sean Barrett 986a5eeeb1 fix stb_truetype test file 2018-01-29 03:35:03 -08:00
Sean Barrett 0b8b3f2876 Merge branch 'stb_truetype_fixes_20171104' of https://github.com/kphillisjr/stb 2018-01-29 03:32:11 -08:00
Sean Barrett f22857495b Merge branch 'compile' of https://github.com/alculquicondor/stb 2018-01-29 03:29:59 -08:00
Sean Barrett 5f1a73fe4e credits, tests 2018-01-29 03:18:40 -08:00
Kenney Phillis Jr 5182622b14 tests: fix test_trutype.c on msvc 2015
This is 3 short fixes for the file test_truetype.c.

1. Fix the Visual Studio Secure CRT Errors by defining
 _CRT_SECURE_NO_WARNINGS

2. Fix signed/unsigned Character conversion warning/error.

3. Fix the Definitions for the Image packer.
This now works as intended generating usable png files.
2017-11-04 03:28:03 -05:00
Aldo Culquicondor a981af59c5 Fix tests compilation 2017-10-16 12:30:27 -05:00
Sean Barrett 555efbedfc Update version numbers 2017-07-23 14:09:39 -07:00
Sean Barrett 423298e071 fix SDF documentation and add example code 2017-07-12 09:27:04 -07:00
Sean Barrett 84e42c2e8d fix stbi_shiftsigned to be shifting a value that's unsigned 2017-04-28 23:35:37 -07:00
Jorge Rodriguez a99bc0ca32 Fix a bunch of warnings under Apple's clang-800.0.42.1 2017-03-11 09:34:26 -08:00
Sean Barrett 83a2489d5b fix compilation on non-C99 compilers 2017-03-03 09:22:07 -08:00
Sean Barrett 7ef6ac1b35 added redundant pg_test.c just in case 2017-01-29 18:16:38 -08:00
Sean Barrett 84e2fc0a9e makefile 2017-01-16 03:01:40 -08:00
Sean Barrett 1dd1b6c191 makefile 2017-01-16 02:53:36 -08:00
Sean Barrett c09f1eebe7 makefile 2017-01-16 02:47:27 -08:00
Sean Barrett 1b7aa1af87 makefile 2017-01-16 02:39:18 -08:00
Sean Barrett d71aea034b makefile 2017-01-16 01:41:23 -08:00
Sean Barrett a235b6cd44 makefile 2017-01-16 01:36:58 -08:00
Sean Barrett cf6d17cd74 makefile 2017-01-16 01:28:11 -08:00
Sean Barrett e29e2bfb12 makefile 2017-01-16 01:22:16 -08:00
Sean Barrett 21913be792 makefile 2017-01-16 01:14:08 -08:00
Sean Barrett fc5668cdac makefile for tests 2017-01-16 01:09:50 -08:00
Sean Barrett 53e4334bf7 Merge pull request #363 from mgerhardy/patch-1
Shouldn't this be 6?
2017-01-02 18:15:16 -05:00
Sean Barrett c9fe5bac48 rename all stb_sprintf identifiers to follow stb conventions 2016-12-05 03:48:37 -08:00
Sean Barrett 0b2c06a7e1 more STB_IMAGE_STATIC fixes 2016-12-04 05:39:35 -08:00
Sean Barrett 7d0099ecc9 fix bug in stb_connected_components adjacency list updating incorrectly handling avoiding adding the same connection twice 2016-10-16 07:58:59 -07:00
Sean Barrett cf51044bc6 update stb_pg project 2016-10-07 08:23:24 -07:00
Martin Gerhardy 4a60c54710 Shouldn't this be 6? 2016-09-30 10:13:05 +02:00
Sean Barrett 25b1f563d1 stbcc 0.94 2016-04-17 09:16:26 -07:00
Sean Barrett 51393c0a7a remove dead code after previous optimizations 2016-04-17 08:45:06 -07:00
Sean Barrett d1eba33305 fix bug w/ large clumps per cluster;
reduce time spent on global union-find by skipping clumps that don't touch edges
2016-04-17 08:12:52 -07:00
Sean Barrett ad55a9b383 version 0.93
assign surplus adjacency storage only to clumps that touch edge
document timings and memory usage
2016-04-16 14:05:40 -07:00
Sean Barrett 667f79589a forgot to include stb_connected_components test source file 2016-04-16 12:58:37 -07:00
Sean Barrett e585dad291 change map image formats to workaround stb_image bug 2016-04-16 11:21:59 -07:00
Sean Barrett 0214a3c71f untested simple batching;
document algorithm;
automatically use sqrt(N) instead of 32 as cluster size
2016-04-16 10:04:03 -07:00
Sean Barrett 1392344cdd include stb_connected_components.h in main stb compile tests, add test app 2016-04-16 09:14:39 -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 50479cb07c stb_image: allow jpegs that are rgb not YCrCb 2016-03-26 15:46:59 -07:00
Jorge Rodriguez ff862a2a46 Merge https://github.com/nothings/stb 2016-02-09 19:37:07 -08:00
Sean Barrett 9c8762a156 update other_libs.md 2016-01-23 08:44:27 -08:00
Sean Barrett 820f63be44 stb_tilemap_editor: fix typo in docuemtnation, update version & credits 2016-01-22 05:17:12 -08:00
Sean Barrett 0860860af6 avoid __forceinline in mingw since their definition for C is broken;
dummy definitions for malloc et al (note you have to modify source to make this work though anyway);
tweak credits change;
2016-01-16 07:19:27 -08:00
Jorge Rodriguez 831b2d2fa6 Fix a merge gone wrong, add some more test cases. 2015-11-10 13:41:53 -08:00
Jorge Rodriguez a1ef3a1060 Fix the calculation of the input image shift when using subpixel regions 2015-11-10 11:25:59 -08:00
Sean Barrett 2b57ea95da fixed version of removed support for CODEBOOK_SHORTS 2015-11-08 19:16:25 -08:00
Sean Barrett bc2219e1b3 fix multiple crashes on invalid files 2015-11-08 16:22:07 -08:00
Sean Barrett ea88e59b5d fix invalid handling of truncated end-of-file indicator 2015-11-08 13:45:33 -08:00
Sean Barrett 69a318bdb3 fix two invalid-file crashes found by fuzz testing 2015-11-08 13:20:55 -08:00
Sean Barrett 2073403a5f fix two setup crashes found by fuzz testing 2015-11-08 13:09:30 -08:00
Sean Barrett 297ff62859 change bmp info to use common header parser 2015-11-08 13:09:16 -08:00
Sean Barrett 876aea3dbe refactor bmp header parser for sharing with stbi_info 2015-11-08 01:22:30 -08:00
Sean Barrett 93b2b82996 get rid of unused return value from write callback 2015-09-14 05:57:42 -07:00
Sean Barrett b4477803cb fix public function names;
fix internal names to be namspaced properly;
2015-09-14 05:48:24 -07:00
Sean Barrett ff116a4fe8 allow font ranges with first_char = 0;
fix divide by 0 for exactly-vertical edges;
fix possible divide by 0 for exactly-horizontal edges
add documentation for stbtt_Rasterize;
2015-09-13 11:42:54 -07:00
Sean Barrett d5b8af12cb fix missing "defined" in #if defined(STBI_NO_foo);
fix incorrect initialization of alpha channel for RGB PSD
2015-09-13 11:08:40 -07:00
Sean Barrett 023ff3ffd2 Merge pull request #140 from ocornut/stb-wingraph-static
stb_wingraph.h: missing lib pragmas for completeness
2015-09-13 07:01:02 -07:00
Sean Barrett 33c9010223 update version & version history 2015-09-13 05:51:16 -07:00
Sean Barrett 90dc93a1cc fix bug where we couldn't rewind a file that reached EOF, which can happen with < 92-byte PIC,PNM,HDR,TGA 2015-09-13 05:41:21 -07:00
Sean Barrett a3d62dfec1 fix a few crash bugs with invalid stb_vorbis files (reported by Philip Bennefall, found using a fuzz tester) 2015-09-03 11:16:19 -07:00
Sean Barrett 0e24ec5feb fix some cases that didn't return outofmem error properly and would crash instead 2015-09-03 07:11:02 -07:00
Sean Barrett c15190373c add missing changes to project file 2015-08-30 19:31:36 -07:00
Sean Barrett ebb54fd7a3 seeking in stb_vorbis (Dougall Johnson)
test program for seeking (stb)
2015-08-30 19:29:35 -07:00
Sean Barrett d821fd83f3 Merge branch 'master' into working
Conflicts:
	stb_voxel_render.h
2015-08-01 04:02:00 -07:00
ocornut be8284de7e stb_wingraph.h: missing lib pragmas for completeness 2015-06-30 20:02:41 -06:00
Sean Barrett aa89970d6b stb_image.h: fix *comp value when loading PSDs
stb_voxel_render.h: fix STBVOX_CONFIG_OPTIMIZED_VHEIGHT
2015-05-28 22:11:45 -07:00
Sean Barrett 3f17b24d90 make sure all libs compile as C++ 2015-04-14 03:53:26 -07:00
Sean Barrett 1384715b11 Merge branch 'master' into working 2015-04-13 11:58:26 -07:00
Sean Barrett 7b72651134 add stb_voxel_render to standard compilation tests 2015-04-12 08:59:49 -07:00
Sean Barrett 9534eb2e08 added input.packed_compact for storing most of the major 2/3-bit values in one byte 2015-04-12 01:23:18 -07:00
Sean Barrett 6685256560 change STBVOX_MAKE_LIGHTING to STBVOX_MAKE_LIGHTING_EXT so header file
doesn't have to see the config variables (although this way is actually
more bug prone since you can now use the wrong macro)
2015-04-11 01:05:55 -07:00