Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
2dfcf659
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,发现更多精彩内容 >>
提交
2dfcf659
编写于
6月 03, 2015
作者:
J
John Bowler
提交者:
Glenn Randers-Pehrson
6月 03, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Fixed NO_WRITE_FILTER and -Wconversion build breaks (John Bowler).
上级
b780eba4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
18 deletion
+16
-18
ANNOUNCE
ANNOUNCE
+5
-3
CHANGES
CHANGES
+4
-3
pngwrite.c
pngwrite.c
+4
-9
pngwutil.c
pngwutil.c
+3
-3
未找到文件。
ANNOUNCE
浏览文件 @
2dfcf659
...
...
@@ -73,11 +73,13 @@ Version 1.6.18beta07 [June 3, 2015]
Removed non-working progressive reader 'skip' function. This
function has apparently never been used. It was implemented
to support back-door modification of png_struct in libpng-1.4.x
but
was apparently never tested (because it does nothing and cannot
do anything
).
but
(because it does nothing and cannot do anything) was apparently
never tested (John Bowler
).
Fixed cexcept.h in which GCC 5 now reports that one of the auto
variables in the Try macro needs to be volatile to prevent value
being lost over the setjmp.
being lost over the setjmp (John Bowler).
Fixed NO_WRITE_FILTER and -Wconversion build breaks (John Bowler).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
2dfcf659
...
...
@@ -5258,11 +5258,12 @@ Version 1.6.18beta07 [June 3, 2015]
Removed non-working progressive reader 'skip' function. This
function has apparently never been used. It was implemented
to support back-door modification of png_struct in libpng-1.4.x
but
was apparently never tested (because it does nothing and cannot
do anything
).
but
(because it does nothing and cannot do anything) was apparently
never tested (John Bowler
).
Fixed cexcept.h in which GCC 5 now reports that one of the auto
variables in the Try macro needs to be volatile to prevent value
being lost over the setjmp.
being lost over the setjmp (John Bowler).
Fixed NO_WRITE_FILTER and -Wconversion build breaks (John Bowler).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngwrite.c
浏览文件 @
2dfcf659
...
...
@@ -1032,6 +1032,7 @@ png_set_filter(png_structrp png_ptr, int method, int filters)
#endif
/* WRITE_FILTER */
}
#ifdef PNG_WRITE_FILTER_SUPPORTED
/* If we have allocated the row_buf, this means we have already started
* with the image and we should have allocated all of the filter buffers
* that have been selected. If prev_row isn't already allocated, then
...
...
@@ -1101,20 +1102,14 @@ png_set_filter(png_structrp png_ptr, int method, int filters)
}
}
png_ptr
->
do_filter
=
(
png_byte
)
filters
;
#endif
}
else
png_error
(
png_ptr
,
"Unknown custom filter method"
);
}
/* This allows us to influence the way in which libpng chooses the "best"
* filter for the current scanline. While the "minimum-sum-of-absolute-
* differences metric is relatively fast and effective, there is some
* question as to whether it can be improved upon by trying to keep the
* filtered data going to zlib more consistent, hopefully resulting in
* better compression.
*/
#ifdef PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
/* GRR 970116 */
/* Provide floating and fixed point APIs (DEPRECATED) */
#ifdef PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
/* DEPRECATED */
/* Provide floating and fixed point APIs */
#ifdef PNG_FLOATING_POINT_SUPPORTED
void
PNGAPI
png_set_filter_heuristics
(
png_structrp
png_ptr
,
int
heuristic_method
,
...
...
pngwutil.c
浏览文件 @
2dfcf659
...
...
@@ -1962,7 +1962,7 @@ png_write_start_row(png_structrp png_ptr)
int
usr_pixel_depth
;
#ifdef PNG_WRITE_FILTER_SUPPORTED
int
filters
;
png_byte
filters
;
#endif
png_debug
(
1
,
"in png_write_start_row"
);
...
...
@@ -1983,10 +1983,10 @@ png_write_start_row(png_structrp png_ptr)
filters
=
png_ptr
->
do_filter
;
if
(
png_ptr
->
height
==
1
)
filters
&=
~
(
PNG_FILTER_UP
|
PNG_FILTER_AVG
|
PNG_FILTER_PAETH
);
filters
&=
0xff
&
~
(
PNG_FILTER_UP
|
PNG_FILTER_AVG
|
PNG_FILTER_PAETH
);
if
(
png_ptr
->
width
==
1
)
filters
&=
~
(
PNG_FILTER_SUB
|
PNG_FILTER_AVG
|
PNG_FILTER_PAETH
);
filters
&=
0xff
&
~
(
PNG_FILTER_SUB
|
PNG_FILTER_AVG
|
PNG_FILTER_PAETH
);
if
(
filters
==
0
)
filters
=
PNG_FILTER_NONE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录