Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
bf2dabe6
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,发现更多精彩内容 >>
提交
bf2dabe6
编写于
11月 08, 2009
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[master] Removed three direct references to read_info_ptr members
in pngtest.c that were detected by the new PNG_DEPSTRUCT macro.
上级
70c873bc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
24 deletion
+27
-24
ANNOUNCE
ANNOUNCE
+20
-19
CHANGES
CHANGES
+3
-1
pngtest.c
pngtest.c
+4
-4
未找到文件。
ANNOUNCE
浏览文件 @
bf2dabe6
Libpng 1.2.41beta1
5
- November 9, 2009
Libpng 1.2.41beta1
6
- November 9, 2009
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.
...
...
@@ -9,36 +9,36 @@ Files available for download:
Source files with LF line endings (for Unix/Linux) and with a
"configure" script
libpng-1.2.41beta1
5
.tar.xz (LZMA-compressed, recommended)
libpng-1.2.41beta1
5
.tar.gz
libpng-1.2.41beta1
5
.tar.bz2
libpng-1.2.41beta1
6
.tar.xz (LZMA-compressed, recommended)
libpng-1.2.41beta1
6
.tar.gz
libpng-1.2.41beta1
6
.tar.bz2
Source files with LF line endings (for Unix/Linux) without the
"configure" script
libpng-1.2.41beta1
5
-no-config.tar.xz (LZMA-compressed, recommended)
libpng-1.2.41beta1
5
-no-config.tar.gz
libpng-1.2.41beta1
5
-no-config.tar.bz2
libpng-1.2.41beta1
6
-no-config.tar.xz (LZMA-compressed, recommended)
libpng-1.2.41beta1
6
-no-config.tar.gz
libpng-1.2.41beta1
6
-no-config.tar.bz2
Source files with CRLF line endings (for Windows), without the
"configure" script
lp1241b1
5
.zip
lp1241b1
5
.7z
lp1241b1
5
.tar.bz2
lp1241b1
6
.zip
lp1241b1
6
.7z
lp1241b1
6
.tar.bz2
Project files
libpng-1.2.41beta1
5
-project-netware.zip
libpng-1.2.41beta1
5
-project-wince.zip
libpng-1.2.41beta1
6
-project-netware.zip
libpng-1.2.41beta1
6
-project-wince.zip
Other information:
libpng-1.2.41beta1
5
-README.txt
libpng-1.2.41beta1
5
-KNOWNBUGS.txt
libpng-1.2.41beta1
5
-LICENSE.txt
libpng-1.2.41beta1
5
-Y2K-compliance.txt
libpng-1.2.41beta1
5
-[previous version]-diff.txt
libpng-1.2.41beta1
6
-README.txt
libpng-1.2.41beta1
6
-KNOWNBUGS.txt
libpng-1.2.41beta1
6
-LICENSE.txt
libpng-1.2.41beta1
6
-Y2K-compliance.txt
libpng-1.2.41beta1
6
-[previous version]-diff.txt
Changes since the last public release (1.2.40):
...
...
@@ -127,7 +127,7 @@ version 1.2.41beta14 [November 8, 2009]
Retained png_calloc() from 1.2.41beta08 but as a non-exported function,
and removed reference to png_calloc from scripts/*.def
version 1.2.41beta15 [November
9
, 2009]
version 1.2.41beta15 [November
8
, 2009]
Added PNG_DEPSTRUCT, PNG_DEPRECATED, PNG_USE_RESULT, PNG_NORETURN, and
PNG_ALLOCATED macros to detect deprecated direct access to the
png_struct or info_struct members and other deprecated usage in
...
...
@@ -137,10 +137,11 @@ version 1.2.41beta15 [November 9, 2009]
functions while building libpng. They need to be tested, especially
those using compilers other than gcc.
Updated projects/visualc6 and visualc71 with "/d PNG_CONFIGURE_LIBPNG".
version 1.2.41beta16 [November 9, 2009]
Removed three direct references to read_info_ptr members in pngtest.c
that were detected by the new PNG_DEPSTRUCT macro.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
bf2dabe6
...
...
@@ -2558,7 +2558,7 @@ version 1.2.41beta14 [November 8, 2009]
Retained png_calloc() from 1.2.41beta08 but as a non-exported function,
and removed reference to png_calloc from scripts/*.def
version 1.2.41beta15 [November
9
, 2009]
version 1.2.41beta15 [November
8
, 2009]
Added PNG_DEPSTRUCT, PNG_DEPRECATED, PNG_USE_RESULT, PNG_NORETURN, and
PNG_ALLOCATED macros to detect deprecated direct access to the
png_struct or info_struct members and other deprecated usage in
...
...
@@ -2568,6 +2568,8 @@ version 1.2.41beta15 [November 9, 2009]
functions while building libpng. They need to be tested, especially
those using compilers other than gcc.
Updated projects/visualc6 and visualc71 with "/d PNG_CONFIGURE_LIBPNG".
version 1.2.41beta16 [November 9, 2009]
Removed three direct references to read_info_ptr members in pngtest.c
that were detected by the new PNG_DEPSTRUCT macro.
...
...
pngtest.c
浏览文件 @
bf2dabe6
...
...
@@ -1112,11 +1112,11 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
if
(
png_get_tRNS
(
read_ptr
,
read_info_ptr
,
&
trans
,
&
num_trans
,
&
trans_values
))
{
int
sample_max
=
(
1
<<
read_info_ptr
->
bit_depth
);
int
sample_max
=
(
1
<<
bit_depth
);
/* libpng doesn't reject a tRNS chunk with out-of-range samples */
if
(
!
((
read_info_ptr
->
color_type
==
PNG_COLOR_TYPE_GRAY
&&
if
(
!
((
color_type
==
PNG_COLOR_TYPE_GRAY
&&
(
int
)
trans_values
->
gray
>
sample_max
)
||
(
read_info_ptr
->
color_type
==
PNG_COLOR_TYPE_RGB
&&
(
color_type
==
PNG_COLOR_TYPE_RGB
&&
((
int
)
trans_values
->
red
>
sample_max
||
(
int
)
trans_values
->
green
>
sample_max
||
(
int
)
trans_values
->
blue
>
sample_max
))))
...
...
@@ -1689,4 +1689,4 @@ main(int argc, char *argv[])
}
/* Generate a compiler error if there is an old png.h in the search path. */
typedef
version_1_2_41beta1
5
your_png_h_is_not_version_1_2_41beta15
;
typedef
version_1_2_41beta1
6
your_png_h_is_not_version_1_2_41beta16
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录