Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								ba3ba9b78c 
								
							
								 
							
						 
						
							
							
								
								stb_image_write: Disable HDR writer completely in NO_STDIO build  
							
							 
							
							... 
							
							
 
							
							Fixes issue #793 , hopefully. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								76f55ac210 
								
							
								 
							
						 
						
							
							
								
								stb_image_write: STBI_WINDOWS_UTF8 -> STBIW_WINDOWS_UTF8  
							
							 
							
							... 
							
							
 
							
							Fixes issue #925 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								81bcfa9043 
								
							
								 
							
						 
						
							
							
								
								stb_image_write: Remove tabs  
							
							 
							
							... 
							
							
 
							
							Whitespace-only change. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								82f9950cea 
								
							
								 
							
						 
						
							
							
								
								stb_image: Update credits  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Eugene Golushkov
							
						 
						
							 
							
							
							
								
							
								db864a1e30 
								
							
								 
							
						 
						
							
							
								
								stb_image: fix building by MSVC for Windows 10 on ARM  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								2506215e8a 
								
							
								 
							
						 
						
							
							
								
								stb_image: Key Win32 UTF-8 support off _WIN32 not _MSC_VER  
							
							 
							
							... 
							
							
 
							
							So that it also works on MinGW.
Fixes issue #729 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								991f1f6419 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix wrong buffer sizes passed to MultiByteToWideChar  
							
							 
							
							... 
							
							
 
							
							Fixes issue #772 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								56a7113cd0 
								
							
								 
							
						 
						
							
							
								
								stb_image: Reorder format test sequence  
							
							 
							
							... 
							
							
 
							
							Put the formats that start with a clear magic number first,
the dodgy ones that don't have much of a distinctive header
should be tested for later after we've ruled out the clearer
ones.
Fixes issue #787 , hopefully. (Never got a clean repro.) 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								618dbd01c8 
								
							
								 
							
						 
						
							
							
								
								stb_image: Document image size limits  
							
							 
							
							... 
							
							
 
							
							Both the buffer size limits and the image dimension limits.
Fixes issue #672 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								55a180671c 
								
							
								 
							
						 
						
							
							
								
								readme: Add "how to use these libs" section  
							
							 
							
							... 
							
							
 
							
							Try to be a bit more explicit still.
Fixes issue #903 , or so I hope. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								4d3b93f589 
								
							
								 
							
						 
						
							
							
								
								stb_image: Erorr in BMP should error, not assert.  
							
							 
							
							... 
							
							
 
							
							There was both the assert and the error check; should just be
the error check.
Fixes issue #881  (or rather, part of it). 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								31ba943e3f 
								
							
								 
							
						 
						
							
							
								
								stb_image: UB fix in stbi__get32le  
							
							 
							
							... 
							
							
 
							
							Need to do the second-part shift on uint32 not int. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								d6ab7faec0 
								
							
								 
							
						 
						
							
							
								
								stb_image: Update comment  
							
							 
							
							... 
							
							
 
							
							As per recent patches, we do support 16-bit PNMs. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								bb09317445 
								
							
								 
							
						 
						
							
							
								
								stb_image: Avoid left-shifts of signed values  
							
							 
							
							... 
							
							
 
							
							It's implementation-specified behavior. Writing this code and then
relying on compiler strength reduction to turn it back into shifts
feels extremely silly but it is what it is.
Fixes issue #1097 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								43b32c7bab 
								
							
								 
							
						 
						
							
							
								
								stb_image: Avoid shift of signed values in extend_receive  
							
							 
							
							... 
							
							
 
							
							Use an equivalent formulation that has sgn=0 or 1, not 0 or -1.
This avoids right-shifting signed values, at least in this place.
Fixes issue #1061 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								6d857933d5 
								
							
								 
							
						 
						
							
							
								
								stb_image, stb_image_write: Fix compare sign warnings  
							
							 
							
							... 
							
							
 
							
							For the stb_image fix, also replace the magic 288 with a more
descriptive name while I'm at it.
Fixes  #1100  
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								265b73bb0b 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix lrot definition, small extend_receive tweak  
							
							 
							
							... 
							
							
 
							
							Define lrot in a way that doesn't involve UB when n==0.
