Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
1d3c9904
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
1d3c9904
编写于
12月 27, 2013
作者:
J
John Bowler
提交者:
Glenn Randers-Pehrson
12月 27, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Added checks for libpng 1.5 to pngvalid.c. This supports the use of
this version of pngvalid in libpng 1.5
上级
79f0ba49
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
9 deletion
+25
-9
ANNOUNCE
ANNOUNCE
+4
-2
CHANGES
CHANGES
+3
-1
contrib/libtests/pngvalid.c
contrib/libtests/pngvalid.c
+18
-6
未找到文件。
ANNOUNCE
浏览文件 @
1d3c9904
Libpng 1.6.9beta02 - December 2
6
, 2013
Libpng 1.6.9beta02 - December 2
7
, 2013
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
...
...
@@ -42,7 +42,9 @@ Version 1.6.9beta01 [December 26, 2013]
Rebuilt configure scripts with automake-1.14.1 and autoconf-2.69
in the tar distributions.
Version 1.6.9beta02 [December 26, 2013]
Version 1.6.9beta02 [December 27, 2013]
Added checks for libpng 1.5 to pngvalid.c. This supports the use of
this version of pngvalid in libpng 1.5
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
1d3c9904
...
...
@@ -4767,7 +4767,9 @@ Version 1.6.9beta01 [December 26, 2013]
Rebuilt configure scripts with automake-1.14.1 and autoconf-2.69
in the tar distributions.
Version 1.6.9beta02 [December 26, 2013]
Version 1.6.9beta02 [December 27, 2013]
Added checks for libpng 1.5 to pngvalid.c. This supports the use of
this version of pngvalid in libpng 1.5
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
contrib/libtests/pngvalid.c
浏览文件 @
1d3c9904
/* pngvalid.c - validate libpng by constructing then reading png files.
*
* Last changed in libpng 1.6.
8 [December 19, 2013
]
* Last changed in libpng 1.6.
9 [(PENDING RELEASE)
]
* Copyright (c) 2013 Glenn Randers-Pehrson
* Written by John Cunningham Bowler
*
...
...
@@ -4849,7 +4849,7 @@ standard_check_text(png_const_structp pp, png_const_textp tp,
static
void
standard_text_validate
(
standard_display
*
dp
,
png_const_structp
pp
,
png_infop
pi
)
png_infop
pi
,
int
check_end
)
{
png_textp
tp
=
NULL
;
png_uint_32
num_text
=
png_get_text
(
pp
,
pi
,
&
tp
,
NULL
);
...
...
@@ -4857,7 +4857,13 @@ standard_text_validate(standard_display *dp, png_const_structp pp,
if
(
num_text
==
2
&&
tp
!=
NULL
)
{
standard_check_text
(
pp
,
tp
,
"image name"
,
dp
->
ps
->
current
->
name
);
standard_check_text
(
pp
,
tp
+
1
,
"end marker"
,
"end"
);
/* This exists because prior to 1.6 the progressive reader left the
* png_struct z_stream unreset at the end of the image, so subsequent
* attempts to use it simply returns Z_STREAM_END.
*/
if
(
check_end
)
standard_check_text
(
pp
,
tp
+
1
,
"end marker"
,
"end"
);
}
else
...
...
@@ -4870,7 +4876,7 @@ standard_text_validate(standard_display *dp, png_const_structp pp,
}
}
#else
# define standard_text_validate(dp,pp,pi) ((void)0)
# define standard_text_validate(dp,pp,pi
,check_end
) ((void)0)
#endif
static
void
...
...
@@ -4960,7 +4966,8 @@ standard_end(png_structp ppIn, png_infop pi)
/* Validate the image - progressive reading only produces one variant for
* interlaced images.
*/
standard_text_validate
(
dp
,
pp
,
pi
);
standard_text_validate
(
dp
,
pp
,
pi
,
PNG_LIBPNG_VER
>=
10600
/*check_end: see comments above*/
);
standard_image_validate
(
dp
,
pp
,
0
,
-
1
);
}
...
...
@@ -5031,7 +5038,7 @@ standard_test(png_store* PNG_CONST psIn, png_uint_32 PNG_CONST id,
*/
if
(
!
d
.
speed
)
{
standard_text_validate
(
&
d
,
pp
,
pi
);
standard_text_validate
(
&
d
,
pp
,
pi
,
1
/*check_end*/
);
standard_image_validate
(
&
d
,
pp
,
0
,
1
);
}
else
...
...
@@ -10276,6 +10283,11 @@ int main(void)
fprintf
(
stderr
,
"pngvalid: no low level write support in libpng, all tests skipped
\n
"
);
/* So the test is skipped: */
#if PNG_LIBPNG_VER < 10601
/* Test harness support was only added in libpng 1.6.1: */
return
0
;
#else
return
77
;
#endif
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录