Comments (2)
The plan is to remove all support for animated gifs from stb_image and fork them into a separate library (which I personally will not be maintaing), because this has just been a source of headaches and it's really outside the original intent of stb_image.
from stb.
gif = stbi_load_gif_v2("filename.gif", ...);
unsigned char buffer[...];
while (stbi_gif_has_frame(gif)) {
error = stbi_gif_decode_frame(gif, buffer);
// do something with buffer if no error occurred
stbi_gif_advance_frame(gif);
}
from stb.
Related Issues (20)
- Double-free in `stbi__load_gif_main_outofmem` (`GHSL-2023-148/CVE-2023-45664`)
- Null pointer dereference in `stbi__convert_format` (`GHSL-2023-149`) HOT 1
- Possible double-free or memory leak in `stbi__load_gif_main` (`GHSL-2023-150/CVE-2023-45666`)
- Null pointer dereference because of an uninitialized variable (`GHSL-2023-151/CVE-2023-45667`)
- `0` byte write heap buffer overflow in `start_decoder` (`GHSL-2023-165/CVE-2023-45675`)
- (Docs Update Request) stb_image_write.h supports PNG/BMP/TGA/JPEG/HDR HOT 2
- Is the "DETAILED USAGE" section of `stb_truetype.h` correct/updated? HOT 3
- GCC warnings for the hmdel macro HOT 1
- stb_sprintf: not working with 'j' 'z' modifiers
- [text.txt](https://github.com/nothings/stb/files/13457062/text.txt)
- Segmentation fault when load an corruption pictures in stbi_load_from_memory HOT 2
- stb_image incorrectly sees png as 16bit. HOT 5
- Completion of error handling
- Request for CMakeLists.txt Integration for Improved Build System
- stb_truetype.h: letter T has rasterization artefacts for Roboto-Regular.ttf HOT 3
- [stb-vorbis] Some multi-channel OGG Vorbis files gets wrongly decoded
- Two errors for use of uninitialized memory
- Long double support
- stb_truetype: GPOS advance always 0 (while GPOS and KERN tables exist), while KERN works fine
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stb.