Also, the previous patch ensures that n <= 15 for all callers
of stbi__extend_receive, so can remove the (less restrictive)
bounds check for 0 <= n < 17 (the bounds of stbi__bmask)
entirely.
Fixes issue #1065 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								86b7570cfb 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix bug on JPEGs with malformed DC deltas  
							
							 
							
							... 
							
							
 
							
							extend_receive implicitly requires n <= 15 (code length);
the maximum that actually makes sense for 8-bit baseline JPEG is
11, but 15 is the natural limit for us because the AC coding path
stores the number of magnitude bits in a nibble.
Check that DC delta bits are in range before attempting to call
extend_receive.
Fixes issue #1108 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								6ab6303f98 
								
							
								 
							
						 
						
							
							
								
								stb_image: Check results of all mallocs.  
							
							 
							
							... 
							
							
 
							
							A few were missing. Make sure to always report ouf-of-memory
errors.
Fixes issue #1056 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								6199b717bc 
								
							
								 
							
						 
						
							
							
								
								README: updated supported stb_image and stb_image_write formats  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								8e8f7d9b69 
								
							
								 
							
						 
						
							
							
								
								stb_image: Update credits, change log  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Simon Breuss
							
						 
						
							 
							
							
							
								
							
								8c15cc9c79 
								
							
								 
							
						 
						
							
							
								
								Adds 16-bit support for pnm files.  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Jacko Dirks
							
						 
						
							 
							
							
							
								
							
								c62af85657 
								
							
								 
							
						 
						
							
							
								
								stb_image.h: Suppress warnings about out_size, delay_size  
							
							 
							
							... 
							
							
 
							
							These two variables are unused on some targets, resulting in
warnings. Add STBI_NOTUSED around them to suppress those
warnings. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								448bb137e3 
								
							
								 
							
						 
						
							
							
								
								stb_image: Better docs for stbi_info.  
							
							 
							
							... 
							
							
 
							
							Fixes  #1026 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								1203eb554b 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix issue  #994 .  
							
							 
							
							... 
							
							
 
							
							Accidentally introduced during a merge. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								a49749a57d 
								
							
								 
							
						 
						
							
							
								
								stb_textedit: Docs fix.  
							
							 
							
							... 
							
							
 
							
							Fixes issue #1041 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								0afc39f59a 
								
							
								 
							
						 
						
							
							
								
								stb_truetype: Turn codepoint assert into error check  
							
							 
							
							... 
							
							
 
							
							Fixes the bug covered by PR #1066 , but with a slightly different
fix that's hopefully a bit clearer. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Doj
							
						 
						
							 
							
							
							
								
							
								067655993a 
								
							
								 
							
						 
						
							
							
								
								stb_sprintf: fix stbsp_ddtoS64 macro  
							
							 
							
							... 
							
							
 
							
							Should use xh argument not ph (which is the name of the
variable that it actually gets instantiated with the
one time it is used). 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Jan CW Kroeze
							
						 
						
							 
							
							
							
								
							
								04007a071c 
								
							
								 
							
						 
						
							
							
								
								Note GL blend state for stb_truetype  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Rafael Sachetto
							
						 
						
							 
							
							
							
								
							
								02578923d3 
								
							
								 
							
						 
						
							
							
								
								Fix compilation warnings in the s390x architeture.  Fixes   #1082 .  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Valentin Lenhart
							
						 
						
							 
							
							
							
								
							
								2de22bde0a 
								
							
								 
							
						 
						
							
							
								
								stb_sprintf.h: stdlib.h is not needed  
							
							 
							
							... 
							
							
 
							
							va_arg() is in stdarg.h, which is already being included 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								dc2aa370c0 
								
							
								 
							
						 
						
							
							
								
								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. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								ae3ed90b0c 
								
							
								 
							
						 
						
							
							
								
								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. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Alan Hickman
							
						 
						
							 
							
							
							
								
							
								98623b9577 
								
							
								 
							
						 
						
							
							
								
								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 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Michael Aganier
							
						 
						
							 
							
							
							
								
							
								696cb038a3 
								
							
								 
							
						 
						
							
							
								
								stb_sprintf: add attribute format to variadic functions  
							
							 
							
							... 
							
							
 
							
							This allows for compiler verification of the format string
