Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
526a6ad5
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,发现更多精彩内容 >>
提交
526a6ad5
编写于
3月 11, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Removed direct access to png_ptr->io_ptr from the pngtest Windows code
上级
2f7cbabf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
7 deletion
+9
-7
ANNOUNCE
ANNOUNCE
+3
-2
CHANGES
CHANGES
+2
-1
pngtest.c
pngtest.c
+4
-4
未找到文件。
ANNOUNCE
浏览文件 @
526a6ad5
Libpng 1.5.0beta14 - March 1
0
, 2010
Libpng 1.5.0beta14 - March 1
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.
...
...
@@ -97,7 +97,8 @@ version 1.5.0beta13 [March 10, 2010]
expressions (i.e. a trailing ';' must always be added) and correct
the format statements in various png_debug messages.
version 1.5.0beta14 [March 10, 2010]
version 1.5.0beta14 [March 11, 2010]
Removed direct access to png_ptr->io_ptr from the Windows code in pngtest.c
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
526a6ad5
...
...
@@ -2574,7 +2574,8 @@ version 1.5.0beta13 [March 10, 2010]
expressions (i.e. a trailing ';' must always be added) and correct
the format statements in various png_debug messages.
version 1.5.0beta14 [March 10, 2010]
version 1.5.0beta14 [March 11, 2010]
Removed direct access to png_ptr->io_ptr from the Windows code in pngtest.c
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngtest.c
浏览文件 @
526a6ad5
/* pngtest.c - a simple test program to test libpng
*
* Last changed in libpng 1.5.0 [March 1
0
, 2010]
* Last changed in libpng 1.5.0 [March 1
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.)
...
...
@@ -306,7 +306,7 @@ pngtest_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
/* Check if data really is near. If so, use usual code. */
n_data
=
(
png_byte
*
)
CVT_PTR_NOCHECK
(
data
);
io_ptr
=
(
png_FILE_p
)
CVT_PTR
(
png_
ptr
->
io_ptr
);
io_ptr
=
(
png_FILE_p
)
CVT_PTR
(
png_
get_io_ptr
(
png_ptr
)
);
if
((
png_bytep
)
n_data
==
data
)
{
check
=
fread
(
n_data
,
1
,
length
,
io_ptr
);
...
...
@@ -356,7 +356,7 @@ pngtest_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
png_size_t
check
;
check
=
fwrite
(
data
,
1
,
length
,
(
png_FILE_p
)
png_
ptr
->
io_ptr
);
check
=
fwrite
(
data
,
1
,
length
,
(
png_FILE_p
)
png_
get_io_ptr
(
png_ptr
)
);
if
(
check
!=
length
)
{
png_error
(
png_ptr
,
"Write Error"
);
...
...
@@ -380,7 +380,7 @@ pngtest_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
/* Check if data really is near. If so, use usual code. */
near_data
=
(
png_byte
*
)
CVT_PTR_NOCHECK
(
data
);
io_ptr
=
(
png_FILE_p
)
CVT_PTR
(
png_
ptr
->
io_ptr
);
io_ptr
=
(
png_FILE_p
)
CVT_PTR
(
png_
get_io_ptr
(
png_ptr
)
);
if
((
png_bytep
)
near_data
==
data
)
{
check
=
fwrite
(
near_data
,
1
,
length
,
io_ptr
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录