Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
67806d44
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,发现更多精彩内容 >>
提交
67806d44
编写于
7月 29, 2015
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Imported from libpng-1.6.19beta01.tar
上级
8510247b
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
46 addition
and
48 deletion
+46
-48
LICENSE
LICENSE
+2
-2
README
README
+1
-1
contrib/pngminus/pnm2png.c
contrib/pngminus/pnm2png.c
+20
-9
libpng-manual.txt
libpng-manual.txt
+3
-3
libpng.3
libpng.3
+8
-8
libpngpf.3
libpngpf.3
+1
-1
png.5
png.5
+1
-1
png.h
png.h
+5
-5
pngpriv.h
pngpriv.h
+0
-4
projects/vstudio/readme.txt
projects/vstudio/readme.txt
+1
-1
projects/vstudio/zlib.props
projects/vstudio/zlib.props
+1
-1
scripts/README.txt
scripts/README.txt
+1
-1
scripts/pnglibconf.dfa
scripts/pnglibconf.dfa
+1
-8
scripts/pnglibconf.h.prebuilt
scripts/pnglibconf.h.prebuilt
+1
-3
未找到文件。
LICENSE
浏览文件 @
67806d44
...
...
@@ -10,7 +10,7 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
4
, 2015, are
libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
9
, 2015, are
Copyright (c) 2000-2002, 2004, 2006-2015 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.0.6
with the following individuals added to the list of Contributing Authors:
...
...
@@ -104,4 +104,4 @@ the additional disclaimers inserted at version 1.0.7.
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
July 2
4
, 2015
July 2
9
, 2015
README
浏览文件 @
67806d44
README for libpng version 1.6.19beta01 - July 2
4
, 2015 (shared library 16.0)
README for libpng version 1.6.19beta01 - July 2
9
, 2015 (shared library 16.0)
See the note about version numbers near the top of png.h
See INSTALL for instructions on how to install libpng.
...
...
contrib/pngminus/pnm2png.c
浏览文件 @
67806d44
...
...
@@ -3,6 +3,7 @@
* copyright (C) 1999 by Willem van Schaik <willem@schaik.com>
*
* version 1.0 - 1999.10.15 - First version.
* version 1.1 - 2015.07.29 - Fixed leaks (Glenn Randers-Pehrson)
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby granted,
...
...
@@ -200,17 +201,17 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
char
width_token
[
16
];
char
height_token
[
16
];
char
maxval_token
[
16
];
volatile
int
color_type
;
volatile
int
color_type
=
1
;
unsigned
long
ul_width
=
0
,
ul_alpha_width
=
0
;
unsigned
long
ul_height
=
0
,
ul_alpha_height
=
0
;
unsigned
long
ul_maxval
=
0
;
volatile
png_uint_32
width
,
height
;
volatile
png_uint_32
alpha_width
,
alpha_height
;
volatile
png_uint_32
width
=
0
,
height
=
0
;
volatile
png_uint_32
alpha_width
=
0
,
alpha_height
=
0
;
png_uint_32
maxval
;
volatile
int
bit_depth
=
0
;
int
channels
;
int
channels
=
0
;
int
alpha_depth
=
0
;
int
alpha_present
;
int
alpha_present
=
0
;
int
row
,
col
;
BOOL
raw
,
alpha_raw
=
FALSE
;
#if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED)
...
...
@@ -356,8 +357,10 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
channels
=
3
;
else
if
(
color_type
==
PNG_COLOR_TYPE_RGB_ALPHA
)
channels
=
4
;
#if 0
else
channels
=
0
;
/* should not happen */
channels = 0; /* cannot happen */
#endif
alpha_present
=
(
channels
-
1
)
%
2
;
...
...
@@ -429,12 +432,16 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
NULL
);
if
(
!
png_ptr
)
{
free
(
png_pixels
);
png_pixels
=
NULL
;
return
FALSE
;
}
info_ptr
=
png_create_info_struct
(
png_ptr
);
if
(
!
info_ptr
)
{
png_destroy_write_struct
(
&
png_ptr
,
(
png_infopp
)
NULL
);
free
(
png_pixels
);
png_pixels
=
NULL
;
return
FALSE
;
}
...
...
@@ -449,7 +456,9 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
/* setjmp() must be called in every function that calls a PNG-reading libpng function */
if
(
setjmp
(
png_jmpbuf
(
png_ptr
)))
{
png_destroy_write_struct
(
&
png_ptr
,
(
png_infopp
)
NULL
);
png_destroy_write_struct
(
&
png_ptr
,
&
info_ptr
);
free
(
png_pixels
);
png_pixels
=
NULL
;
return
FALSE
;
}
...
...
@@ -470,7 +479,9 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
if
((
row_pointers
=
(
png_byte
**
)
malloc
(
height
*
sizeof
(
png_bytep
)))
==
NULL
)
{
png_destroy_write_struct
(
&
png_ptr
,
(
png_infopp
)
NULL
);
png_destroy_write_struct
(
&
png_ptr
,
&
info_ptr
);
free
(
png_pixels
);
png_pixels
=
NULL
;
return
FALSE
;
}
}
...
...
@@ -486,7 +497,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
png_write_end
(
png_ptr
,
info_ptr
);
/* clean up after the write, and free any memory allocated */
png_destroy_write_struct
(
&
png_ptr
,
(
png_infopp
)
NULL
);
png_destroy_write_struct
(
&
png_ptr
,
&
info_ptr
);
if
(
row_pointers
!=
(
unsigned
char
**
)
NULL
)
free
(
row_pointers
);
...
...
libpng-manual.txt
浏览文件 @
67806d44
libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.6.19beta01 - July 2
5
, 2015
libpng version 1.6.19beta01 - July 2
9
, 2015
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2015 Glenn Randers-Pehrson
...
...
@@ -11,7 +11,7 @@ libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.6.19beta01 - July 2
5
, 2015
libpng versions 0.97, January 1998, through 1.6.19beta01 - July 2
9
, 2015
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2015 Glenn Randers-Pehrson
...
...
@@ -5304,7 +5304,7 @@ Other rules can be inferred by inspecting the libpng source.
XVI. Y2K Compliance in libpng
July 2
5
, 2015
July 2
9
, 2015
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
...
...
libpng.3
浏览文件 @
67806d44
.TH LIBPNG 3 "July 2
5
, 2015"
.TH LIBPNG 3 "July 2
9
, 2015"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.19beta01
.SH SYNOPSIS
...
...
@@ -508,7 +508,7 @@ Following is a copy of the libpng-manual.txt file that accompanies libpng.
.SH LIBPNG.TXT
libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.6.19beta01 - July 2
5
, 2015
libpng version 1.6.19beta01 - July 2
9
, 2015
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2015 Glenn Randers-Pehrson
...
...
@@ -519,7 +519,7 @@ libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.6.19beta01 - July 2
5
, 2015
libpng versions 0.97, January 1998, through 1.6.19beta01 - July 2
9
, 2015
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2015 Glenn Randers-Pehrson
...
...
@@ -5812,7 +5812,7 @@ Other rules can be inferred by inspecting the libpng source.
.SH XVI. Y2K Compliance in libpng
July 2
5
, 2015
July 2
9
, 2015
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
...
...
@@ -6042,7 +6042,7 @@ the first widely used release:
1.6.5 16 10605 16.so.16.5[.0]
1.6.6 16 10606 16.so.16.6[.0]
1.6.7beta01-04 16 10607 16.so.16.7[.0]
1.6.7rc01-0
2
16 10607 16.so.16.7[.0]
1.6.7rc01-0
3
16 10607 16.so.16.7[.0]
1.6.7 16 10607 16.so.16.7[.0]
1.6.8beta01-02 16 10608 16.so.16.8[.0]
1.6.8rc01-02 16 10608 16.so.16.8[.0]
...
...
@@ -6133,7 +6133,7 @@ possible without all of you.
Thanks to Frank J. T. Wojcik for helping with the documentation.
Libpng version 1.6.19beta01 - July 2
5
, 2015:
Libpng version 1.6.19beta01 - July 2
9
, 2015:
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
...
...
@@ -6156,7 +6156,7 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
5
, 2015, are
libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
9
, 2015, are
Copyright (c) 2000-2002, 2004, 2006-2015 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.0.6
with the following individuals added to the list of Contributing Authors:
...
...
@@ -6250,7 +6250,7 @@ the additional disclaimers inserted at version 1.0.7.
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
July 2
5
, 2015
July 2
9
, 2015
.\" end of man page
libpngpf.3
浏览文件 @
67806d44
.TH LIBPNGPF 3 "July 2
4
, 2015"
.TH LIBPNGPF 3 "July 2
9
, 2015"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.19beta01
(private functions)
...
...
png.5
浏览文件 @
67806d44
.TH PNG 5 "July 2
4
, 2015"
.TH PNG 5 "July 2
9
, 2015"
.SH NAME
png \- Portable Network Graphics (PNG) format
.SH DESCRIPTION
...
...
png.h
浏览文件 @
67806d44
/* png.h - header file for PNG reference library
*
* libpng version 1.6.19beta01, July 2
6
, 2015
* libpng version 1.6.19beta01, July 2
9
, 2015
*
* Copyright (c) 1998-2015 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
...
...
@@ -12,7 +12,7 @@
* Authors and maintainers:
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
* libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
* libpng versions 0.97, January 1998, through 1.6.19beta01, July 2
6
, 2015: Glenn
* libpng versions 0.97, January 1998, through 1.6.19beta01, July 2
9
, 2015: Glenn
* See also "Contributing Authors", below.
*
* Note about libpng version numbers:
...
...
@@ -251,7 +251,7 @@
*
* This code is released under the libpng license.
*
* libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
6
, 2015, are
* libpng versions 1.0.7, July 1, 2000, through 1.6.19beta01, July 2
9
, 2015, are
* Copyright (c) 2000-2002, 2004, 2006-2015 Glenn Randers-Pehrson, and are
* distributed according to the same disclaimer and license as libpng-1.0.6
* with the following individuals added to the list of Contributing Authors:
...
...
@@ -360,7 +360,7 @@
* Y2K compliance in libpng:
* =========================
*
* July 2
6
, 2015
* July 2
9
, 2015
*
* Since the PNG Development group is an ad-hoc body, we can't make
* an official declaration.
...
...
@@ -430,7 +430,7 @@
/* Version information for png.h - this should match the version in png.c */
#define PNG_LIBPNG_VER_STRING "1.6.19beta01"
#define PNG_HEADER_VERSION_STRING \
" libpng version 1.6.19beta01 - July 2
6
, 2015\n"
" libpng version 1.6.19beta01 - July 2
9
, 2015\n"
#define PNG_LIBPNG_VER_SONUM 16
#define PNG_LIBPNG_VER_DLLNUM 16
...
...
pngpriv.h
浏览文件 @
67806d44
...
...
@@ -575,10 +575,6 @@
#define PNG_STRUCT_PNG 0x0001
#define PNG_STRUCT_INFO 0x0002
/* Scaling factor for filter heuristic weighting calculations */
#define PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT))
#define PNG_COST_FACTOR (1<<(PNG_COST_SHIFT))
/* Flags for the png_ptr->flags rather than declaring a byte for each one */
#define PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001
#define PNG_FLAG_ZSTREAM_INITIALIZED 0x0002
/* Added to libpng-1.6.0 */
...
...
projects/vstudio/readme.txt
浏览文件 @
67806d44
VisualStudio instructions
libpng version 1.6.19beta01 - July 2
4
, 2015
libpng version 1.6.19beta01 - July 2
9
, 2015
Copyright (c) 1998-2010 Glenn Randers-Pehrson
...
...
projects/vstudio/zlib.props
浏览文件 @
67806d44
...
...
@@ -2,7 +2,7 @@
<!--
* zlib.props - location of zlib source
*
* libpng version 1.6.19beta01 - July 2
4
, 2015
* libpng version 1.6.19beta01 - July 2
9
, 2015
*
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
*
...
...
scripts/README.txt
浏览文件 @
67806d44
Makefiles for libpng version 1.6.19beta01 - July 2
4
, 2015
Makefiles for libpng version 1.6.19beta01 - July 2
9
, 2015
pnglibconf.h.prebuilt => Stores configuration settings
makefile.linux => Linux/ELF makefile
...
...
scripts/pnglibconf.dfa
浏览文件 @
67806d44
...
...
@@ -515,9 +515,7 @@ option WRITE_USER_TRANSFORM requires WRITE_TRANSFORMS
option WRITE_INTERLACING requires WRITE
# The following depends, internally, on WEIGHT_SHIFT and COST_SHIFT
# where are set below.
# Deprecated, will be removed.
option WRITE_WEIGHTED_FILTER requires WRITE
option WRITE_FLUSH requires WRITE
...
...
@@ -668,11 +666,6 @@ setting MAX_GAMMA_8 default 11
setting GAMMA_THRESHOLD_FIXED default 5000
# Scaling factor for filter heuristic weighting calculations
setting WEIGHT_SHIFT default 8
setting COST_SHIFT default 3
# Precision to use when converting a floating point value to a PNG
# extension format string in an sCAL chunk (only relevant if the
# floating point API is enabled)
...
...
scripts/pnglibconf.h.prebuilt
浏览文件 @
67806d44
...
...
@@ -2,7 +2,7 @@
/* pnglibconf.h - library build configuration */
/* Libpng version 1.6.19beta01 - July 2
4
, 2015 */
/* Libpng version 1.6.19beta01 - July 2
9
, 2015 */
/* Copyright (c) 1998-2014 Glenn Randers-Pehrson */
...
...
@@ -185,7 +185,6 @@
/* end of options */
/* settings */
#define PNG_API_RULE 0
#define PNG_COST_SHIFT 3
#define PNG_DEFAULT_READ_MACROS 1
#define PNG_GAMMA_THRESHOLD_FIXED 5000
#define PNG_IDAT_READ_SIZE PNG_ZBUF_SIZE
...
...
@@ -204,7 +203,6 @@
#define PNG_USER_CHUNK_MALLOC_MAX 8000000
#define PNG_USER_HEIGHT_MAX 1000000
#define PNG_USER_WIDTH_MAX 1000000
#define PNG_WEIGHT_SHIFT 8
#define PNG_ZBUF_SIZE 8192
#define PNG_ZLIB_VERNUM 0 /* unknown */
#define PNG_Z_DEFAULT_COMPRESSION (-1)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录