Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
itdan3344
stb
提交
0bd0d049
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,体验更适合开发者的 AI 搜索 >>
提交
0bd0d049
编写于
1月 29, 2018
作者:
S
Sean Barrett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
stb_image docs
上级
ead2b3fe
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
13 deletion
+16
-13
stb_image.h
stb_image.h
+16
-13
未找到文件。
stb_image.h
浏览文件 @
0bd0d049
...
...
@@ -48,7 +48,7 @@ LICENSE
RECENT REVISION HISTORY:
2.17 (2018-01-29) bugfix
2.17 (2018-01-29) bugfix
, 1-bit BMP, 16-bitness query
2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes
2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
...
...
@@ -79,7 +79,7 @@ RECENT REVISION HISTORY:
socks-the-fox (16-bit PNG)
Jeremy Sawicki (handle all ImageNet JPGs)
Optimizations & bugfixes Mikhail Morozov (1-bit BMP)
Fabian "ryg" Giesen
Fabian "ryg" Giesen
Anael Seghezzi (is-16-bit query)
Arseny Kapoulkine
John-Mark Allen
...
...
@@ -418,14 +418,14 @@ STBIDEF void stbi_image_free (void *retval_from_stbi_load);
// get image dimensions & components without fully decoding
STBIDEF
int
stbi_info_from_memory
(
stbi_uc
const
*
buffer
,
int
len
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_info_from_callbacks
(
stbi_io_callbacks
const
*
clbk
,
void
*
user
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_is_16_from_memory
(
stbi_uc
const
*
buffer
,
int
len
);
STBIDEF
int
stbi_is_16_from_callbacks
(
stbi_io_callbacks
const
*
clbk
,
void
*
user
);
STBIDEF
int
stbi_is_16_
bit_
from_memory
(
stbi_uc
const
*
buffer
,
int
len
);
STBIDEF
int
stbi_is_16_
bit_
from_callbacks
(
stbi_io_callbacks
const
*
clbk
,
void
*
user
);
#ifndef STBI_NO_STDIO
STBIDEF
int
stbi_info
(
char
const
*
filename
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_info_from_file
(
FILE
*
f
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_is_16
(
char
const
*
filename
);
STBIDEF
int
stbi_is_16_
from_file
(
FILE
*
f
);
STBIDEF
int
stbi_info
(
char
const
*
filename
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_info_from_file
(
FILE
*
f
,
int
*
x
,
int
*
y
,
int
*
comp
);
STBIDEF
int
stbi_is_16
_bit
(
char
const
*
filename
);
STBIDEF
int
stbi_is_16_
bit_from_file
(
FILE
*
f
);
#endif
...
...
@@ -7038,17 +7038,17 @@ STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
return
r
;
}
STBIDEF
int
stbi_is_16
(
char
const
*
filename
)
STBIDEF
int
stbi_is_16
_bit
(
char
const
*
filename
)
{
FILE
*
f
=
stbi__fopen
(
filename
,
"rb"
);
int
result
;
if
(
!
f
)
return
stbi__err
(
"can't fopen"
,
"Unable to open file"
);
result
=
stbi_is_16_from_file
(
f
);
result
=
stbi_is_16_
bit_
from_file
(
f
);
fclose
(
f
);
return
result
;
}
STBIDEF
int
stbi_is_16_from_file
(
FILE
*
f
)
STBIDEF
int
stbi_is_16_
bit_
from_file
(
FILE
*
f
)
{
int
r
;
stbi__context
s
;
...
...
@@ -7074,14 +7074,14 @@ STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int
return
stbi__info_main
(
&
s
,
x
,
y
,
comp
);
}
STBIDEF
int
stbi_is_16_from_memory
(
stbi_uc
const
*
buffer
,
int
len
)
STBIDEF
int
stbi_is_16_
bit_
from_memory
(
stbi_uc
const
*
buffer
,
int
len
)
{
stbi__context
s
;
stbi__start_mem
(
&
s
,
buffer
,
len
);
return
stbi__is_16_main
(
&
s
);
}
STBIDEF
int
stbi_is_16_from_callbacks
(
stbi_io_callbacks
const
*
c
,
void
*
user
)
STBIDEF
int
stbi_is_16_
bit_
from_callbacks
(
stbi_io_callbacks
const
*
c
,
void
*
user
)
{
stbi__context
s
;
stbi__start_callbacks
(
&
s
,
(
stbi_io_callbacks
*
)
c
,
user
);
...
...
@@ -7093,6 +7093,9 @@ STBIDEF int stbi_is_16_from_callbacks(stbi_io_callbacks const *c, void *user)
/*
revision history:
2.17 (2018-01-29) change sbti__shiftsigned to avoid clang -O2 bug
1-bit BMP
*_is_16_bit api
avoid warnings
2.16 (2017-07-23) all functions have 16-bit variants;
STBI_NO_STDIO works again;
compilation fixes;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录