Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
c3b3240a
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,发现更多精彩内容 >>
提交
c3b3240a
编写于
4月 01, 2011
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Improved the optimization of the zlib CMF byte
(see libpng-1.2.6beta03).
上级
65a24d06
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
6 deletion
+18
-6
ANNOUNCE
ANNOUNCE
+3
-2
CHANGES
CHANGES
+2
-1
pngwutil.c
pngwutil.c
+13
-3
未找到文件。
ANNOUNCE
浏览文件 @
c3b3240a
Libpng 1.5.3beta02 - April
1
, 2011
Libpng 1.5.3beta02 - April
2
, 2011
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.
...
...
@@ -31,10 +31,11 @@ Version 1.5.3beta01 [April 1, 2011]
Added API functions to set parameters for zlib compression of non-IDAT
chunks.
Version 1.5.3beta02 [April
1
, 2011]
Version 1.5.3beta02 [April
2
, 2011]
Updated scripts/symbols.def with new API functions.
Only compile the new zlib re-initializing code when text or iCCP is
supported, using PNG_WRITE_COMPRESSED_TEXT_SUPPORTED macro.
Improved the optimization of the zlib CMF byte (see libpng-1.2.6beta03).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
c3b3240a
...
...
@@ -3292,10 +3292,11 @@ Version 1.5.3beta01 [April 1, 2011]
Added API functions to set parameters for zlib compression of non-IDAT
chunks.
Version 1.5.3beta02 [April
1
, 2011]
Version 1.5.3beta02 [April
2
, 2011]
Updated scripts/symbols.def with new API functions.
Only compile the new zlib re-initializing code when text or iCCP is
supported, using PNG_WRITE_COMPRESSED_TEXT_SUPPORTED macro.
Improved the optimization of the zlib CMF byte (see libpng-1.2.6beta03).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngwutil.c
浏览文件 @
c3b3240a
...
...
@@ -839,13 +839,23 @@ png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length)
if
(
length
>=
2
&&
png_ptr
->
height
<
16384
&&
png_ptr
->
width
<
16384
)
{
/* Compute the maximum possible length of the datastream
*
* To do: verify that this works with interlaced files
/* Compute the maximum possible length of the datastream */
/* Number of pixels, plus for each row a filter byte and possible
* padding byte
*/
png_uint_32
uncompressed_idat_size
=
png_ptr
->
height
*
((
png_ptr
->
width
*
png_ptr
->
channels
*
png_ptr
->
bit_depth
+
15
)
>>
3
);
/* If it's interlaced, each block of 8 rows is sent as up to
* 14 rows, i.e., 6 additional rows, each with a filter byte
* and possibly a padding byte
*/
if
(
png_ptr
->
interlaced
)
uncompressed_idat_size
+=
((
png_ptr
->
height
+
7
)
/
8
)
*
(
png_ptr
->
bit_depth
<
8
?
12
:
6
);
unsigned
int
z_cinfo
=
z_cmf
>>
4
;
unsigned
int
half_z_window_size
=
1
<<
(
z_cinfo
+
7
);
while
(
uncompressed_idat_size
<=
half_z_window_size
&&
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录