Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
f5df058b
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
f5df058b
编写于
2月 22, 2014
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Use a user warning handler in contrib/gregbook/readpng2.c
instead of the default.
上级
dd6679dc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
5 deletion
+16
-5
ANNOUNCE
ANNOUNCE
+5
-2
CHANGES
CHANGES
+4
-1
contrib/gregbook/readpng2.c
contrib/gregbook/readpng2.c
+7
-2
未找到文件。
ANNOUNCE
浏览文件 @
f5df058b
Libpng 1.6.10beta02 - February 2
0
, 2014
Libpng 1.6.10beta02 - February 2
1
, 2014
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.
...
...
@@ -55,7 +55,7 @@ Version 1.6.10beta01 [February 9, 2014]
and it adds corresponding code to pngimage.c to handle such options
by not attempting to test them.
Version 1.6.10beta02 [February 2
0
, 2014]
Version 1.6.10beta02 [February 2
1
, 2014]
Moved redefines of png_error(), png_warning(), png_chunk_error(),
and png_chunk_warning() from pngpriv.h to png.h to make them visible
to libpng-calling applications.
...
...
@@ -72,6 +72,9 @@ Version 1.6.10beta02 [February 20, 2014]
it more robust against future programming errors.
Check for __has_extension before using it in pngconf.h, to
support older Clang versions (Jeremy Sequoia).
Treat CRC error handling with png_set_crc_action(), instead of with
png_set_benign_errors(), which has been the case since libpng-1.6.0beta18.
Use a user warning handler in contrib/gregbook/readpng2.c instead of default.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
f5df058b
...
...
@@ -4829,7 +4829,7 @@ Version 1.6.10beta01 [February 9, 2014]
and it adds corresponding code to pngimage.c to handle such options
by not attempting to test them.
Version 1.6.10beta02 [February 2
0
, 2014]
Version 1.6.10beta02 [February 2
1
, 2014]
Moved redefines of png_error(), png_warning(), png_chunk_error(),
and png_chunk_warning() from pngpriv.h to png.h to make them visible
to libpng-calling applications.
...
...
@@ -4846,6 +4846,9 @@ Version 1.6.10beta02 [February 20, 2014]
it more robust against future programming errors.
Check for __has_extension before using it in pngconf.h, to
support older Clang versions (Jeremy Sequoia).
Treat CRC error handling with png_set_crc_action(), instead of with
png_set_benign_errors(), which has been the case since libpng-1.6.0beta18.
Use a user warning handler in contrib/gregbook/readpng2.c instead of default.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
contrib/gregbook/readpng2.c
浏览文件 @
f5df058b
...
...
@@ -69,6 +69,7 @@ static void readpng2_row_callback(png_structp png_ptr, png_bytep new_row,
png_uint_32
row_num
,
int
pass
);
static
void
readpng2_end_callback
(
png_structp
png_ptr
,
png_infop
info_ptr
);
static
void
readpng2_error_handler
(
png_structp
png_ptr
,
png_const_charp
msg
);
static
void
readpng2_warning_handler
(
png_structp
png_ptr
,
png_const_charp
msg
);
...
...
@@ -104,7 +105,7 @@ int readpng2_init(mainprog_info *mainprog_ptr)
/* could also replace libpng warning-handler (final NULL), but no need: */
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
mainprog_ptr
,
readpng2_error_handler
,
NULL
);
readpng2_error_handler
,
readpng2_warning_handler
);
if
(
!
png_ptr
)
return
4
;
/* out of memory */
...
...
@@ -467,7 +468,11 @@ void readpng2_cleanup(mainprog_info *mainprog_ptr)
}
static
void
readpng2_warning_handler
(
png_structp
png_ptr
,
png_const_charp
msg
)
{
fprintf
(
stderr
,
"readpng2 libpng warning: %s
\n
"
,
msg
);
fflush
(
stderr
);
}
static
void
readpng2_error_handler
(
png_structp
png_ptr
,
png_const_charp
msg
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录