Commit Graph

1958 Commits

Author SHA1 Message Date
9a9c937f68 stb_dxt: Remove dithering support.
Keep STB_DXT_DITHER so as not to break existing code that tries
to enable it, but just leave it permanently off. I originally
introduced it somewhat superstitiously because of the RGB565
endpoint resolution but it never improved either perceptual quality
or objective quality metrics, and the code is appreciably simpler
without it.
2021-07-01 16:37:35 -07:00
425c4d8b31 stb_dxt: Better error calc for single-color table
Don't truncate error as aggressively; easily done, but wanted
to keep it separate from the previous change.
2021-07-01 16:24:09 -07:00
d84beeeff3 stb_dxt: Initialize tables at compile time
Also fix a "potentially uninitialized variable" warning.

This is a modified version of Alan's original PR that keeps the
table generator in the file (in case there's interest) and also
replaces the expand[] tables with math, since it's trivial.

Fixes issue #1117.
2021-07-01 16:19:17 -07:00
40d7e47896 stb_sprintf: add attribute format to variadic functions
This allows for compiler verification of the format string
just like printf.
2021-07-01 15:39:42 -07:00
05e1efab3d Move stb.h to deprecated.
It was never designed to be used by anyone but Sean and has
numerous problems; new code should definitely not be using
this.
2021-07-01 15:29:17 -07:00
80c8f6af03 Update why_public_domain.md 2021-06-20 05:42:03 -07:00
ea2f937a01 increment stb_ds version, update README 2021-06-04 11:42:16 -07:00
0188581ff0 Merge branch 'stbds_custom_free_fix' of https://github.com/avennstrom/stb into foo 2021-06-04 11:38:01 -07:00
6b647c0257 Merge branch 'working' 2021-06-04 11:18:16 -07:00
781609b7e9 stb_ds: fix arrisn, shgetp_null 2021-06-04 11:02:23 -07:00
e97a95c0c1 Added Macoy Madson to contributors 2021-05-31 19:53:09 -07:00
63e4ada98c Fix temp_key being stale on key re-insert
See issue #992 and pull request #993.
2021-05-31 19:51:39 -07:00
579ace225f fix indentation 2021-05-11 22:56:27 +02:00
fcd86e8f57 credits 2021-05-11 22:50:11 +02:00
89762b9934 Fix stb_ds custom allocator 2021-05-11 22:44:08 +02:00
c9064e3176 stb_hexwave tweak comment 2021-04-01 10:31:43 -07:00
997d3c421e stb_hexwave: add full license text 2021-04-01 10:27:54 -07:00
559d759c2c stb_hexwave added, stretchy_buffer.h deprecated 2021-04-01 01:53:09 -07:00
b42009b3b9 fix readme linebreaks 2020-07-13 04:46:06 -07:00
e140649ccf remove trailign whitespace 2020-07-13 04:40:31 -07:00
314d0a6f9a update version numbers 2020-07-13 04:36:03 -07:00
59f06c1a97 stb_ds: move temp_key added by PR into hash_table structure instead of main header struct 2020-07-13 04:25:34 -07:00
ef23148510 Merge branch 'master' of https://github.com/srdjanstipic/stb into working 2020-07-13 04:16:38 -07:00
580fc1ab9b Merge branch 'stb_vorbis-fix-comment-read-oom' of https://github.com/akien-mga/stb into working 2020-07-13 04:15:48 -07:00
db2acff8b1 stb_vorbis: fix bug in computing end of temp alloc buffer if it's not a multiple of 8 2020-07-13 04:12:21 -07:00
3152efaa97 Merge branch 'fuzzer_updates' of https://github.com/randy408/stb into working 2020-07-13 04:08:36 -07:00
f3085776a4 Merge branch 'patch-1' of https://github.com/coltongit/stb into working 2020-07-13 04:07:16 -07:00
589a678b65 Merge branch 'master' of https://github.com/recp/stb into working 2020-07-13 04:06:19 -07:00
a9df364a7c Merge branch 'fix_stb_vorbis_alignment' of https://github.com/RandomShaper/stb into working 2020-07-13 04:00:41 -07:00
bfaccab17a Merge branch 'stb-image-fuzzing-fixes' of https://github.com/rcgordon/stb into working 2020-07-13 03:53:53 -07:00
58b2e1490d Merge branch 'fix_alloca' of https://github.com/Clownacy/stb into working 2020-07-13 03:33:18 -07:00
ce54bbc454 Merge branch 'master' of https://github.com/AdamKorcz/stb into working 2020-07-13 03:29:47 -07:00
0ccb4f0071 Merge branch 'rg-matchcolors' of https://github.com/castano/stb into working 2020-07-13 03:27:22 -07:00
5a8702567a credit for PR 2020-07-13 03:11:47 -07:00
da888065bf Merge branch 'master' of https://github.com/Vawx/stb into working 2020-07-13 03:11:13 -07:00
fb1cea02f8 tweak PR 2020-07-13 03:06:50 -07:00
add7adc3ea Merge branch 'patch-1' of https://github.com/vickit144/stb into working 2020-07-13 03:05:44 -07:00
fd9c3ea4af Merge branch 'bmp-assert' of https://github.com/zturtleman/stb into working 2020-07-13 03:01:52 -07:00
6f7420a825 add credits for last few PR merges 2020-07-13 02:59:10 -07:00
67881b61ab Merge branch 'stbds-arraddn' of https://github.com/HeroicKatora/stb into working 2020-07-13 02:52:03 -07:00
1c816743b6 make PR compile in MSVC6 2020-07-13 02:49:46 -07:00
cae8e852f6 Merge branch 'perfect-endpoint-quantization' of https://github.com/castano/stb into test 2020-07-13 02:48:11 -07:00
cae97bdb17 Merge branch 'alloca-fix' of https://github.com/mackron/stb into test 2020-07-13 02:47:41 -07:00
fdafd1aab4 Merge branch 'loadgif-realloc-sized' of https://github.com/SasLuca/stb into test 2020-07-13 02:45:13 -07:00
b3a74a5c8a fix PR to work on VC6 2020-07-13 02:43:26 -07:00
206529e08e Merge branch 'unused#801' of https://github.com/hashitaku/stb into test 2020-07-13 02:42:57 -07:00
dfdb7d9c14 stb_ds: use keyoffset in key comparison 2020-07-13 02:42:37 -07:00
523a14f3e1 stb_image_write: small buffer to avoid calling fwrite on every pixel 2020-07-13 02:20:59 -07:00
802a1df278 tweak indentation 2020-07-13 02:20:37 -07:00
c5b527aa01 modern seeding of mersenne twister 2020-07-13 02:20:07 -07:00