Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
882340c9
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
882340c9
编写于
3月 13, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Clean up indentation of comments in pngconf.h
上级
c44253fa
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
28 addition
and
26 deletion
+28
-26
pngconf.h
pngconf.h
+28
-26
未找到文件。
pngconf.h
浏览文件 @
882340c9
...
@@ -136,7 +136,8 @@
...
@@ -136,7 +136,8 @@
#endif
#endif
/* Enabled by default in 1.2.0. You can disable this if you don't need to
/* Enabled by default in 1.2.0. You can disable this if you don't need to
support PNGs that are embedded in MNG datastreams */
* support PNGs that are embedded in MNG datastreams
*/
#ifndef PNG_NO_MNG_FEATURES
#ifndef PNG_NO_MNG_FEATURES
# ifndef PNG_MNG_FEATURES_SUPPORTED
# ifndef PNG_MNG_FEATURES_SUPPORTED
# define PNG_MNG_FEATURES_SUPPORTED
# define PNG_MNG_FEATURES_SUPPORTED
...
@@ -393,11 +394,11 @@
...
@@ -393,11 +394,11 @@
#endif
#endif
#ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
#ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
/* Support for compiler specific function attributes. These are used
/* Support for compiler specific function attributes. These are used
* so that where compiler support is available incorrect use of API
* so that where compiler support is available incorrect use of API
* functions in png.h will generate compiler warnings. Added at libpng
* functions in png.h will generate compiler warnings. Added at libpng
* version 1.2.41.
* version 1.2.41.
*/
*/
# ifdef __GNUC__
# ifdef __GNUC__
# ifndef PNG_USE_RESULT
# ifndef PNG_USE_RESULT
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
...
@@ -676,7 +677,7 @@
...
@@ -676,7 +677,7 @@
# define PNG_READ_INTERLACING_SUPPORTED
# define PNG_READ_INTERLACING_SUPPORTED
/* PNG_NO_SEQUENTIAL_READ_SUPPORTED is deprecated. */
/* PNG_NO_SEQUENTIAL_READ_SUPPORTED is deprecated. */
# if !defined(PNG_NO_SEQUENTIAL_READ) && \
# if !defined(PNG_NO_SEQUENTIAL_READ) && \
!defined(PNG_SEQUENTIAL_READ_SUPPORTED) && \
!defined(PNG_SEQUENTIAL_READ_SUPPORTED) && \
!defined(PNG_NO_SEQUENTIAL_READ_SUPPORTED)
!defined(PNG_NO_SEQUENTIAL_READ_SUPPORTED)
...
@@ -685,7 +686,7 @@
...
@@ -685,7 +686,7 @@
# ifndef PNG_NO_READ_COMPOSITE_NODIV
# ifndef PNG_NO_READ_COMPOSITE_NODIV
# ifndef PNG_NO_READ_COMPOSITED_NODIV
/* libpng-1.0.x misspelling */
# ifndef PNG_NO_READ_COMPOSITED_NODIV
/* libpng-1.0.x misspelling */
/* well tested on Intel, SGI */
/* well tested on Intel, SGI */
# define PNG_READ_COMPOSITE_NODIV_SUPPORTED
# define PNG_READ_COMPOSITE_NODIV_SUPPORTED
# endif
# endif
# endif
# endif
...
@@ -744,7 +745,7 @@
...
@@ -744,7 +745,7 @@
!defined(PNG_WRITE_INTERLACING_SUPPORTED)
!defined(PNG_WRITE_INTERLACING_SUPPORTED)
/* This is not required for PNG-compliant encoders, but can cause
/* This is not required for PNG-compliant encoders, but can cause
* trouble if left undefined
* trouble if left undefined
*/
*/
# define PNG_WRITE_INTERLACING_SUPPORTED
# define PNG_WRITE_INTERLACING_SUPPORTED
# endif
# endif
...
@@ -891,7 +892,6 @@
...
@@ -891,7 +892,6 @@
#endif
#endif
/* Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING */
/* Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING */
#if !defined(PNG_NO_POINTER_INDEXING) && \
#if !defined(PNG_NO_POINTER_INDEXING) && \
!defined(PNG_POINTER_INDEXING_SUPPORTED)
!defined(PNG_POINTER_INDEXING_SUPPORTED)
# define PNG_POINTER_INDEXING_SUPPORTED
# define PNG_POINTER_INDEXING_SUPPORTED
...
@@ -1006,8 +1006,11 @@
...
@@ -1006,8 +1006,11 @@
# define PNG_zTXt_SUPPORTED
# define PNG_zTXt_SUPPORTED
# endif
# endif
# ifndef PNG_NO_READ_OPT_PLTE
# ifndef PNG_NO_READ_OPT_PLTE
# define PNG_READ_OPT_PLTE_SUPPORTED
/* only affects support of the */
/* This only affects support of the optional PLTE chunk in RGB and RGBA
# endif
/* optional PLTE chunk in RGB and RGBA images */
* images.
*/
# define PNG_READ_OPT_PLTE_SUPPORTED
# endif
# if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
# if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
defined(PNG_READ_zTXt_SUPPORTED)
defined(PNG_READ_zTXt_SUPPORTED)
# define PNG_READ_TEXT_SUPPORTED
# define PNG_READ_TEXT_SUPPORTED
...
@@ -1164,8 +1167,8 @@
...
@@ -1164,8 +1167,8 @@
# ifdef PNG_WRITE_tIME_SUPPORTED
# ifdef PNG_WRITE_tIME_SUPPORTED
# ifndef PNG_NO_CONVERT_tIME
# ifndef PNG_NO_CONVERT_tIME
/* The "tm" structure is not supported on WindowsCE */
# ifndef _WIN32_WCE
# ifndef _WIN32_WCE
/* The "tm" structure is not supported on WindowsCE */
# ifndef PNG_CONVERT_tIME_SUPPORTED
# ifndef PNG_CONVERT_tIME_SUPPORTED
# define PNG_CONVERT_tIME_SUPPORTED
# define PNG_CONVERT_tIME_SUPPORTED
# endif
# endif
...
@@ -1194,9 +1197,8 @@
...
@@ -1194,9 +1197,8 @@
# endif
# endif
#endif
/* PNG_WRITE_SUPPORTED */
#endif
/* PNG_WRITE_SUPPORTED */
/* Turn this off to disable png_read_png() and
/* Turn this off to disable png_read_png() and png_write_png() and
* png_write_png() and leave the row_pointers member
* leave the row_pointers member out of the info structure.
* out of the info structure.
*/
*/
#ifndef PNG_NO_INFO_IMAGE
#ifndef PNG_NO_INFO_IMAGE
# define PNG_INFO_IMAGE_SUPPORTED
# define PNG_INFO_IMAGE_SUPPORTED
...
@@ -1228,9 +1230,9 @@ typedef short png_int_16;
...
@@ -1228,9 +1230,9 @@ typedef short png_int_16;
typedef
unsigned
char
png_byte
;
typedef
unsigned
char
png_byte
;
#ifdef PNG_NO_SIZE_T
#ifdef PNG_NO_SIZE_T
typedef
unsigned
int
png_size_t
;
typedef
unsigned
int
png_size_t
;
#else
#else
typedef
size_t
png_size_t
;
typedef
size_t
png_size_t
;
#endif
#endif
#define png_sizeof(x) sizeof(x)
#define png_sizeof(x) sizeof(x)
...
@@ -1252,7 +1254,7 @@ typedef unsigned char png_byte;
...
@@ -1252,7 +1254,7 @@ typedef unsigned char png_byte;
# else
# else
# define LDATA 0
# define LDATA 0
# endif
# endif
/* GRR: why is Cygwin in here? Cygwin is not Borland C... */
/* GRR: why is Cygwin in here? Cygwin is not Borland C... */
# if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
# if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
# define PNG_MAX_MALLOC_64K
# define PNG_MAX_MALLOC_64K
# if (LDATA != 1)
# if (LDATA != 1)
...
@@ -1311,7 +1313,7 @@ typedef char FAR * png_charp;
...
@@ -1311,7 +1313,7 @@ typedef char FAR * png_charp;
typedef
png_fixed_point
FAR
*
png_fixed_point_p
;
typedef
png_fixed_point
FAR
*
png_fixed_point_p
;
#ifndef PNG_NO_STDIO
#ifndef PNG_NO_STDIO
typedef
FILE
*
png_FILE_p
;
typedef
FILE
*
png_FILE_p
;
#endif
#endif
#ifdef PNG_FLOATING_POINT_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
...
@@ -1394,12 +1396,12 @@ typedef char FAR * FAR * FAR * png_charppp;
...
@@ -1394,12 +1396,12 @@ typedef char FAR * FAR * FAR * png_charppp;
# define png_snprintf6 snprintf
# define png_snprintf6 snprintf
# endif
# endif
# else
# else
/* You don't have or don't want to use snprintf(). Caution: Using
/* You don't have or don't want to use snprintf(). Caution: Using
* sprintf instead of snprintf exposes your application to accidental
* sprintf instead of snprintf exposes your application to accidental
* or malevolent buffer overflows. If you don't have snprintf()
* or malevolent buffer overflows. If you don't have snprintf()
* as a general rule you should provide one (you can get one from
* as a general rule you should provide one (you can get one from
* Portable OpenSSH).
* Portable OpenSSH).
*/
*/
# define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
# define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
# define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
# define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
# define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
# define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录