[libpng16] Remove whitespace at end of lines

This commit is contained in:
John Bowler
2012-03-02 13:13:15 -06:00
committed by Glenn Randers-Pehrson
parent a0ddf0b5f2
commit 6f237b6bf0
63 changed files with 558 additions and 1069 deletions

View File

@@ -103,7 +103,7 @@ print_pixel(png_structp png_ptr, png_infop info_ptr, png_const_bytep row,
index < num_trans ? trans_alpha[index] : 255);
else /* no transparency */
printf("INDEXED %u = %d %d %d\n", index,
printf("INDEXED %u = %d %d %d\n", index,
palette[index].red, palette[index].green,
palette[index].blue);
}

View File

@@ -34,7 +34,7 @@ int main(int argc, const char **argv)
if (png_image_begin_read_from_file(&image, argv[1]))
{
png_bytep buffer;
/* Change this to try different formats! */
image.format = PNG_FORMAT_RGBA;

0
contrib/libtests/gentests.sh Executable file → Normal file
View File

View File

@@ -2506,7 +2506,7 @@ cmppixel(Transform *transform, png_const_voidp in, png_const_voidp out,
errmsg = NULL;
{
int err_a = abs(pixel_calc.a-pixel_out.a);
if (err_a > transform->error[3])
{
/* If accumulating check the components too */

View File

@@ -1675,7 +1675,7 @@ static CIE_color
white_point(PNG_CONST color_encoding *encoding)
{
CIE_color white;
white.X = encoding->red.X + encoding->green.X + encoding->blue.X;
white.Y = encoding->red.Y + encoding->green.Y + encoding->blue.Y;
white.Z = encoding->red.Z + encoding->green.Z + encoding->blue.Z;

View File

@@ -239,7 +239,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
get_token(pnm_file, maxval_token);
sscanf (maxval_token, "%lu", &ul_maxval);
maxval = (png_uint_32) ul_maxval;
if (maxval <= 1)
bit_depth = 1;
else if (maxval <= 3)

View File

@@ -17,7 +17,7 @@ void PngFileInitialize (HWND hwnd) ;
BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
int iWidth, int iHeight, png_color BkgColor);