Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
itdan3344
stb
提交
5607c25c
S
stb
项目概览
itdan3344
/
stb
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
stb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5607c25c
编写于
9月 13, 2015
作者:
S
Sean Barrett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak rmitton 16-bit psd patch;
adjust credits
上级
69d6fd57
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
29 addition
and
24 deletion
+29
-24
stb_image.h
stb_image.h
+29
-24
未找到文件。
stb_image.h
浏览文件 @
5607c25c
/* stb_image - v2.0
8
- public domain image loader - http://nothings.org/stb_image.h
/* stb_image - v2.0
7
- public domain image loader - http://nothings.org/stb_image.h
no warranty implied; use at your own risk
Do this:
...
...
@@ -25,13 +25,16 @@
TGA (not sure what subset, if a subset)
BMP non-1bpp, non-RLE
PSD (composited view only, no extra channels)
PSD (composited view only, no extra channels
, 8/16 bit-per-channel
)
GIF (*comp always reports as 4-channel)
HDR (radiance rgbE format)
PIC (Softimage PIC)
PNM (PPM and PGM binary only)
Animated GIF still needs a proper API, but here's one way to do it:
http://gist.github.com/urraka/685d9a6340b26b830d49
- decode from memory or through FILE (define STBI_NO_STDIO to remove code)
- decode from arbitrary I/O callbacks
- SIMD acceleration on x86/x64 (SSE2) and ARM (NEON)
...
...
@@ -143,7 +146,8 @@
Latest revision history:
2.07 (2015-09-13) fix compiler warnings
2.07 (2015-09-13) fix compiler warnings; animated GIF support close;
limited 16-bit PSD support
2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value
2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning
2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit
...
...
@@ -177,35 +181,34 @@
Tom Seddon (pic) the Horde3D community
Thatcher Ulrich (psd) Janez Zemva
Ken Miller (pgm, ppm) Jonathan Blow
Laurent Gomila
urraka@github (animated gif)
Laurent Gomila
Aruelien Pocheville
Extensions, features
Ryamond Barbiero
Jetro Lauha (stbi_info)
David Woo
Martin "SpartanJ" Golini (stbi_info)
Martin Golini
J
ames "moose2000" Brown (iPhone PNG)
Roy Eltham
Ben "Disch" Wenger (io callbacks)
Luke Graham
Omar Cornut (1/2/4-bit PNG)
Thomas Ruf
Nicolas Guillemot (vertical flip
) John Bartholomew
Ken Hamada
Optimizations & bugfixes
Cort Stratton
Fabian "ryg" Giesen
Blazej Dariusz Roszkowski
Arseny Kapoulkine
Thibault Reuille
Ryamond Barbiero
David Woo
Extensions, features
Martin Golini
J
etro Lauha (stbi_info)
Roy Eltham
Martin "SpartanJ" Golini (stbi_info)
Luke Graham
James "moose2000" Brown (iPhone PNG)
Thomas Ruf
Ben "Disch" Wenger (io callbacks
) John Bartholomew
Omar Cornut (1/2/4-bit PNG)
Ken Hamada
Nicolas Guillemot (vertical flip)
Cort Stratton
Richard Mitton (16-bit PSD)
Blazej Dariusz Roszkowski
Thibault Reuille
Paul Du Bois
Guillaume George
If your name should be here but
Jerry Jansson
isn't, let Sean know.
Hayaki Saito
Jerry Jansson
Hayaki Saito
Johan Duparc
Ronny Chevalier
Michal Cichon
Tero Hanninen
Sergio Gonzalez
Optimizations & bugfixes
Michal Cichon
Fabian "ryg" Giesen
Tero Hanninen
Arseny Kapoulkine
Sergio Gonzalez
Cass Everitt
Engin Manap
Martins Mozeiko
Joseph Thomson
If your name should be here but
Martins Mozeiko
isn't, let Sean know.
Joseph Thomson
Phil Jordan
Nathan Reed
urraka@github
LICENSE
...
...
@@ -5206,7 +5209,7 @@ static stbi_uc *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int
// Read the data.
if
(
bitdepth
==
16
)
{
for
(
i
=
0
;
i
<
pixelCount
;
i
++
,
p
+=
4
)
*
p
=
stbi__get16be
(
s
)
*
255
/
65535
;
*
p
=
stbi__get16be
(
s
)
>>
8
}
else
{
for
(
i
=
0
;
i
<
pixelCount
;
i
++
,
p
+=
4
)
*
p
=
stbi__get8
(
s
);
...
...
@@ -6331,6 +6334,8 @@ STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int
/*
revision history:
2.07 (2015-09-13) fix compiler warnings; animated GIF support;
limited 16-bit PSD support
2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value
2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning
2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录