该图像解码库仅仅三个文件。

图像处理封装:

spot.cpp

spot.h

解码库实现:

spot.c

支持图片文件格式如下:

File format Read Write
BMP files yes yes
CRN files yes no
DDS DXT1/2/3/4/5 files yes yes
GIF files yes no
HDR files yes no
JPG files (progressive) yes no
JPG files yes yes
KTX (ETC1) files yes* yes*
KTX (PVRTC) files yes* no
PIC files yes no
PKM (ETC1) files yes yes
PNG files yes yes
PNM (PPM/PGM) files yes no
PSD files yes no
PUG files yes yes
PVR2 (PVRTC) files yes* no
PVR3 (ETC1) files yes* no
PVR3 (PVRTC) files yes* yes*
SVG files (rasterized) yes no
TGA files yes yes
WEBP files yes yes

授权协议:

  • spot  (ZLIB license).
  • crn2dds by r-lyeh, SpartanJ and Evan Parker (Public Domain).
  • crnlib, by Rich Geldreich (ZLIB license).
  • DDS writer  by Jonathan Dummer (Public Domain).
  • etc1utils by Google Inc (Apache 2.0 license).
  • etcpak by Bartosz Taudul (BSD-3 license).
  • jpge by Rich Geldreich (Public Domain).
  • libwebp by Google Inc (BSD license).
  • lodepng by Lode Vandevenne (ZLIB license).
  • nanosvg by Mikko Mononen (ZLIB license).
  • pngrim  alpha bleeding algorithm by F-Genesis (Public Domain).
  • pug (Public Domain).
  • pvrtccompressor by Jeffrey Lim (BSD-3 license).
  • rg_etc1 by Rich Geldreich (ZLIB license).
  • soil2 by Martin Lucas Golini and Jonathan Dummer (Public Domain).
  • stb_image by Sean Barrett (Public Domain).
  • unifont (ZLIB license).

该项目地址:

https://github.com/r-lyeh/spot

由于该解码库加载图像默认会转换hsla色域,故本人对其进行了优化,并且修正了一部分解码库的bug。

修改版下载:

http://files.cnblogs.com/files/tntmonks/Spot20150928_opi.7z

最新文章

  1. sicily 中缀表达式转后缀表达式
  2. 支付宝APP支付开发- IOException : DerInputStream.getLength(): lengthTag=127, too big.
  3. next_permutation 和 一个不成功的案例
  4. C# Hashtable 简述
  5. RaddioButton控件
  6. svcutil 生成代理类时的问题
  7. ActionResult 之HttpGet HttpPost
  8. HEVC与VP9编码效率对比
  9. 1001.A+B Format (20)的解题
  10. 高级DirectDraw
  11. day11 高阶函数 函数式编程
  12. 安装包制作工具 SetupFactory 详解
  13. oracle 分组中排序(rank函数)
  14. Codeforces 1098 简要题解
  15. ios中NSObject分类(2)
  16. android--------volley之网络请求和图片加载
  17. update from
  18. laravel-excel文档翻译笔记
  19. Linux 系统计算文件夹下文件数量数目
  20. excel的列生成算法

热门文章

  1. Java基础学习笔记十一 Eclipse开发工具
  2. eoLinker API-Shop 抓住区块链机遇,从这些API开始
  3. 第二次作业-Steam软件分析
  4. 凡事预则立(Beta)
  5. C语言第二周作业——分支结构
  6. Java代码风格和在idea中的一些设置
  7. 《javascript设计模式与开发实践》阅读笔记(16)—— 状态模式
  8. mysql5.5中datetime默认值不能为NOW或者CURRENT_TIMESTAMP,用触发器解决
  9. JAVA_SE基础——57.有了包之后类与类之间的访问使用import语句
  10. thinkphp中的常见静态常亮