[devel] Imported from libpng-1.5.3beta05.tar

This commit is contained in:
Glenn Randers-Pehrson
2011-05-05 21:03:07 -05:00
parent c5bef946b1
commit e1018a5bbb
16 changed files with 55 additions and 49 deletions

View File

@@ -443,8 +443,8 @@ png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
* it is copied to. ep always points just beyond the end of the row, so
* the loop simply copies (channels-1) channels until sp reaches ep.
*
* at_start: 0 -- convert AG, XG, ARGB, XRGB, AAGG, XXGG, etc.
* : nonzero -- convert GA, GX, RGBA, RGBX, GGAA, RRGGBBXX, etc.
* at_start: 0 -- convert AG, XG, ARGB, XRGB, AAGG, XXGG, etc.
* nonzero -- convert GA, GX, RGBA, RGBX, GGAA, RRGGBBXX, etc.
*/
/* GA, GX, XG cases */
@@ -454,7 +454,7 @@ png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
{
if (at_start) /* Skip initial filler */
++sp;
else /* Skip initial channels and, for sp, the filler */
else /* Skip initial channel and, for sp, the filler */
sp += 2, ++dp;
/* For a 1 pixel wide image there is nothing to do */
@@ -466,9 +466,9 @@ png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
else if (row_info->bit_depth == 16)
{
if (at_start)
if (at_start) /* Skip initial filler */
sp += 2;
else
else /* Skip initial channel and, for sp, the filler */
sp += 4, dp += 2;
while (sp < ep)
@@ -506,9 +506,9 @@ png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
else if (row_info->bit_depth == 16)
{
if (at_start)
if (at_start) /* Skip initial filler */
sp += 2;
else
else /* Skip initial channels and, for sp, the filler */
sp += 8, dp += 6;
while (sp < ep)