Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
73904f52
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
73904f52
编写于
5月 15, 2011
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Minor revisions to comments on pngstruct.h and pngvalid.c
上级
0e128dfa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
pngstruct.h
pngstruct.h
+1
-1
pngvalid.c
pngvalid.c
+8
-8
未找到文件。
pngstruct.h
浏览文件 @
73904f52
...
@@ -111,7 +111,7 @@ struct png_struct_def
...
@@ -111,7 +111,7 @@ struct png_struct_def
png_bytep
avg_row
;
/* buffer to save "avg" row when filtering */
png_bytep
avg_row
;
/* buffer to save "avg" row when filtering */
png_bytep
paeth_row
;
/* buffer to save "Paeth" row when filtering */
png_bytep
paeth_row
;
/* buffer to save "Paeth" row when filtering */
png_row_info
row_info
;
/* used for transformation routines */
png_row_info
row_info
;
/* used for transformation routines */
png_size_t
info_rowbytes
;
/* Add
ing
in 1.5.3: cache of updated row bytes */
png_size_t
info_rowbytes
;
/* Add
ed
in 1.5.3: cache of updated row bytes */
png_uint_32
idat_size
;
/* current IDAT size for read */
png_uint_32
idat_size
;
/* current IDAT size for read */
png_uint_32
crc
;
/* current chunk CRC value */
png_uint_32
crc
;
/* current chunk CRC value */
...
...
pngvalid.c
浏览文件 @
73904f52
...
@@ -534,7 +534,7 @@ store_pool_mark(png_bytep mark)
...
@@ -534,7 +534,7 @@ store_pool_mark(png_bytep mark)
make_four_random_bytes
(
store_seed
,
mark
);
make_four_random_bytes
(
store_seed
,
mark
);
}
}
/* Use this for random 32 bit values
,
this function makes sure the result is
/* Use this for random 32 bit values
;
this function makes sure the result is
* non-zero.
* non-zero.
*/
*/
static
png_uint_32
static
png_uint_32
...
@@ -2277,7 +2277,7 @@ bit_size(png_structp pp, png_byte colour_type, png_byte bit_depth)
...
@@ -2277,7 +2277,7 @@ bit_size(png_structp pp, png_byte colour_type, png_byte bit_depth)
#define TRANSFORM_ROWMAX (TRANSFORM_WIDTH*8U)
#define TRANSFORM_ROWMAX (TRANSFORM_WIDTH*8U)
#define SIZE_ROWMAX (16*8U)
/* 16 pixels, max 8 bytes each - 128 bytes */
#define SIZE_ROWMAX (16*8U)
/* 16 pixels, max 8 bytes each - 128 bytes */
#define STANDARD_ROWMAX TRANSFORM_ROWMAX
/* The larger of the two */
#define STANDARD_ROWMAX TRANSFORM_ROWMAX
/* The larger of the two */
#define SIZE_HEIGHTMAX 16
/* Maxium range of size images */
#define SIZE_HEIGHTMAX 16
/* Maxi
m
um range of size images */
static
size_t
static
size_t
transform_rowsize
(
png_structp
pp
,
png_byte
colour_type
,
png_byte
bit_depth
)
transform_rowsize
(
png_structp
pp
,
png_byte
colour_type
,
png_byte
bit_depth
)
...
@@ -2674,7 +2674,7 @@ deinterlace_row(png_bytep buffer, png_const_bytep row,
...
@@ -2674,7 +2674,7 @@ deinterlace_row(png_bytep buffer, png_const_bytep row,
}
}
}
}
/* Build a single row for the 'size' test images
,
this fills in only the
/* Build a single row for the 'size' test images
;
this fills in only the
* first bit_width bits of the sample row.
* first bit_width bits of the sample row.
*/
*/
static
void
static
void
...
@@ -2777,7 +2777,7 @@ make_size_image(png_store* PNG_CONST ps, png_byte PNG_CONST colour_type,
...
@@ -2777,7 +2777,7 @@ make_size_image(png_store* PNG_CONST ps, png_byte PNG_CONST colour_type,
png_byte
tempRow
[
SIZE_ROWMAX
];
png_byte
tempRow
[
SIZE_ROWMAX
];
/* If do_interlace *and* the image is interlaced we
/* If do_interlace *and* the image is interlaced we
* need a reduced interlace row
,
this may be reduced
* need a reduced interlace row
;
this may be reduced
* to empty.
* to empty.
*/
*/
if
(
do_interlace
&&
interlace_type
==
PNG_INTERLACE_ADAM7
)
if
(
do_interlace
&&
interlace_type
==
PNG_INTERLACE_ADAM7
)
...
@@ -2951,7 +2951,7 @@ make_error(png_store* volatile ps, png_byte PNG_CONST colour_type,
...
@@ -2951,7 +2951,7 @@ make_error(png_store* volatile ps, png_byte PNG_CONST colour_type,
if
(
colour_type
==
3
)
/* palette */
if
(
colour_type
==
3
)
/* palette */
init_standard_palette
(
ps
,
pp
,
pi
,
1U
<<
bit_depth
,
0
/*do tRNS*/
);
init_standard_palette
(
ps
,
pp
,
pi
,
1U
<<
bit_depth
,
0
/*do tRNS*/
);
/* Time for a few errors
,
these are in various optional chunks, the
/* Time for a few errors
;
these are in various optional chunks, the
* standard tests test the standard chunks pretty well.
* standard tests test the standard chunks pretty well.
*/
*/
# define exception__prev exception_prev_1
# define exception__prev exception_prev_1
...
@@ -3172,7 +3172,7 @@ perform_formatting_test(png_store *volatile ps)
...
@@ -3172,7 +3172,7 @@ perform_formatting_test(png_store *volatile ps)
* requirement that the pointer to the first member of a structure must be the
* requirement that the pointer to the first member of a structure must be the
* same as the pointer to the structure. This allows us to reuse standard_
* same as the pointer to the structure. This allows us to reuse standard_
* functions in the gamma test code; something that could not be done with
* functions in the gamma test code; something that could not be done with
* nested funtions!
* nested fun
c
tions!
*/
*/
typedef
struct
standard_display
typedef
struct
standard_display
{
{
...
@@ -4171,7 +4171,7 @@ image_pixel_convert_PLTE(image_pixel *this)
...
@@ -4171,7 +4171,7 @@ image_pixel_convert_PLTE(image_pixel *this)
}
}
}
}
/* Add an alpha channel
, this will glom in
the tRNS information because tRNS is
/* Add an alpha channel
; this will import
the tRNS information because tRNS is
* not valid in an alpha image. The bit depth will invariably be set to at
* not valid in an alpha image. The bit depth will invariably be set to at
* least 8. Palette images will be converted to alpha (using the above API).
* least 8. Palette images will be converted to alpha (using the above API).
*/
*/
...
@@ -5679,7 +5679,7 @@ perform_transform_test(png_modifier *pm)
...
@@ -5679,7 +5679,7 @@ perform_transform_test(png_modifier *pm)
size_t
pos
=
base_pos
;
size_t
pos
=
base_pos
;
PNG_CONST
image_transform
*
list
=
0
;
PNG_CONST
image_transform
*
list
=
0
;
/* 'max' is currently hardwired to '1'
,
this should be settable on the
/* 'max' is currently hardwired to '1'
;
this should be settable on the
* command line.
* command line.
*/
*/
counter
=
image_transform_add
(
&
list
,
1
/*max*/
,
counter
,
counter
=
image_transform_add
(
&
list
,
1
/*max*/
,
counter
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录