Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
02a58af3
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,发现更多精彩内容 >>
提交
02a58af3
编写于
11月 09, 2009
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[master] Marked memory allocation function prototypes with PNG_ALLOCATED.
上级
86645a3f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
8 deletion
+10
-8
ANNOUNCE
ANNOUNCE
+1
-0
CHANGES
CHANGES
+1
-0
png.h
png.h
+8
-8
未找到文件。
ANNOUNCE
浏览文件 @
02a58af3
...
...
@@ -146,6 +146,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.
Marked memory allocation function prototypes with PNG_ALLOCATED.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
...
...
CHANGES
浏览文件 @
02a58af3
...
...
@@ -2577,6 +2577,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.
Marked memory allocation function prototypes with PNG_ALLOCATED.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
png.h
浏览文件 @
02a58af3
...
...
@@ -1557,12 +1557,12 @@ extern PNG_EXPORT(int,png_check_sig) PNGARG((png_bytep sig, int num)) PNG_DEPREC
/* Allocate and initialize png_ptr struct for reading, and any other memory. */
extern
PNG_EXPORT
(
png_structp
,
png_create_read_struct
)
PNGARG
((
png_const_charp
user_png_ver
,
png_voidp
error_ptr
,
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
));
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
))
PNG_ALLOCATED
;
/* Allocate and initialize png_ptr struct for writing, and any other memory */
extern
PNG_EXPORT
(
png_structp
,
png_create_write_struct
)
PNGARG
((
png_const_charp
user_png_ver
,
png_voidp
error_ptr
,
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
));
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
))
PNG_ALLOCATED
;
#ifdef PNG_WRITE_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_compression_buffer_size
)
...
...
@@ -1582,11 +1582,11 @@ extern PNG_EXPORT(int,png_reset_zstream) PNGARG((png_structp png_ptr));
extern
PNG_EXPORT
(
png_structp
,
png_create_read_struct_2
)
PNGARG
((
png_const_charp
user_png_ver
,
png_voidp
error_ptr
,
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
,
png_voidp
mem_ptr
,
png_malloc_ptr
malloc_fn
,
png_free_ptr
free_fn
));
png_malloc_ptr
malloc_fn
,
png_free_ptr
free_fn
))
PNG_ALLOCATED
;
extern
PNG_EXPORT
(
png_structp
,
png_create_write_struct_2
)
PNGARG
((
png_const_charp
user_png_ver
,
png_voidp
error_ptr
,
png_error_ptr
error_fn
,
png_error_ptr
warn_fn
,
png_voidp
mem_ptr
,
png_malloc_ptr
malloc_fn
,
png_free_ptr
free_fn
));
png_malloc_ptr
malloc_fn
,
png_free_ptr
free_fn
))
PNG_ALLOCATED
;
#endif
/* Write a PNG chunk - size, type, (optional) data, CRC. */
...
...
@@ -1606,7 +1606,7 @@ extern PNG_EXPORT(void,png_write_chunk_end) PNGARG((png_structp png_ptr));
/* Allocate and initialize the info structure */
extern
PNG_EXPORT
(
png_infop
,
png_create_info_struct
)
PNGARG
((
png_structp
png_ptr
));
PNGARG
((
png_structp
png_ptr
))
PNG_ALLOCATED
;
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
/* Initialize the info structure (old interface - DEPRECATED) */
...
...
@@ -2106,14 +2106,14 @@ extern PNG_EXPORT(void,png_progressive_combine_row) PNGARG((png_structp png_ptr,
#endif
/* PNG_PROGRESSIVE_READ_SUPPORTED */
extern
PNG_EXPORT
(
png_voidp
,
png_malloc
)
PNGARG
((
png_structp
png_ptr
,
png_uint_32
size
));
png_uint_32
size
))
PNG_ALLOCATED
;
#ifdef PNG_1_0_X
# define png_malloc_warn png_malloc
#else
/* Added at libpng version 1.2.4 */
extern
PNG_EXPORT
(
png_voidp
,
png_malloc_warn
)
PNGARG
((
png_structp
png_ptr
,
png_uint_32
size
));
png_uint_32
size
))
PNG_ALLOCATED
;
#endif
/* Frees a pointer allocated by png_malloc() */
...
...
@@ -2159,7 +2159,7 @@ extern PNG_EXPORT(void,png_data_freer) PNGARG((png_structp png_ptr,
#ifdef PNG_USER_MEM_SUPPORTED
extern
PNG_EXPORT
(
png_voidp
,
png_malloc_default
)
PNGARG
((
png_structp
png_ptr
,
png_uint_32
size
));
png_uint_32
size
))
PNG_ALLOCATED
;
extern
PNG_EXPORT
(
void
,
png_free_default
)
PNGARG
((
png_structp
png_ptr
,
png_voidp
ptr
));
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录