Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
d4df36c7
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,发现更多精彩内容 >>
提交
d4df36c7
编写于
3月 06, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Fixed indentation of CPP directives in the header files
with the help of "cppi".
上级
a565f0e2
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
534 addition
and
533 deletion
+534
-533
png.h
png.h
+60
-60
pngconf.h
pngconf.h
+399
-399
pngpriv.h
pngpriv.h
+75
-74
未找到文件。
png.h
浏览文件 @
d4df36c7
...
...
@@ -387,7 +387,7 @@
#ifndef PNG_VERSION_INFO_ONLY
/* Include the compression library's header */
#include "zlib.h"
#
include "zlib.h"
#endif
/* Include all user configurable info, including optional assembler routines */
...
...
@@ -437,7 +437,7 @@ extern "C" {
/* Version information for C files, stored in png.c. This had better match
* the version above.
*/
#define png_libpng_ver png_get_header_ver(NULL)
#
define png_libpng_ver png_get_header_ver(NULL)
#endif
/* PNG_NO_EXTERN */
...
...
@@ -526,13 +526,13 @@ typedef struct png_text_struct
png_charp
text
;
/* comment, may be an empty string (ie "")
or a NULL pointer */
png_size_t
text_length
;
/* length of the text string */
#ifdef PNG_iTXt_SUPPORTED
#
ifdef PNG_iTXt_SUPPORTED
png_size_t
itxt_length
;
/* length of the itxt string */
png_charp
lang
;
/* language code, 0-79 characters
or a NULL pointer */
png_charp
lang_key
;
/* keyword translated UTF-8 string, 0 or more
chars or a NULL pointer */
#endif
#
endif
}
png_text
;
typedef
png_text
FAR
*
png_textp
;
typedef
png_text
FAR
*
FAR
*
png_textpp
;
...
...
@@ -593,7 +593,7 @@ typedef png_unknown_chunk FAR * FAR * png_unknown_chunkpp;
* while building libpng.
*/
#ifdef PNG_EXPOSE_INTERNAL_STRUCTURES
#include "pnginfo.h"
#
include "pnginfo.h"
#endif
typedef
struct
png_info_def
png_info
;
...
...
@@ -790,7 +790,7 @@ typedef void (*png_free_ptr) PNGARG((png_structp, png_voidp));
* while building libpng.
*/
#ifdef PNG_EXPOSE_INTERNAL_STRUCTURES
#include "pngstruct.h"
#
include "pngstruct.h"
#endif
/* This triggers a compiler error in png.c, if png.c and png.h
...
...
@@ -955,10 +955,10 @@ extern PNG_EXPORT(void,png_set_gray_to_rgb) PNGARG((png_structp png_ptr));
#ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED
/* Reduce RGB to grayscale. */
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_rgb_to_gray
)
PNGARG
((
png_structp
png_ptr
,
int
error_action
,
double
red
,
double
green
));
#endif
#
endif
extern
PNG_EXPORT
(
void
,
png_set_rgb_to_gray_fixed
)
PNGARG
((
png_structp
png_ptr
,
int
error_action
,
png_fixed_point
red
,
png_fixed_point
green
));
extern
PNG_EXPORT
(
png_byte
,
png_get_rgb_to_gray_status
)
PNGARG
((
png_structp
...
...
@@ -987,8 +987,8 @@ extern PNG_EXPORT(void,png_set_invert_alpha) PNGARG((png_structp png_ptr));
extern
PNG_EXPORT
(
void
,
png_set_filler
)
PNGARG
((
png_structp
png_ptr
,
png_uint_32
filler
,
int
flags
));
/* The values of the PNG_FILLER_ defines should NOT be changed */
#define PNG_FILLER_BEFORE 0
#define PNG_FILLER_AFTER 1
#
define PNG_FILLER_BEFORE 0
#
define PNG_FILLER_AFTER 1
/* Add an alpha byte to 8-bit Gray or 24-bit RGB images. */
extern
PNG_EXPORT
(
void
,
png_set_add_alpha
)
PNGARG
((
png_structp
png_ptr
,
png_uint_32
filler
,
int
flags
));
...
...
@@ -1029,15 +1029,15 @@ extern PNG_EXPORT(void,png_set_invert_mono) PNGARG((png_structp png_ptr));
#ifdef PNG_READ_BACKGROUND_SUPPORTED
/* Handle alpha and tRNS by replacing with a background color. */
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_background
)
PNGARG
((
png_structp
png_ptr
,
png_color_16p
background_color
,
int
background_gamma_code
,
int
need_expand
,
double
background_gamma
));
#endif
#define PNG_BACKGROUND_GAMMA_UNKNOWN 0
#define PNG_BACKGROUND_GAMMA_SCREEN 1
#define PNG_BACKGROUND_GAMMA_FILE 2
#define PNG_BACKGROUND_GAMMA_UNIQUE 3
#
endif
#
define PNG_BACKGROUND_GAMMA_UNKNOWN 0
#
define PNG_BACKGROUND_GAMMA_SCREEN 1
#
define PNG_BACKGROUND_GAMMA_FILE 2
#
define PNG_BACKGROUND_GAMMA_UNIQUE 3
#endif
#ifdef PNG_READ_16_TO_8_SUPPORTED
...
...
@@ -1056,10 +1056,10 @@ extern PNG_EXPORT(void,png_set_dither) PNGARG((png_structp png_ptr,
#ifdef PNG_READ_GAMMA_SUPPORTED
/* Handle gamma correction. Screen_gamma=(display_exponent) */
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_gamma
)
PNGARG
((
png_structp
png_ptr
,
double
screen_gamma
,
double
default_file_gamma
));
#endif
#
endif
#endif
...
...
@@ -1217,11 +1217,11 @@ extern PNG_EXPORT(void,png_set_filter) PNGARG((png_structp png_ptr, int method,
* the weights and costs are set to 1.0, this degenerates the WEIGHTED method
* to the UNWEIGHTED method, but with added encoding time/computation.
*/
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_filter_heuristics
)
PNGARG
((
png_structp
png_ptr
,
int
heuristic_method
,
int
num_weights
,
png_doublep
filter_weights
,
png_doublep
filter_costs
));
#endif
#
endif
#endif
/* PNG_WRITE_WEIGHTED_FILTER_SUPPORTED */
/* Heuristic used for row filter selection. These defines should NOT be
...
...
@@ -1525,10 +1525,10 @@ extern PNG_EXPORT(png_uint_32, png_get_y_pixels_per_meter) PNGARG((png_structp
png_ptr
,
png_infop
info_ptr
));
/* Returns pixel aspect ratio, computed from pHYs chunk data. */
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
float
,
png_get_pixel_aspect_ratio
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
#endif
#
endif
/* Returns image x, y offset in pixels or microns, from oFFs chunk data. */
extern
PNG_EXPORT
(
png_int_32
,
png_get_x_offset_pixels
)
PNGARG
((
png_structp
...
...
@@ -1557,50 +1557,50 @@ extern PNG_EXPORT(void,png_set_bKGD) PNGARG((png_structp png_ptr,
#endif
#ifdef PNG_cHRM_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_cHRM
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
double
*
white_x
,
double
*
white_y
,
double
*
red_x
,
double
*
red_y
,
double
*
green_x
,
double
*
green_y
,
double
*
blue_x
,
double
*
blue_y
));
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
#
endif
#
ifdef PNG_FIXED_POINT_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_cHRM_fixed
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_fixed_point
*
int_white_x
,
png_fixed_point
*
int_white_y
,
png_fixed_point
*
int_red_x
,
png_fixed_point
*
int_red_y
,
png_fixed_point
*
int_green_x
,
png_fixed_point
*
int_green_y
,
png_fixed_point
*
int_blue_x
,
png_fixed_point
*
int_blue_y
));
#endif
#
endif
#endif
#ifdef PNG_cHRM_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_cHRM
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
double
white_x
,
double
white_y
,
double
red_x
,
double
red_y
,
double
green_x
,
double
green_y
,
double
blue_x
,
double
blue_y
));
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
#
endif
#
ifdef PNG_FIXED_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_cHRM_fixed
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_fixed_point
int_white_x
,
png_fixed_point
int_white_y
,
png_fixed_point
int_red_x
,
png_fixed_point
int_red_y
,
png_fixed_point
int_green_x
,
png_fixed_point
int_green_y
,
png_fixed_point
int_blue_x
,
png_fixed_point
int_blue_y
));
#endif
#
endif
#endif
#ifdef PNG_gAMA_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_gAMA
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
double
*
file_gamma
));
#endif
#
endif
extern
PNG_EXPORT
(
png_uint_32
,
png_get_gAMA_fixed
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_fixed_point
*
int_file_gamma
));
#endif
#ifdef PNG_gAMA_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_gAMA
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
double
file_gamma
));
#endif
#
endif
extern
PNG_EXPORT
(
void
,
png_set_gAMA_fixed
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_fixed_point
int_file_gamma
));
#endif
...
...
@@ -1755,27 +1755,27 @@ extern PNG_EXPORT(void,png_set_tRNS) PNGARG((png_structp png_ptr,
#endif
#ifdef PNG_sCAL_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_sCAL
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
int
*
unit
,
double
*
width
,
double
*
height
));
#else
#ifdef PNG_FIXED_POINT_SUPPORTED
#
else
#
ifdef PNG_FIXED_POINT_SUPPORTED
extern
PNG_EXPORT
(
png_uint_32
,
png_get_sCAL_s
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
int
*
unit
,
png_charpp
swidth
,
png_charpp
sheight
));
#endif
#endif
#
endif
#
endif
#endif
/* PNG_sCAL_SUPPORTED */
#ifdef PNG_sCAL_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_sCAL
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
int
unit
,
double
width
,
double
height
));
#else
#ifdef PNG_FIXED_POINT_SUPPORTED
#
else
#
ifdef PNG_FIXED_POINT_SUPPORTED
extern
PNG_EXPORT
(
void
,
png_set_sCAL_s
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
int
unit
,
png_charp
swidth
,
png_charp
sheight
));
#endif
#endif
#
endif
#
endif
#endif
/* PNG_sCAL_SUPPORTED || PNG_WRITE_sCAL_SUPPORTED */
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
...
...
@@ -1882,10 +1882,10 @@ png_infop info_ptr));
PNG_EXPORT
(
float
,
png_get_y_offset_inches
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
#ifdef PNG_pHYs_SUPPORTED
#
ifdef PNG_pHYs_SUPPORTED
PNG_EXPORT
(
png_uint_32
,
png_get_pHYs_dpi
)
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_uint_32
*
res_x
,
png_uint_32
*
res_y
,
int
*
unit_type
));
#endif
/* PNG_pHYs_SUPPORTED */
#
endif
/* PNG_pHYs_SUPPORTED */
#endif
/* PNG_INCH_CONVERSIONS && PNG_FLOATING_POINT_SUPPORTED */
/* Added in libpng-1.4.0 */
...
...
@@ -1896,15 +1896,15 @@ extern PNG_EXPORT(png_bytep,png_get_io_chunk_name)
PNGARG
((
png_structp
png_ptr
));
/* The flags returned by png_get_io_state() are the following: */
#define PNG_IO_NONE 0x0000
/* no I/O at this moment */
#define PNG_IO_READING 0x0001
/* currently reading */
#define PNG_IO_WRITING 0x0002
/* currently writing */
#define PNG_IO_SIGNATURE 0x0010
/* currently at the file signature */
#define PNG_IO_CHUNK_HDR 0x0020
/* currently at the chunk header */
#define PNG_IO_CHUNK_DATA 0x0040
/* currently at the chunk data */
#define PNG_IO_CHUNK_CRC 0x0080
/* currently at the chunk crc */
#define PNG_IO_MASK_OP 0x000f
/* current operation: reading/writing */
#define PNG_IO_MASK_LOC 0x00f0
/* current location: sig/hdr/data/crc */
#
define PNG_IO_NONE 0x0000
/* no I/O at this moment */
#
define PNG_IO_READING 0x0001
/* currently reading */
#
define PNG_IO_WRITING 0x0002
/* currently writing */
#
define PNG_IO_SIGNATURE 0x0010
/* currently at the file signature */
#
define PNG_IO_CHUNK_HDR 0x0020
/* currently at the chunk header */
#
define PNG_IO_CHUNK_DATA 0x0040
/* currently at the chunk data */
#
define PNG_IO_CHUNK_CRC 0x0080
/* currently at the chunk crc */
#
define PNG_IO_MASK_OP 0x000f
/* current operation: reading/writing */
#
define PNG_IO_MASK_LOC 0x00f0
/* current location: sig/hdr/data/crc */
#endif
/* ?PNG_IO_STATE_SUPPORTED */
/* Maintainer: Put new public prototypes here ^, in libpng.3, and project
...
...
@@ -1967,19 +1967,19 @@ extern PNG_EXPORT(png_bytep,png_get_io_chunk_name)
# define png_get_uint_16(buf) \
(((png_uint_32)(*(buf)) << 8) + \
((png_uint_32)(*((buf) + 1))))
#ifdef PNG_GET_INT_32_SUPPORTED
# define png_get_int_32(buf) \
#
ifdef PNG_GET_INT_32_SUPPORTED
#
define png_get_int_32(buf) \
(((png_int_32)(*(buf)) << 24) + \
((png_int_32)(*((buf) + 1)) << 16) + \
((png_int_32)(*((buf) + 2)) << 8) + \
((png_int_32)(*((buf) + 3))))
#endif
#
endif
#else
extern
PNG_EXPORT
(
png_uint_32
,
png_get_uint_32
)
PNGARG
((
png_bytep
buf
));
extern
PNG_EXPORT
(
png_uint_16
,
png_get_uint_16
)
PNGARG
((
png_bytep
buf
));
#ifdef PNG_GET_INT_32_SUPPORTED
#
ifdef PNG_GET_INT_32_SUPPORTED
extern
PNG_EXPORT
(
png_int_32
,
png_get_int_32
)
PNGARG
((
png_bytep
buf
));
#endif
#
endif
#endif
extern
PNG_EXPORT
(
png_uint_32
,
png_get_uint_31
)
PNGARG
((
png_structp
png_ptr
,
png_bytep
buf
));
...
...
pngconf.h
浏览文件 @
d4df36c7
此差异已折叠。
点击以展开。
pngpriv.h
浏览文件 @
d4df36c7
...
...
@@ -280,9 +280,9 @@ PNG_EXTERN void PNGAPI png_default_write_data PNGARG((png_structp png_ptr,
png_bytep
data
,
png_size_t
length
));
#ifdef PNG_WRITE_FLUSH_SUPPORTED
#ifdef PNG_STDIO_SUPPORTED
#
ifdef PNG_STDIO_SUPPORTED
PNG_EXTERN
void
PNGAPI
png_default_flush
PNGARG
((
png_structp
png_ptr
));
#endif
#
endif
#endif
/* Reset the CRC variable */
...
...
@@ -349,13 +349,13 @@ PNG_EXTERN void png_write_IDAT PNGARG((png_structp png_ptr, png_bytep data,
PNG_EXTERN
void
png_write_IEND
PNGARG
((
png_structp
png_ptr
));
#ifdef PNG_WRITE_gAMA_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
PNG_EXTERN
void
png_write_gAMA
PNGARG
((
png_structp
png_ptr
,
double
file_gamma
));
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
#
endif
#
ifdef PNG_FIXED_POINT_SUPPORTED
PNG_EXTERN
void
png_write_gAMA_fixed
PNGARG
((
png_structp
png_ptr
,
png_fixed_point
file_gamma
));
#endif
#
endif
#endif
#ifdef PNG_WRITE_sBIT_SUPPORTED
...
...
@@ -364,12 +364,12 @@ PNG_EXTERN void png_write_sBIT PNGARG((png_structp png_ptr, png_color_8p sbit,
#endif
#ifdef PNG_WRITE_cHRM_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
#
ifdef PNG_FLOATING_POINT_SUPPORTED
PNG_EXTERN
void
png_write_cHRM
PNGARG
((
png_structp
png_ptr
,
double
white_x
,
double
white_y
,
double
red_x
,
double
red_y
,
double
green_x
,
double
green_y
,
double
blue_x
,
double
blue_y
));
#endif
#
endif
PNG_EXTERN
void
png_write_cHRM_fixed
PNGARG
((
png_structp
png_ptr
,
png_fixed_point
int_white_x
,
png_fixed_point
int_white_y
,
png_fixed_point
int_red_x
,
png_fixed_point
int_red_y
,
png_fixed_point
...
...
@@ -459,15 +459,15 @@ PNG_EXTERN void png_write_tIME PNGARG((png_structp png_ptr,
#endif
#ifdef PNG_WRITE_sCAL_SUPPORTED
#if defined(PNG_FLOATING_POINT_SUPPORTED) && defined(PNG_STDIO_SUPPORTED)
#
if defined(PNG_FLOATING_POINT_SUPPORTED) && defined(PNG_STDIO_SUPPORTED)
PNG_EXTERN
void
png_write_sCAL
PNGARG
((
png_structp
png_ptr
,
int
unit
,
double
width
,
double
height
));
#else
#ifdef PNG_FIXED_POINT_SUPPORTED
#
else
#
ifdef PNG_FIXED_POINT_SUPPORTED
PNG_EXTERN
void
png_write_sCAL_s
PNGARG
((
png_structp
png_ptr
,
int
unit
,
png_charp
width
,
png_charp
height
));
#endif
#endif
#
endif
#
endif
#endif
/* Called when finished processing a row of data */
...
...
@@ -615,17 +615,17 @@ PNG_EXTERN void png_do_shift PNGARG((png_row_infop row_info, png_bytep row,
#endif
#ifdef PNG_READ_BACKGROUND_SUPPORTED
#ifdef PNG_READ_GAMMA_SUPPORTED
#
ifdef PNG_READ_GAMMA_SUPPORTED
PNG_EXTERN
void
png_do_background
PNGARG
((
png_row_infop
row_info
,
png_bytep
row
,
png_color_16p
trans_color
,
png_color_16p
background
,
png_color_16p
background_1
,
png_bytep
gamma_table
,
png_bytep
gamma_from_1
,
png_bytep
gamma_to_1
,
png_uint_16pp
gamma_16
,
png_uint_16pp
gamma_16_from_1
,
png_uint_16pp
gamma_16_to_1
,
int
gamma_shift
));
#else
#
else
PNG_EXTERN
void
png_do_background
PNGARG
((
png_row_infop
row_info
,
png_bytep
row
,
png_color_16p
trans_color
,
png_color_16p
background
));
#endif
#
endif
#endif
#ifdef PNG_READ_GAMMA_SUPPORTED
...
...
@@ -778,24 +778,24 @@ PNG_EXTERN void png_push_read_end PNGARG((png_structp png_ptr,
PNG_EXTERN
void
png_process_some_data
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
PNG_EXTERN
void
png_read_push_finish_row
PNGARG
((
png_structp
png_ptr
));
#ifdef PNG_READ_tEXt_SUPPORTED
#
ifdef PNG_READ_tEXt_SUPPORTED
PNG_EXTERN
void
png_push_handle_tEXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_uint_32
length
));
PNG_EXTERN
void
png_push_read_tEXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
#endif
#ifdef PNG_READ_zTXt_SUPPORTED
#
endif
#
ifdef PNG_READ_zTXt_SUPPORTED
PNG_EXTERN
void
png_push_handle_zTXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_uint_32
length
));
PNG_EXTERN
void
png_push_read_zTXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
#endif
#ifdef PNG_READ_iTXt_SUPPORTED
#
endif
#
ifdef PNG_READ_iTXt_SUPPORTED
PNG_EXTERN
void
png_push_handle_iTXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
,
png_uint_32
length
));
PNG_EXTERN
void
png_push_read_iTXt
PNGARG
((
png_structp
png_ptr
,
png_infop
info_ptr
));
#endif
#
endif
#endif
/* PNG_PROGRESSIVE_READ_SUPPORTED */
...
...
@@ -816,11 +816,11 @@ PNG_EXTERN int png_check_cHRM_fixed PNGARG((png_structp png_ptr,
#endif
#ifdef PNG_cHRM_SUPPORTED
#ifdef PNG_CHECK_cHRM_SUPPORTED
#
ifdef PNG_CHECK_cHRM_SUPPORTED
/* Added at libpng version 1.2.34 and 1.4.0 */
PNG_EXTERN
void
png_64bit_product
PNGARG
((
long
v1
,
long
v2
,
unsigned
long
*
hi_product
,
unsigned
long
*
lo_product
));
#endif
#
endif
#endif
/* Added at libpng version 1.4.0 */
...
...
@@ -847,60 +847,61 @@ extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,
* libpng yet, but more support will be added as needed.
*/
#ifdef PNG_DEBUG
#if (PNG_DEBUG > 0)
#if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
#include <crtdbg.h>
#if (PNG_DEBUG > 1)
#ifndef _DEBUG
# define _DEBUG
#endif
#ifndef png_debug
#define png_debug(l,m) _RPT0(_CRT_WARN,m PNG_STRING_NEWLINE)
#endif
#ifndef png_debug1
#define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m PNG_STRING_NEWLINE,p1)
#endif
#ifndef png_debug2
#define png_debug2(l,m,p1,p2) _RPT2(_CRT_WARN,m PNG_STRING_NEWLINE,p1,p2)
#endif
#endif
#else
/* PNG_DEBUG_FILE || !_MSC_VER */
#ifndef PNG_DEBUG_FILE
#define PNG_DEBUG_FILE stderr
#endif
/* PNG_DEBUG_FILE */
#if (PNG_DEBUG > 1)
# if (PNG_DEBUG > 0)
# if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
# include <crtdbg.h>
# if (PNG_DEBUG > 1)
# ifndef _DEBUG
# define _DEBUG
# endif
# ifndef png_debug
# define png_debug(l,m) _RPT0(_CRT_WARN,m PNG_STRING_NEWLINE)
# endif
# ifndef png_debug1
# define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m PNG_STRING_NEWLINE,p1)
# endif
# ifndef png_debug2
# define png_debug2(l,m,p1,p2) \
_RPT2(_CRT_WARN,m PNG_STRING_NEWLINE,p1,p2)
# endif
# endif
# else
/* PNG_DEBUG_FILE || !_MSC_VER */
# ifndef PNG_DEBUG_FILE
# define PNG_DEBUG_FILE stderr
# endif
/* PNG_DEBUG_FILE */
# if (PNG_DEBUG > 1)
/* Note: ["%s"m PNG_STRING_NEWLINE] probably does not work on
* non-ISO compilers
*/
# ifdef __STDC__
# ifndef png_debug
# define png_debug(l,m) \
#
ifdef __STDC__
#
ifndef png_debug
#
define png_debug(l,m) \
{ \
int num_tabs=l; \
fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \
}
# endif
# ifndef png_debug1
# define png_debug1(l,m,p1) \
#
endif
#
ifndef png_debug1
#
define png_debug1(l,m,p1) \
{ \
int num_tabs=l; \
fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \
}
# endif
# ifndef png_debug2
# define png_debug2(l,m,p1,p2) \
#
endif
#
ifndef png_debug2
#
define png_debug2(l,m,p1,p2) \
{ \
int num_tabs=l; \
fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \
}
# endif
# else
/* __STDC __ */
# ifndef png_debug
# define png_debug(l,m) \
#
endif
#
else
/* __STDC __ */
#
ifndef png_debug
#
define png_debug(l,m) \
{ \
int num_tabs=l; \
char format[256]; \
...
...
@@ -909,9 +910,9 @@ extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,
m,PNG_STRING_NEWLINE); \
fprintf(PNG_DEBUG_FILE,format); \
}
# endif
# ifndef png_debug1
# define png_debug1(l,m,p1) \
#
endif
#
ifndef png_debug1
#
define png_debug1(l,m,p1) \
{ \
int num_tabs=l; \
char format[256]; \
...
...
@@ -920,9 +921,9 @@ extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,
m,PNG_STRING_NEWLINE); \
fprintf(PNG_DEBUG_FILE,format,p1); \
}
# endif
# ifndef png_debug2
# define png_debug2(l,m,p1,p2) \
#
endif
#
ifndef png_debug2
#
define png_debug2(l,m,p1,p2) \
{ \
int num_tabs=l; \
char format[256]; \
...
...
@@ -931,21 +932,21 @@ extern void *png_far_to_near PNGARG((png_structp png_ptr,png_voidp ptr,
m,PNG_STRING_NEWLINE); \
fprintf(PNG_DEBUG_FILE,format,p1,p2); \
}
# endif
# endif
/* __STDC __ */
#endif
/* (PNG_DEBUG > 1) */
#
endif
#
endif
/* __STDC __ */
#
endif
/* (PNG_DEBUG > 1) */
#endif
/* _MSC_VER */
#endif
/* (PNG_DEBUG > 0) */
#
endif
/* _MSC_VER */
#
endif
/* (PNG_DEBUG > 0) */
#endif
/* PNG_DEBUG */
#ifndef png_debug
#define png_debug(l, m)
#
define png_debug(l, m)
#endif
#ifndef png_debug1
#define png_debug1(l, m, p1)
#
define png_debug1(l, m, p1)
#endif
#ifndef png_debug2
#define png_debug2(l, m, p1, p2)
#
define png_debug2(l, m, p1, p2)
#endif
/* Maintainer: Put new private prototypes here ^ and in libpngpf.3 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录