展示HN:TurboStitchGIF GIF解码器,允许您选择:安全性或速度
版本1.2引入了两个LZW后端(安全的边界检查与不安全的涡轮模式)、微缓存以实现30-40%的解码速度提升、三种输出格式(RGB888/RGB565LE/RGBA8888)、基于跨度的涡轮位图处理、可选的256KB RGB565 map2以实现一次渲染两个像素、对正确的处置方法3的支持、用于索引输出的渲染器API、在需要原始速度时禁用检查的安全开关,以及避免符号冲突的前缀模式——所有这些都在用户提供的临时缓冲区上实现100%无malloc分配。<p>仓库链接:<a href="https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOnly-Fast-ZeroAllocation-PlatformIndependent-Embedded-C-GIF-Decoder" rel="nofollow">https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOn...</a>
查看原文
Version 1.2 introduces two LZW backends (safe bounds-checked vs unsafe turbo), micro-cache for 30-40% faster decoding, three output formats (RGB888/RGB565LE/RGBA8888), span-based turbo blit, optional 256KB RGB565 map2 for 2-pixel-at-once rendering, proper disposal method 3 support, renderer API for indexed output, safety toggles to disable checks when you need raw speed, and prefix mode to avoid symbol conflicts — all while staying 100% malloc-free on a user-provided scratch buffer.<p>Repo: <a href="https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOnly-Fast-ZeroAllocation-PlatformIndependent-Embedded-C-GIF-Decoder" rel="nofollow">https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOn...</a>