Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
92a3ef4a
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,发现更多精彩内容 >>
提交
92a3ef4a
编写于
3月 31, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Combined multiple png_warning() calls for a single error.
上级
946c3f98
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
37 addition
and
40 deletion
+37
-40
ANNOUNCE
ANNOUNCE
+3
-2
CHANGES
CHANGES
+2
-1
pngread.c
pngread.c
+9
-10
pngrio.c
pngrio.c
+3
-4
pngrutil.c
pngrutil.c
+6
-7
pngwio.c
pngwio.c
+3
-4
pngwrite.c
pngwrite.c
+11
-12
未找到文件。
ANNOUNCE
浏览文件 @
92a3ef4a
Libpng 1.5.0beta16 -
March 30
, 2010
Libpng 1.5.0beta16 -
April 1
, 2010
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.
...
...
@@ -131,7 +131,7 @@ version 1.5.0beta15 [March 17, 2010]
Removed makefile.mingw.
Eliminated PNG_NO_EXTERN and PNG_ALL_EXTERN
version 1.5.0beta16 [
March 30
, 2010]
version 1.5.0beta16 [
April 1
, 2010]
Make png_text_struct independent of PNG_iTXt_SUPPORTED, so that
fields are initialized in all configurations. The READ/WRITE
macros (PNG_(READ|WRITE)_iTXt_SUPPORTED) still function as
...
...
@@ -139,6 +139,7 @@ version 1.5.0beta16 [March 30, 2010]
and iTXt_SUPPORTED can be used to detect presence of either
read or write support (but it is probably better to check for
the one actually required - read or write.)
Combined multiple png_warning() calls for a single error.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
92a3ef4a
...
...
@@ -2608,7 +2608,7 @@ version 1.5.0beta15 [March 17, 2010]
Removed makefile.mingw.
Eliminated PNG_NO_EXTERN and PNG_ALL_EXTERN
version 1.5.0beta16 [
March 30
, 2010]
version 1.5.0beta16 [
April 1
, 2010]
Make png_text_struct independent of PNG_iTXt_SUPPORTED, so that
fields are initialized in all configurations. The READ/WRITE
macros (PNG_(READ|WRITE)_iTXt_SUPPORTED) still function as
...
...
@@ -2616,6 +2616,7 @@ version 1.5.0beta16 [March 30, 2010]
and iTXt_SUPPORTED can be used to detect presence of either
read or write support (but it is probably better to check for
the one actually required - read or write.)
Combined multiple png_warning() calls for a single error.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngread.c
浏览文件 @
92a3ef4a
/* pngread.c - read a PNG file
*
* Last changed in libpng 1.5.0 [
March 17
, 2010]
* Last changed in libpng 1.5.0 [
April 1
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -127,21 +127,20 @@ png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
char
msg
[
80
];
if
(
user_png_ver
)
{
png_snprintf
(
msg
,
80
,
"Application was compiled with png.h from libpng-%.20s"
,
user_png_ver
);
png_snprintf2
(
msg
,
80
,
"Application built with libpng-%.20s"
" but running with %.20s"
,
user_png_ver
,
png_libpng_ver
);
png_warning
(
png_ptr
,
msg
);
}
png_snprintf
(
msg
,
80
,
"Application is running with png.c from libpng-%.20s"
,
png_libpng_ver
);
png_warning
(
png_ptr
,
msg
);
#else
png_warning
(
png_ptr
,
"Incompatible libpng version in application and library"
);
#endif
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
png_ptr
->
flags
=
0
;
#endif
png_warning
(
png_ptr
,
"Incompatible libpng version in application and library"
);
png_cleanup_needed
=
1
;
}
...
...
pngrio.c
浏览文件 @
92a3ef4a
/* pngrio.c - functions for data input
*
* Last changed in libpng 1.5.0 [
March 17
, 2010]
* Last changed in libpng 1.5.0 [
April 1
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -150,9 +150,8 @@ png_set_read_fn(png_structp png_ptr, png_voidp io_ptr,
{
png_ptr
->
write_data_fn
=
NULL
;
png_warning
(
png_ptr
,
"It's an error to set both read_data_fn and write_data_fn in the "
);
png_warning
(
png_ptr
,
"same structure. Resetting write_data_fn to NULL"
);
"Can't set both read_data_fn and write_data_fn in the"
" same structure"
);
}
#ifdef PNG_WRITE_FLUSH_SUPPORTED
...
...
pngrutil.c
浏览文件 @
92a3ef4a
/* pngrutil.c - utilities to read a PNG file
*
* Last changed in libpng 1.4.1 [
March 30
, 2010]
* Last changed in libpng 1.4.1 [
April 1
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -1133,15 +1133,14 @@ png_handle_iCCP(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
{
png_free
(
png_ptr
,
png_ptr
->
chunkdata
);
png_ptr
->
chunkdata
=
NULL
;
png_warning
(
png_ptr
,
"Ignoring truncated iCCP profile"
);
#ifdef PNG_STDIO_SUPPORTED
{
char
umsg
[
5
0
];
char
umsg
[
8
0
];
png_snprintf
(
umsg
,
50
,
"declared profile size = %lu"
,
(
unsigned
long
)
profile_size
);
png_warning
(
png_ptr
,
umsg
);
png_snprintf
(
umsg
,
50
,
"actual profile length = %lu"
,
png_snprintf
2
(
umsg
,
80
,
"Ignoring iCCP chunk with declared size = %lu "
"and actual length = %lu"
,
(
unsigned
long
)
profile_size
,
(
unsigned
long
)
profile_length
);
png_warning
(
png_ptr
,
umsg
);
}
...
...
pngwio.c
浏览文件 @
92a3ef4a
/* pngwio.c - functions for data output
*
* Last changed in libpng 1.5.0 [
March 17
, 2010]
* Last changed in libpng 1.5.0 [
April 1
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -200,9 +200,8 @@ png_set_write_fn(png_structp png_ptr, png_voidp io_ptr,
{
png_ptr
->
read_data_fn
=
NULL
;
png_warning
(
png_ptr
,
"Attempted to set both read_data_fn and write_data_fn in"
);
png_warning
(
png_ptr
,
"the same structure. Resetting read_data_fn to NULL"
);
"Can't set both read_data_fn and write_data_fn in the"
" same structure"
);
}
}
...
...
pngwrite.c
浏览文件 @
92a3ef4a
/* pngwrite.c - general routines to write a PNG file
*
* Last changed in libpng 1.5.0 [
March 17
, 2010]
* Last changed in libpng 1.5.0 [
April 1
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -541,21 +541,20 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
char
msg
[
80
];
if
(
user_png_ver
)
{
png_snprintf
(
msg
,
80
,
"Application was compiled with png.h from libpng-%.20s"
,
user_png_ver
);
png_warning
(
png_ptr
,
msg
);
}
png_snprintf
(
msg
,
80
,
"Application is running with png.c from libpng-%.20s"
,
png_libpng_ver
);
png_warning
(
png_ptr
,
msg
);
png_snprintf2
(
msg
,
80
,
"Application built with libpng-%.20s"
" but running with %.20s"
,
user_png_ver
,
png_libpng_ver
);
png_warning
(
png_ptr
,
msg
);
}
#else
png_warning
(
png_ptr
,
"Incompatible libpng version in application and library"
);
#endif
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
png_ptr
->
flags
=
0
;
#endif
png_warning
(
png_ptr
,
"Incompatible libpng version in application and library"
);
png_cleanup_needed
=
1
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录