Compare commits

...

10 Commits

Author SHA1 Message Date
Sean Barrett
5c205738c1 Merge branch 'master' of https://github.com/nothings/stb 2024-11-08 23:02:08 -08:00
Sean Barrett
40adb995ab fix accidental check-in of typo in stb_ds.h 2024-11-08 23:01:49 -08:00
Sean Barrett
0dd01c26ef
Update issue templates 2024-11-08 04:05:02 -08:00
Sean Barrett
758b6365ae reorder issues 2024-11-08 03:58:10 -08:00
Sean Barrett
42b75e7941
Update config.yml 2024-11-08 04:00:39 -08:00
Sean Barrett
8828c2e317
Update issue templates
add specific issue for stb_image incorrect load
2024-11-08 03:58:29 -08:00
Sean Barrett
2e2bef463a stb_image_resize2: update version number 2024-10-18 10:26:20 -07:00
xchellx
44092a1079 Fix typo in fix (yes this does fix the ASAN error) 2024-10-18 01:22:02 -04:00
xchellx
9855da7cb6 Update STBIR__FREE_AND_CLEAR fix as per suggestions 2024-10-18 00:19:29 -04:00
xchellx
0625101dd3 Fix STBIR__FREE_AND_CLEAR causing null reference member access
`stb_image_resize2.h:6734:5: runtime error: member access within null pointer of type 'stbir__info' (aka 'struct stbir__info')`
2024-10-17 23:47:31 -04:00
6 changed files with 21 additions and 4 deletions

View File

@ -0,0 +1,15 @@
---
name: stb_image Doesn't Load Specific Image Correctly
about: if an image displays wrong in your program, and you've verified stb_image is
the problem
title: ''
labels: 1 stb_image
assignees: ''
---
1. **Confirm that, after loading the image with stbi_load, you've immediately written it out with stbi_write_png or similar, and that version of the image is also wrong.** If it is correct when written out, the problem is not in stb_image. If it displays wrong in a program you're writing, it's probably your display code. For example, people writing OpenGL programs frequently do not upload or display the image correctly and assume stb_image is at fault even though writing out the image demonstrates that it loads correctly.
2. *Provide an image that does not load correctly using stb_image* so we can reproduce the problem.
3. *Provide an image or description of what part of the image is incorrect and how* so we can be sure we've reproduced the problem correctly.

View File

@ -1,3 +1,4 @@
blank_issues_enabled: false
contact_links:
- name: support forum
url: https://github.com/nothings/stb/discussions/categories/q-a

View File

@ -27,7 +27,7 @@ library | lastest version | category | LoC | description
**[stb_image.h](stb_image.h)** | 2.30 | graphics | 7988 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
**[stb_truetype.h](stb_truetype.h)** | 1.26 | graphics | 5079 | parse, decode, and rasterize characters from truetype fonts
**[stb_image_write.h](stb_image_write.h)** | 1.16 | graphics | 1724 | image writing to disk: PNG, TGA, BMP
**[stb_image_resize2.h](stb_image_resize2.h)** | 2.11 | graphics | 10600 | resize images larger/smaller with good quality
**[stb_image_resize2.h](stb_image_resize2.h)** | 2.12 | graphics | 10601 | resize images larger/smaller with good quality
**[stb_rect_pack.h](stb_rect_pack.h)** | 1.01 | graphics | 623 | simple 2D rectangle packer with decent quality
**[stb_perlin.h](stb_perlin.h)** | 0.5 | graphics | 428 | perlin's revised simplex noise w/ different seeds
**[stb_ds.h](stb_ds.h)** | 0.67 | utility | 1895 | typesafe dynamic array and hash tables for C, will compile in C++
@ -45,7 +45,7 @@ library | lastest version | category | LoC | description
**[stb_include.h](stb_include.h)** | 0.02 | misc | 295 | implement recursive #include support, particularly for GLSL
Total libraries: 21
Total lines of C code: 51087
Total lines of C code: 51088
FAQ

View File

@ -1,4 +1,4 @@
/* stb_image_resize2 - v2.11 - public domain image resizing
/* stb_image_resize2 - v2.12 - public domain image resizing
by Jeff Roberts (v2) and Jorge L Rodriguez
http://github.com/nothings/stb
@ -327,6 +327,7 @@
Nathan Reed: warning fixes for 1.0
REVISIONS
2.12 (2024-10-18) fix incorrect use of user_data with STBIR_FREE
2.11 (2024-09-08) fix harmless asan warnings in 2-channel and 3-channel mode
with AVX-2, fix some weird scaling edge conditions with
point sample mode.
@ -6731,7 +6732,7 @@ static void stbir__free_internal_mem( stbir__info *info )
STBIR__FREE_AND_CLEAR( info->horizontal.coefficients );
STBIR__FREE_AND_CLEAR( info->horizontal.contributors );
STBIR__FREE_AND_CLEAR( info->alloced_mem );
STBIR__FREE_AND_CLEAR( info );
STBIR_FREE( info, info->user_data );
#endif
}