提交 8501129c 编写于 作者: G Glenn Randers-Pehrson

[libpng15] Removed some "#if 0" blocks of test code that remained in pngrutil.c

上级 3706d730
......@@ -3503,19 +3503,12 @@ png_read_filter_row_sub(png_row_infop row_info, png_bytep row,
png_size_t istop = row_info->rowbytes;
unsigned int bpp = (row_info->pixel_depth + 7) >> 3;
png_bytep rp = row + bpp;
#if 0
png_bytep lp = row;
#endif
PNG_UNUSED(prev_row)
for (i = bpp; i < istop; i++)
{
#if 0
*rp = (png_byte)(((int)(*rp) + (int)(*lp++)) & 0xff);
#else
*rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff);
#endif
rp++;
}
}
......@@ -3543,9 +3536,6 @@ png_read_filter_row_avg(png_row_infop row_info, png_bytep row,
png_size_t i;
png_bytep rp = row;
png_const_bytep pp = prev_row;
#if 0
png_bytep lp = row;
#endif
unsigned int bpp = (row_info->pixel_depth + 7) >> 3;
png_size_t istop = row_info->rowbytes - bpp;
......@@ -3560,11 +3550,7 @@ png_read_filter_row_avg(png_row_infop row_info, png_bytep row,
for (i = 0; i < istop; i++)
{
*rp = (png_byte)(((int)(*rp) +
#if 0
(int)(*pp++ + *lp++) / 2 ) & 0xff);
#else
(int)(*pp++ + *(rp-bpp)) / 2 ) & 0xff);
#endif
rp++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册