Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
86645a3f
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,发现更多精彩内容 >>
提交
86645a3f
编写于
11月 09, 2009
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[master] Marked deprecated function prototypes with PNG_DEPRECATED.
上级
edc3994c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
14 deletion
+20
-14
ANNOUNCE
ANNOUNCE
+1
-0
CHANGES
CHANGES
+1
-0
png.h
png.h
+15
-11
pngconf.h
pngconf.h
+3
-3
未找到文件。
ANNOUNCE
浏览文件 @
86645a3f
...
...
@@ -145,6 +145,7 @@ version 1.2.41beta16 [November 9, 2009]
version 1.2.41beta17 [November 9, 2009]
Updated CMakeLists.txt to add "-DPNG_CONFIGURE_LIBPNG" to the definitions.
Marked deprecated function prototypes with PNG_DEPRECATED.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
...
...
CHANGES
浏览文件 @
86645a3f
...
...
@@ -2576,6 +2576,7 @@ version 1.2.41beta16 [November 9, 2009]
version 1.2.41beta17 [November 9, 2009]
Updated CMakeLists.txt to add "-DPNG_CONFIGURE_LIBPNG" to the definitions.
Marked deprecated function prototypes with PNG_DEPRECATED.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
png.h
浏览文件 @
86645a3f
...
...
@@ -1552,7 +1552,7 @@ extern PNG_EXPORT(int,png_sig_cmp) PNGARG((png_bytep sig, png_size_t start,
/* Simple signature checking function. This is the same as calling
* png_check_sig(sig, n) := !png_sig_cmp(sig, 0, n).
*/
extern
PNG_EXPORT
(
int
,
png_check_sig
)
PNGARG
((
png_bytep
sig
,
int
num
));
extern
PNG_EXPORT
(
int
,
png_check_sig
)
PNGARG
((
png_bytep
sig
,
int
num
))
PNG_DEPRECATED
;
/* Allocate and initialize png_ptr struct for reading, and any other memory. */
extern
PNG_EXPORT
(
png_structp
,
png_create_read_struct
)
...
...
@@ -1610,7 +1610,8 @@ extern PNG_EXPORT(png_infop,png_create_info_struct)
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
/* Initialize the info structure (old interface - DEPRECATED) */
extern
PNG_EXPORT
(
void
,
png_info_init
)
PNGARG
((
png_infop
info_ptr
));
extern
PNG_EXPORT
(
void
,
png_info_init
)
PNGARG
((
png_infop
info_ptr
))
PNG_DEPRECATED
;
#undef png_info_init
#define png_info_init(info_ptr) png_info_init_3(&info_ptr,\
png_sizeof(png_info));
...
...
@@ -1657,7 +1658,8 @@ extern PNG_EXPORT(void,png_set_palette_to_rgb) PNGARG((png_structp png_ptr));
extern
PNG_EXPORT
(
void
,
png_set_tRNS_to_alpha
)
PNGARG
((
png_structp
png_ptr
));
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
/* Deprecated */
extern
PNG_EXPORT
(
void
,
png_set_gray_1_2_4_to_8
)
PNGARG
((
png_structp
png_ptr
));
extern
PNG_EXPORT
(
void
,
png_set_gray_1_2_4_to_8
)
PNGARG
((
png_structp
png_ptr
))
PNG_DEPRECATED
;
#endif
#endif
...
...
@@ -1785,7 +1787,7 @@ extern PNG_EXPORT(void,png_set_gamma) PNGARG((png_structp png_ptr,
/* Permit or disallow empty PLTE (0: not permitted, 1: permitted) */
/* Deprecated and will be removed. Use png_permit_mng_features() instead. */
extern
PNG_EXPORT
(
void
,
png_permit_empty_plte
)
PNGARG
((
png_structp
png_ptr
,
int
empty_plte_permitted
));
int
empty_plte_permitted
))
PNG_DEPRECATED
;
#endif
#endif
...
...
@@ -1854,14 +1856,14 @@ extern PNG_EXPORT(void,png_destroy_read_struct) PNGARG((png_structpp
/* Free all memory used by the read (old method - NOT DLL EXPORTED) */
extern
void
png_read_destroy
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_infop
end_info_ptr
));
png_infop
end_info_ptr
))
PNG_DEPRECATED
;
/* Free any memory associated with the png_struct and the png_info_structs */
extern
PNG_EXPORT
(
void
,
png_destroy_write_struct
)
PNGARG
((
png_structpp
png_ptr_ptr
,
png_infopp
info_ptr_ptr
));
/* Free any memory used in png_ptr struct (old method - NOT DLL EXPORTED) */
extern
void
png_write_destroy
PNGARG
((
png_structp
png_ptr
));
extern
void
png_write_destroy
PNGARG
((
png_structp
png_ptr
))
PNG_DEPRECATED
;
/* Set the libpng method of handling chunk CRC errors */
extern
PNG_EXPORT
(
void
,
png_set_crc_action
)
PNGARG
((
png_structp
png_ptr
,
...
...
@@ -2176,14 +2178,14 @@ extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,
#ifndef PNG_NO_ERROR_TEXT
/* Fatal error in PNG image of libpng - can't continue */
extern
PNG_EXPORT
(
void
,
png_error
)
PNGARG
((
png_structp
png_ptr
,
png_const_charp
error_message
));
png_const_charp
error_message
))
PNG_NORETURN
;
/* The same, but the chunk name is prepended to the error string. */
extern
PNG_EXPORT
(
void
,
png_chunk_error
)
PNGARG
((
png_structp
png_ptr
,
png_const_charp
error_message
));
png_const_charp
error_message
))
PNG_NORETURN
;
#else
/* Fatal error in PNG image of libpng - can't continue */
extern
PNG_EXPORT
(
void
,
png_err
)
PNGARG
((
png_structp
png_ptr
));
extern
PNG_EXPORT
(
void
,
png_err
)
PNGARG
((
png_structp
png_ptr
))
PNG_NORETURN
;
#endif
#ifndef PNG_NO_WARNINGS
...
...
@@ -3062,7 +3064,8 @@ PNG_EXPORT_VAR (png_byte FARDATA) png_zTXt[5];
/* Initialize png_ptr struct for reading, and allocate any other memory.
* (old interface - DEPRECATED - use png_create_read_struct instead).
*/
extern
PNG_EXPORT
(
void
,
png_read_init
)
PNGARG
((
png_structp
png_ptr
));
extern
PNG_EXPORT
(
void
,
png_read_init
)
PNGARG
((
png_structp
png_ptr
))
PNG_DEPRECATED
;
#undef png_read_init
#define png_read_init(png_ptr) png_read_init_3(&png_ptr, \
PNG_LIBPNG_VER_STRING, png_sizeof(png_struct));
...
...
@@ -3080,7 +3083,8 @@ extern PNG_EXPORT(void,png_read_init_2) PNGARG((png_structp png_ptr,
/* Initialize png_ptr struct for writing, and allocate any other memory.
* (old interface - DEPRECATED - use png_create_write_struct instead).
*/
extern
PNG_EXPORT
(
void
,
png_write_init
)
PNGARG
((
png_structp
png_ptr
));
extern
PNG_EXPORT
(
void
,
png_write_init
)
PNGARG
((
png_structp
png_ptr
))
PNG_DEPRECATED
;
#undef png_write_init
#define png_write_init(png_ptr) png_write_init_3(&png_ptr, \
PNG_LIBPNG_VER_STRING, png_sizeof(png_struct));
...
...
pngconf.h
浏览文件 @
86645a3f
...
...
@@ -1528,9 +1528,6 @@ typedef z_stream FAR * png_zstreamp;
* version 1.2.41.
*/
#ifdef __GNUC__
# ifndef PNG_DEPRECATED
# define PNG_DEPRECATED __attribute__((__deprecated__))
# endif
# ifndef PNG_USE_RESULT
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
# endif
...
...
@@ -1546,6 +1543,9 @@ typedef z_stream FAR * png_zstreamp;
* accessed from within the library, therefore should be empty during
* a library build.
*/
# ifndef PNG_DEPRECATED
# define PNG_DEPRECATED __attribute__((__deprecated__))
# endif
# ifndef PNG_DEPSTRUCT
# define PNG_DEPSTRUCT __attribute__((__deprecated__))
# endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录