Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
8f0e2729
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
大约 1 年 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8f0e2729
编写于
2月 03, 2015
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Improved comments on some #ifdef lines.
上级
c73d6219
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
13 deletion
+11
-13
png.c
png.c
+11
-13
未找到文件。
png.c
浏览文件 @
8f0e2729
...
...
@@ -772,13 +772,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.17beta02 -
January 29
, 2015"
PNG_STRING_NEWLINE
\
"libpng version 1.6.17beta02 -
February 4
, 2015"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2015 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
PNG_STRING_NEWLINE
;
# else
return
"libpng version 1.6.17beta02 -
January 29
, 2015\
return
"libpng version 1.6.17beta02 -
February 4
, 2015\
Copyright (c) 1998-2015 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
@@ -950,8 +950,6 @@ png_access_version_number(void)
return
((
png_uint_32
)
PNG_LIBPNG_VER
);
}
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
/* Ensure that png_ptr->zstream.msg holds some appropriate error message string.
* If it doesn't 'ret' is used to set it to something appropriate, even in cases
...
...
@@ -1184,7 +1182,7 @@ png_colorspace_sync(png_const_structrp png_ptr, png_inforp info_ptr)
png_colorspace_sync_info
(
png_ptr
,
info_ptr
);
}
#endif
#endif
#endif
/* GAMMA */
#ifdef PNG_COLORSPACE_SUPPORTED
/* Added at libpng-1.5.5 to support read and write of true CIEXYZ values for
...
...
@@ -2169,7 +2167,8 @@ png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace,
return
1
;
/* success, maybe with warnings */
}
#if defined(PNG_sRGB_SUPPORTED) && PNG_sRGB_PROFILE_CHECKS >= 0
#ifdef PNG_sRGB_SUPPORTED
#if PNG_sRGB_PROFILE_CHECKS >= 0
/* Information about the known ICC sRGB profiles */
static
const
struct
{
...
...
@@ -2352,9 +2351,8 @@ png_compare_ICC_profile_with_sRGB(png_const_structrp png_ptr,
return
0
;
/* no match */
}
#endif
#endif
/* PNG_sRGB_PROFILE_CHECKS >= 0 */
#ifdef PNG_sRGB_SUPPORTED
void
/* PRIVATE */
png_icc_set_sRGB
(
png_const_structrp
png_ptr
,
png_colorspacerp
colorspace
,
png_const_bytep
profile
,
uLong
adler
)
...
...
@@ -2368,7 +2366,7 @@ png_icc_set_sRGB(png_const_structrp png_ptr,
(
void
)
png_colorspace_set_sRGB
(
png_ptr
,
colorspace
,
(
int
)
/*already checked*/
png_get_uint_32
(
profile
+
64
));
}
#endif
/*
READ_
sRGB */
#endif
/* sRGB */
int
/* PRIVATE */
png_colorspace_set_ICC
(
png_const_structrp
png_ptr
,
png_colorspacerp
colorspace
,
...
...
@@ -2460,7 +2458,7 @@ png_colorspace_set_rgb_coefficients(png_structrp png_ptr)
png_error
(
png_ptr
,
"internal error handling cHRM->XYZ"
);
}
}
#endif
#endif
/* READ_RGB_TO_GRAY */
#endif
/* COLORSPACE */
...
...
@@ -3412,19 +3410,19 @@ static png_fixed_point
png_product2
(
png_fixed_point
a
,
png_fixed_point
b
)
{
/* The required result is 1/a * 1/b; the following preserves accuracy. */
#
ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
double
r
=
a
*
1E-5
;
r
*=
b
;
r
=
floor
(
r
+
.
5
);
if
(
r
<=
2147483647
.
&&
r
>=
-
2147483648
.)
return
(
png_fixed_point
)
r
;
#
else
#else
png_fixed_point
res
;
if
(
png_muldiv
(
&
res
,
a
,
b
,
100000
)
!=
0
)
return
res
;
#
endif
#endif
return
0
;
/* overflow */
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录