Commit Graph

66 Commits

Author SHA1 Message Date
Sean Barrett 47685c5f84 remove deprecated old-precision jpg path from stb_image.h
tweak license reference wording
2017-03-03 08:19:09 -08:00
Sean Barrett 51a5368dee Merge branch 'master' of https://github.com/pboettch/stb into working 2017-03-03 08:02:39 -08:00
Sean Barrett 96620a3a54 update version numbers 2017-01-16 00:51:24 -08:00
Sean Barrett 48710234f2 credits; 1/2/4-bit png fix; easy font spacing; NO_STDIO in image_write 2017-01-15 23:57:53 -08:00
PopPoLoPoPpo 19d03764b5 Fix #ifndef STBI_WRITE_NO_STDIO scioe for stbi_write_hdr()
stbi_write_hdr_to_func() should still be available even without STBI_WRITE_NO_STDIO,
just like other formats.
2017-01-03 02:45:16 +01:00
Patrick Boettcher 734576e6be image-write: fix monochrome bitmap writing from 8-bit-buffers
Now writing out monochrome bitmaps from 8-bit arrays works
as it does when using PNG.

Bitmaps need 3 bytes per pixel.
2016-06-15 10:36:39 +02:00
Sean Barrett 6e4154737c update version numbers, documentation, and contributors 2016-04-02 04:51:26 -07:00
Sean Barrett 097a70ae38 Merge branch 'master' of https://github.com/tulrich/stb 2016-04-02 02:56:39 -07:00
Thatcher Ulrich 291ad22e84 Replace large stack allocations with dynamic allocations. 2016-03-02 15:31:07 -05: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 f1d2002a1d update contributor list 2016-01-16 10:16:23 -08:00
Sean Barrett 58484eb73d Merge branch 'implicit_cast_fix' of https://github.com/filipwasil/stb into working 2016-01-16 10:11:54 -08:00
Sean Barrett 9f081b62a4 Merge branch 'stbiw_documentation_typo' of https://github.com/karjonas/stb into working 2016-01-16 10:11:00 -08:00
Sean Barrett 099cd5a279 Merge branch 'msvc_runtime_cast_fixes' of https://github.com/karjonas/stb into working 2016-01-16 10:10:07 -08:00
Sean Barrett 8521c38956 tweak previous crc commit 2016-01-16 10:09:35 -08:00
Sean Barrett 89aaa77b5f Merge branch 'image_write_parallel' of https://github.com/karjonas/stb into working 2016-01-16 10:04:45 -08:00
Sean Barrett 20aca08f86 Merge branch 'master' of https://github.com/zerhacken/stb into working 2016-01-16 10:02:56 -08:00
Sean Barrett b9216ddb36 Merge branch 'master' of https://github.com/serge-rgb/stb into working
Conflicts:
	stb_image_write.h
2016-01-16 10:02:30 -08:00
Sean Barrett ac748cba9b update contributor list, version history, version number 2016-01-16 09:57:04 -08:00
Sean Barrett 82ca643ef3 change previous explicitly-sized realloc support to be new API and unbreak old API 2016-01-16 09:47:22 -08:00
Romain Bailly 7e741ffc1e Added the old size as argument to the STBI_REALLOC() and STBIW_REALLOC() macros 2016-01-14 10:34:30 +01:00
Filip Wasil 8cea0090b2 Removie implicit cast to float
When compiling with more restrictive compiler options
such casting from double to float will cause a warning.

Ex. GCC -Wdouble-promotion

Signed-off-by: Filip Wasil <filip.wasil@gmail.com>
2015-10-29 16:09:21 +01:00
Jonas Karlsson b95858a2f7 Add bitmask to unsigned char casts to fix MSVC runtime checks 2015-10-20 23:22:27 +02:00
Jonas Karlsson 22dd50f256 Fix documentation error 2015-10-20 22:03:50 +02:00
Jonas Karlsson f1d401845f Fix race condition in static crc_table
If calling stbi_write_png concurrently the static array crc_table would be shared between threads causing data-races.
2015-10-17 17:33:00 +02:00
Rasmus Christian Pedersen 007c850b48 nobug: removed unused variable 'k' 2015-09-25 19:46:27 +02:00
Sergio Gonzalez b372a1f86c Avoid macro redefinition in Win32 2015-09-21 12:18:18 -05: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 78fe0bfc24 handle fopen() failing 2015-09-14 05:40:12 -07:00
Sean Barrett ad63a8d316 Merge branch 'master' of https://github.com/ejulien/stb into working
Conflicts:
	stb_image_write.h
2015-09-14 05:38:07 -07:00
Sean Barrett 5bcce36638 rle tweaks, credits 2015-09-13 06:58:45 -07:00
Sean Barrett 40ace6b0ef Merge branch 'master' of https://github.com/fahickman/stb into working 2015-09-13 06:51:14 -07:00
Sean Barrett a84daa614e a few more stb_image_write fixes 2015-09-13 06:46:43 -07:00
Sean Barrett 2a1716cc8f credits 2015-09-13 06:41:16 -07:00
Sean Barrett 23b21a7c1f Merge branch 'master' of https://github.com/guillaumechereau/stb into working 2015-09-13 06:39:20 -07:00
Sean Barrett c9859afcf9 reverse some of the public-domain-license changes that I didn't
actually want
2015-08-01 23:53:49 -07:00
Ryan Whitworth 45b27d8a9c Added public domain license text 2015-08-01 14:54:05 -04:00
fahickman 80a0e90d53 TGA RLE flag and regression fix
Add requested flag for controlling TGA RLE compression and fix a
regression when writing monochrome TGAs.
2015-07-03 14:27:29 -07:00
fahickman 126ec22867 add missing consts 2015-06-04 14:04:02 -07:00
fahickman e0e4bd4d86 write TGAs with RLE compression 2015-05-11 21:38:55 -07:00
Guillaume Chereau d1d5f4ca96 add STB_IMAGE_WRITE_STATIC macro
This is the same thing than STB_IMAGE_STATIC of stb_image.h.
2015-04-20 23:18:42 +08:00
Guillaume Chereau 347e7838be fix compilation of stb_image_write.h with gcc -O3
When compiling with -O3, gcc would complain that 'linear' might not be
initialized if comp is superior to 4.

In fact passing a value > 4 is an error anyway, but gcc does not know
that.  I changed the switch case to support comp > 4.  I don't think it
should affect the performances.
2015-04-20 22:59:24 +08:00
Sean Barrett 00b1797a23 switch memcpy to memmove for simplicity;
rename all STBI_ config macros to STBIW_ to avoid conflict with stb_image.h
2015-04-13 11:55:24 -07:00
Sean Barrett 019236a624 Merge branch 'stb-image-writer-memory' of https://github.com/callidus/stb into work2 2015-04-13 11:48:26 -07:00
Tim Kelsey 8b1d835e16 Adding memory and assert defines to stb_image_write 2015-04-08 15:24:46 +01:00
Jørgen P. Tjernø 80176ae4a1 Remove unused variables in write_hdr_scanline.
Fixes #90.
2015-03-24 11:22:20 -07:00
Sean Barrett 22fa9a467a rewrite HDR rle logic 2015-01-18 10:43:42 -08:00
Sean Barrett 80d5c4be48 fix bug introduced when doing hdr cleanup 2015-01-17 09:16:48 -08:00
Sean Barrett d91cbdf662 Merge branch 'test' 2015-01-17 07:47:52 -08:00