简单易用的图像解码库 stb_image

 

 

https://zhuanlan.zhihu.com/p/466294684

 

https://github.com/nothings/stb

stb

single-file public domain (or MIT licensed) libraries for C/C++

Noteworthy:

Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts.

librarylastest versioncategoryLoCdescription
stb_vorbis.c 1.22 audio 5584 decode ogg vorbis files from file/memory to float/16-bit signed output
stb_hexwave.h 0.5 audio 680 audio waveform synthesizer
stb_image.h 2.27 graphics 7897 image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
stb_truetype.h 1.26 graphics 5077 parse, decode, and rasterize characters from truetype fonts
stb_image_write.h 1.16 graphics 1724 image writing to disk: PNG, TGA, BMP
stb_image_resize.h 0.97 graphics 2634 resize images larger/smaller with good quality
stb_rect_pack.h 1.01 graphics 623 simple 2D rectangle packer with decent quality
stb_ds.h 0.67 utility 1895 typesafe dynamic array and hash tables for C, will compile in C++
stb_sprintf.h 1.10 utility 1906 fast sprintf, snprintf for C/C++
stb_textedit.h 1.14 user interface 1429 guts of a text editor for games etc implementing them from scratch
stb_voxel_render.h 0.89 3D graphics 3807 Minecraft-esque voxel rendering "engine" with many more features
stb_dxt.h 1.12 3D graphics 719 Fabian "ryg" Giesen's real-time DXT compressor
stb_easy_font.h 1.1 3D graphics 305 quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc
stb_tilemap_editor.h 0.42 game dev 4187 embeddable tilemap editor
stb_herringbone_wa... 0.7 game dev 1221 herringbone Wang tile map generator
stb_c_lexer.h 0.12 parsing 940 simplify writing parsers for C-like languages
stb_divide.h 0.94 math 433 more useful 32-bit modulus e.g. "euclidean divide"
stb_connected_comp... 0.96 misc 1049 incrementally compute reachability on grids
stb_leakcheck.h 0.6 misc 194 quick-and-dirty malloc/free leak-checking
stb_include.h 0.02 misc 295 implement recursive #include support, particularly for GLSL

Total libraries: 20 Total lines of C code: 42599

posted @ 2022-09-07 18:27  sinferwu  阅读(421)  评论(0编辑  收藏  举报