just like printf. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								6294c6cfa2 
								
							
								 
							
						 
						
							
							
								
								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. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								5c0cc31fb0 
								
							
								 
							
						 
						
							
							
								
								stb_image: Update credits  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Eugene Golushkov
							
						 
						
							 
							
							
							
								
							
								69a7dd32a8 
								
							
								 
							
						 
						
							
							
								
								stb_image: fix building by MSVC for Windows 10 on ARM  
							
							 
							
							
 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								a0231a9e94 
								
							
								 
							
						 
						
							
							
								
								stb_image: Key Win32 UTF-8 support off _WIN32 not _MSC_VER  
							
							 
							
							... 
							
							
 
							
							So that it also works on MinGW.
Fixes issue #729 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								e3a63f3793 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix wrong buffer sizes passed to MultiByteToWideChar  
							
							 
							
							... 
							
							
 
							
							Fixes issue #772 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								3870fb6a93 
								
							
								 
							
						 
						
							
							
								
								stb_image: Reorder format test sequence  
							
							 
							
							... 
							
							
 
							
							Put the formats that start with a clear magic number first,
the dodgy ones that don't have much of a distinctive header
should be tested for later after we've ruled out the clearer
ones.
Fixes issue #787 , hopefully. (Never got a clean repro.) 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								e795306bbc 
								
							
								 
							
						 
						
							
							
								
								stb_image: Document image size limits  
							
							 
							
							... 
							
							
 
							
							Both the buffer size limits and the image dimension limits.
Fixes issue #672 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								ba739e54ed 
								
							
								 
							
						 
						
							
							
								
								readme: Add "how to use these libs" section  
							
							 
							
							... 
							
							
 
							
							Try to be a bit more explicit still.
Fixes issue #903 , or so I hope. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								d343a29fe6 
								
							
								 
							
						 
						
							
							
								
								stb_image: Erorr in BMP should error, not assert.  
							
							 
							
							... 
							
							
 
							
							There was both the assert and the error check; should just be
the error check.
Fixes issue #881  (or rather, part of it). 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								41e93836d9 
								
							
								 
							
						 
						
							
							
								
								stb_image: UB fix in stbi__get32le  
							
							 
							
							... 
							
							
 
							
							Need to do the second-part shift on uint32 not int. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								cf00c67c57 
								
							
								 
							
						 
						
							
							
								
								stb_image: Update comment  
							
							 
							
							... 
							
							
 
							
							As per recent patches, we do support 16-bit PNMs. 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								48632c1752 
								
							
								 
							
						 
						
							
							
								
								stb_image: Avoid left-shifts of signed values  
							
							 
							
							... 
							
							
 
							
							It's implementation-specified behavior. Writing this code and then
relying on compiler strength reduction to turn it back into shifts
feels extremely silly but it is what it is.
Fixes issue #1097 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								026013546c 
								
							
								 
							
						 
						
							
							
								
								stb_image: Avoid shift of signed values in extend_receive  
							
							 
							
							... 
							
							
 
							
							Use an equivalent formulation that has sgn=0 or 1, not 0 or -1.
This avoids right-shifting signed values, at least in this place.
Fixes issue #1061 . 
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								4d067e8b2b 
								
							
								 
							
						 
						
							
							
								
								stb_image, stb_image_write: Fix compare sign warnings  
							
							 
							
							... 
							
							
 
							
							For the stb_image fix, also replace the magic 288 with a more
descriptive name while I'm at it.
Fixes  #1100  
							
						 
						
							ago%!(EXTRA string=4 years)  
						
					 
				
					
						
							
							
								 
								Fabian Giesen
							
						 
						
							 
							
							
							
								
							
								1d7bf85877 
								
							
								 
							
						 
						
							
							
								
								stb_image: Fix lrot definition, small extend_receive tweak  
							
							 
							
							... 
							
							
 
							
							Define lrot in a way that doesn't involve UB when n==0.
Also, the previous patch ensures that n <= 15 for all callers
of stbi__extend_receive, so can remove the (less restrictive)
bounds check for 0 <= n < 17 (the bounds of stbi__bmask)
entirely.
Fixes issue #1065 . 
							
						 
						
							ago%!(EXTRA string=4 years)