Fabian Giesen
9b6652fe3a
Merge branch 'rygorous-sprintf_reformat' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
b1d058e5c7
stb_truetype: Fix typo, as pointed out by oyvindjam.
...
Fixes #471 .
ago%!(EXTRA string=8 years)
Fabian Giesen
30c7c6b583
stb_truetype: Support reading OS/2 vertical metrics
...
...as present in MS TrueType files. Since this table is optional,
the new stbtt_GetFontVMetricsOS2 has a return value and can fail.
This is a replacement for pull request #463 .
Fixes #463 .
ago%!(EXTRA string=8 years)
Fabian Giesen
49c7f1b397
stb_image: Optimise vertical flip.
...
This incorporates #462 , but also factors everything into one
function that is shared between 8-bit integer, 16-bit integer, and
float pixels (vertical flip operates on rows of bytes and doesn't
really care), and finally always uses a 2k on-stack buffer without
dynamic memory allocation, doing multiple memcpys per row if
necessary. Not only does this remove an out-of-memory failure mode,
it is also preferable for large images, since it's more
L1-cache-firendly this way.
Fixes #462 .
ago%!(EXTRA string=8 years)
Fabian Giesen
501812f307
stb_leakcheck: Fix warnings.
...
1. const char* for __FILE__ (string literals are const)
2. Use %zd to print size_t where available; the only real problem
here is Visual C++. Use long long on the VC++ vers that support
64-bit targets but not %zd, int on the even older 32-bit-only
VC++ vers that don't support "long long" either.
Fixes #459 . I think. (It's hard to be sure since the issue doesn't
state the exact warning message.)
ago%!(EXTRA string=8 years)
Fabian Giesen
931662ae6e
stb_image_write: Warning fix.
ago%!(EXTRA string=8 years)
Fabian Giesen
25a2596b2f
stb_image: Fix rounding during unpremultiply.
...
This is the same method as in pull request #455 , but using integer
arithmetic instead of converting to float.
Fixes #455 .
ago%!(EXTRA string=8 years)
Fabian Giesen
463dd85f1f
Merge branch 'Reedbeta-fix-vs2015-warnings' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
3ef1cb174e
Merge branch 'fix-vs2015-warnings' of https://github.com/Reedbeta/stb into Reedbeta-fix-vs2015-warnings
ago%!(EXTRA string=8 years)
Fabian Giesen
69ef103721
Merge branch 'poppolopoppo-load_16_variants' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
4868b5283b
stb_dxt: Update contributors list.
ago%!(EXTRA string=8 years)
Fabian Giesen
316571b395
stb_image: 3-char indent and other minor formatting issues.
ago%!(EXTRA string=8 years)
Fabian Giesen
b226e71ce6
Merge branch 'load_16_variants' of https://github.com/poppolopoppo/stb into poppolopoppo-load_16_variants
ago%!(EXTRA string=8 years)
Fabian Giesen
31f8c2109b
Merge branch 'ppiastucki-bc4' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
e9b8f7ea35
Merge branch 'bc4' of https://github.com/ppiastucki/stb into ppiastucki-bc4
ago%!(EXTRA string=8 years)
Fabian Giesen
14c2993310
Merge branch 'realitix-robustify' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
b53457130d
Merge branch 'robustify' of https://github.com/realitix/stb into realitix-robustify
ago%!(EXTRA string=8 years)
Fabian Giesen
7a6251689f
Merge branch 'h-s-c-stb_dxt_static' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
99df133ae4
Merge branch 'stb_dxt_static' of https://github.com/h-s-c/stb into h-s-c-stb_dxt_static
ago%!(EXTRA string=8 years)
Fabian Giesen
897e6e8314
Merge branch 'h-s-c-stbi_no_stdio-fix' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
b119e6d1d2
Merge branch 'stbi_no_stdio-fix' of https://github.com/h-s-c/stb into h-s-c-stbi_no_stdio-fix
ago%!(EXTRA string=8 years)
Fabian Giesen
24f2522e00
Merge branch 'h-s-c-stb_dxt-freestanding' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
e1f17c3c6c
Merge branch 'stb_dxt-freestanding' of https://github.com/h-s-c/stb into h-s-c-stb_dxt-freestanding
ago%!(EXTRA string=8 years)
Fabian Giesen
aaa793350e
Merge branch 'cdwfs-stbtt_const_fontdata' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
530c05ee61
Merge branch 'stbtt_const_fontdata' of https://github.com/cdwfs/stb into cdwfs-stbtt_const_fontdata
ago%!(EXTRA string=8 years)
Fabian Giesen
3870b2fe3b
Merge branch 'DanielGibson-write-jpg' into dev
ago%!(EXTRA string=8 years)
Fabian Giesen
526ed469e2
Merge branch 'write-jpg' of https://github.com/DanielGibson/stb into DanielGibson-write-jpg
ago%!(EXTRA string=8 years)
Fabian Giesen
481db7501c
stb_sprintf: Remove some gratuitous gotos
ago%!(EXTRA string=8 years)
Fabian Giesen
7b8955bfaa
stb_sprintf: More whitespace cleanups post clang-format
ago%!(EXTRA string=8 years)
Fabian Giesen
cccbc3f5a9
stb_sprintf: Clean up the mess with clang-format
ago%!(EXTRA string=8 years)
Sean Barrett
423298e071
fix SDF documentation and add example code
ago%!(EXTRA string=8 years)
Sean Barrett
38479bc58c
stb_truetype version number
ago%!(EXTRA string=8 years)
Sean Barrett
9a2e92e818
SDF documentation
ago%!(EXTRA string=8 years)
Sean Barrett
fa98e4f6cf
Merge branch 'master' into sdf
...
Conflicts:
stb_truetype.h
ago%!(EXTRA string=8 years)
Sean Barrett
5defc65c23
Initial SDF support
ago%!(EXTRA string=8 years)
Daniel Gibson
f0baa0c287
stb_image_write.h: Fix compilation in C++11 mode
...
clang says:
error: non-constant-expression cannot be narrowed from type 'int'
to 'unsigned char' in initializer list [-Wc++11-narrowing]
so I explicitly cast affected stuff to unsigned char.
ago%!(EXTRA string=8 years)
Nathan Reed
cbca86de65
Add myself to contributors list
ago%!(EXTRA string=8 years)
Nathan Reed
de080e6d0b
Fix warning about unreachable code
ago%!(EXTRA string=8 years)
Nathan Reed
fb524e6768
Fix warning about context parameter being unused when STBIR_MALLOC and STBIR_FREE have their default definitions.
ago%!(EXTRA string=8 years)
Nathan Reed
76a1a1c408
Fix variable-shadowing warnings
ago%!(EXTRA string=8 years)
Nathan Reed
7091cb6ed6
Fix integer conversion warning
ago%!(EXTRA string=8 years)
PopPoLoPoPpo
9bcda8bb1c
Add stbi_load_16() variants to load from memory or callbacks
ago%!(EXTRA string=8 years)
ppiastucki
8a55e1e5a5
Add support for BC4
ago%!(EXTRA string=8 years)
Jean-Sebastien Bevilacqua
d8796f05bf
Robustify stbi__sse2_available in stb_image.h
...
Function `stbi__sse2_available` takes no argument,
we should be explicit by passing `void` as argument.
It will remove warnings from 'some' compilers.
ago%!(EXTRA string=8 years)
Kevin Schmidt
50e6be0de6
Edit contributor list.
ago%!(EXTRA string=8 years)
Kevin Schmidt
9b3358fec1
Add feature to replace abs/fabs and memset with your own.
ago%!(EXTRA string=8 years)
Kevin Schmidt
96e1f0474c
Edit contributor list.
ago%!(EXTRA string=8 years)
Kevin Schmidt
97ae5fb3db
Edit contributor list.
ago%!(EXTRA string=8 years)
Kevin Schmidt
1dfdf5558d
Fix STBI_NO_STDIO.
ago%!(EXTRA string=8 years)
Kevin Schmidt
dda7d72841
Add STB_DXT_STATIC option.
ago%!(EXTRA string=8 years)