Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
24639a63
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,发现更多精彩内容 >>
提交
24639a63
编写于
12月 20, 2012
作者:
J
John Bowler
提交者:
Glenn Randers-Pehrson
12月 20, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Made default Zlib compression settings be configurable. This adds #defines to
pnglibconf.h to control the defaults.
上级
5362c9d5
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
39 addition
and
10 deletion
+39
-10
ANNOUNCE
ANNOUNCE
+4
-2
CHANGES
CHANGES
+3
-1
pngwrite.c
pngwrite.c
+8
-4
pngwutil.c
pngwutil.c
+2
-2
scripts/pnglibconf.dfa
scripts/pnglibconf.dfa
+16
-0
scripts/pnglibconf.h.prebuilt
scripts/pnglibconf.h.prebuilt
+6
-1
未找到文件。
ANNOUNCE
浏览文件 @
24639a63
Libpng 1.6.0beta35 - December
19
, 2012
Libpng 1.6.0beta35 - December
21
, 2012
This is not intended to be a public release. It will be replaced
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.
within a few weeks by a public version or by another test version.
...
@@ -569,7 +569,9 @@ Version 1.6.0beta34 [December 19, 2012]
...
@@ -569,7 +569,9 @@ Version 1.6.0beta34 [December 19, 2012]
Disassembled the version number in scripts/options.awk (necessary for
Disassembled the version number in scripts/options.awk (necessary for
building on SunOs).
building on SunOs).
Version 1.6.0beta35 [December 19, 2012]
Version 1.6.0beta35 [December 21, 2012]
Made default Zlib compression settings be configurable. This adds #defines to
pnglibconf.h to control the defaults.
===========================================================================
===========================================================================
NOTICE November 17, 2012:
NOTICE November 17, 2012:
...
...
CHANGES
浏览文件 @
24639a63
...
@@ -4321,7 +4321,9 @@ Version 1.6.0beta34 [December 19, 2012]
...
@@ -4321,7 +4321,9 @@ Version 1.6.0beta34 [December 19, 2012]
Disassembled the version number in scripts/options.awk (necessary for
Disassembled the version number in scripts/options.awk (necessary for
building on SunOs).
building on SunOs).
Version 1.6.0beta35 [December 19, 2012]
Version 1.6.0beta35 [December 21, 2012]
Made default Zlib compression settings be configurable. This adds #defines to
pnglibconf.h to control the defaults.
===========================================================================
===========================================================================
NOTICE November 17, 2012:
NOTICE November 17, 2012:
...
...
pngwrite.c
浏览文件 @
24639a63
...
@@ -501,15 +501,19 @@ png_create_write_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
...
@@ -501,15 +501,19 @@ png_create_write_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
*/
*/
png_ptr
->
zbuffer_size
=
PNG_ZBUF_SIZE
;
png_ptr
->
zbuffer_size
=
PNG_ZBUF_SIZE
;
png_ptr
->
zlib_strategy
=
Z_FILTERED
;
/* may be overridden if no filters */
/* The 'zlib_strategy' setting is irrelevant because png_default_claim in
png_ptr
->
zlib_level
=
Z_DEFAULT_COMPRESSION
;
* pngwutil.c defaults it according to whether or not filters will be used,
* and ignores this setting.
*/
png_ptr
->
zlib_strategy
=
PNG_Z_DEFAULT_STRATEGY
;
png_ptr
->
zlib_level
=
PNG_Z_DEFAULT_COMPRESSION
;
png_ptr
->
zlib_mem_level
=
8
;
png_ptr
->
zlib_mem_level
=
8
;
png_ptr
->
zlib_window_bits
=
15
;
png_ptr
->
zlib_window_bits
=
15
;
png_ptr
->
zlib_method
=
8
;
png_ptr
->
zlib_method
=
8
;
#ifdef PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
#ifdef PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
png_ptr
->
zlib_text_strategy
=
Z_DEFAULT_STRATEGY
;
png_ptr
->
zlib_text_strategy
=
PNG_TEXT_
Z_DEFAULT_STRATEGY
;
png_ptr
->
zlib_text_level
=
Z_DEFAULT_COMPRESSION
;
png_ptr
->
zlib_text_level
=
PNG_TEXT_
Z_DEFAULT_COMPRESSION
;
png_ptr
->
zlib_text_mem_level
=
8
;
png_ptr
->
zlib_text_mem_level
=
8
;
png_ptr
->
zlib_text_window_bits
=
15
;
png_ptr
->
zlib_text_window_bits
=
15
;
png_ptr
->
zlib_text_method
=
8
;
png_ptr
->
zlib_text_method
=
8
;
...
...
pngwutil.c
浏览文件 @
24639a63
...
@@ -338,10 +338,10 @@ png_deflate_claim(png_structrp png_ptr, png_uint_32 owner,
...
@@ -338,10 +338,10 @@ png_deflate_claim(png_structrp png_ptr, png_uint_32 owner,
strategy
=
png_ptr
->
zlib_strategy
;
strategy
=
png_ptr
->
zlib_strategy
;
else
if
(
png_ptr
->
do_filter
!=
PNG_FILTER_NONE
)
else
if
(
png_ptr
->
do_filter
!=
PNG_FILTER_NONE
)
strategy
=
Z_FILTERED
;
strategy
=
PNG_Z_DEFAULT_STRATEGY
;
else
else
strategy
=
Z_DEFAULT
_STRATEGY
;
strategy
=
PNG_Z_DEFAULT_NOFILTER
_STRATEGY
;
}
}
else
else
...
...
scripts/pnglibconf.dfa
浏览文件 @
24639a63
...
@@ -182,6 +182,22 @@ setting PREFIX
...
@@ -182,6 +182,22 @@ setting PREFIX
setting DEFAULT_READ_MACROS default 1
setting DEFAULT_READ_MACROS default 1
# These settings configure the default compression level (0-9) and 'strategy';
# strategy is as defined by the implementors of zlib, it describes the input
# data and modifies the zlib parameters in an attempt to optimize the balance
# between search and huffman encoding in the zlib algorithms. The defaults are
# the zlib.h defaults - the apparently recursive definition does not arise
# because the name of the setting is prefixed by PNG_
#
# The TEXT values are the defaults when writing compressed text (all forms)
setting Z_DEFAULT_COMPRESSION default Z_DEFAULT_COMPRESSION
setting Z_DEFAULT_STRATEGY default Z_FILTERED
setting Z_DEFAULT_NOFILTER_STRATEGY default Z_DEFAULT_STRATEGY
setting TEXT_Z_DEFAULT_COMPRESSION default Z_DEFAULT_COMPRESSION
setting TEXT_Z_DEFAULT_STRATEGY default Z_DEFAULT_STRATEGY
# The alternative is to call functions to read PNG values, if
# The alternative is to call functions to read PNG values, if
# the functions are turned *off* the read macros must always
# the functions are turned *off* the read macros must always
# be enabled, so turning this off will actually force the
# be enabled, so turning this off will actually force the
...
...
scripts/pnglibconf.h.prebuilt
浏览文件 @
24639a63
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/* pnglibconf.h - library build configuration */
/* pnglibconf.h - library build configuration */
/* Libpng 1.6.0beta35 - December
19
, 2012 */
/* Libpng 1.6.0beta35 - December
21
, 2012 */
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
...
@@ -34,8 +34,13 @@
...
@@ -34,8 +34,13 @@
#define PNG_QUANTIZE_RED_BITS 5
#define PNG_QUANTIZE_RED_BITS 5
#define PNG_sCAL_PRECISION 5
#define PNG_sCAL_PRECISION 5
#define PNG_sRGB_PROFILE_CHECKS 2
#define PNG_sRGB_PROFILE_CHECKS 2
#define PNG_TEXT_Z_DEFAULT_COMPRESSION Z_DEFAULT_COMPRESSION
#define PNG_TEXT_Z_DEFAULT_STRATEGY Z_DEFAULT_STRATEGY
#define PNG_WEIGHT_SHIFT 8
#define PNG_WEIGHT_SHIFT 8
#define PNG_ZBUF_SIZE 8192
#define PNG_ZBUF_SIZE 8192
#define PNG_Z_DEFAULT_COMPRESSION Z_DEFAULT_COMPRESSION
#define PNG_Z_DEFAULT_NOFILTER_STRATEGY Z_DEFAULT_STRATEGY
#define PNG_Z_DEFAULT_STRATEGY Z_FILTERED
/* end of settings */
/* end of settings */
/* options */
/* options */
#define PNG_16BIT_SUPPORTED
#define PNG_16BIT_SUPPORTED
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录