diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-07-13 14:43:42 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-07-13 14:43:42 -0500 |
commit | 192e92d6818846f49894e5a9f038150d3e3c5872 (patch) | |
tree | 3825b78924c712052af225221e73de355223ba1e /example.c | |
parent | 1b9f4817c804f72ddd97a573114e770d1879382c (diff) | |
download | libpng-192e92d6818846f49894e5a9f038150d3e3c5872.tar.gz |
[libpng16] Fixed some indentation to comply with our coding style.
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -375,7 +375,7 @@ void read_png(FILE *fp, int sig_read) /* File is already open */ * low byte. */ #ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED - png_set_scale_16(png_ptr); + png_set_scale_16(png_ptr); #else png_set_strip_16(png_ptr); #endif @@ -383,12 +383,12 @@ void read_png(FILE *fp, int sig_read) /* File is already open */ /* Strip alpha bytes from the input data without combining with the * background (not recommended). */ - png_set_strip_alpha(png_ptr); + png_set_strip_alpha(png_ptr); /* Extract multiple pixels with bit depths of 1, 2, and 4 from a single * byte into separate bytes (useful for paletted and grayscale images). */ - png_set_packing(png_ptr); + png_set_packing(png_ptr); /* Change the order of packed pixels to least significant bit first * (not useful if you are using png_set_packing). */ @@ -988,11 +988,11 @@ void write_png(char *file_name /* , ... other image information ... */) png_bytep row_pointers[height]; if (height > PNG_UINT_32_MAX/(sizeof (png_bytep))) - png_error (png_ptr, "Image is too tall to process in memory"); + png_error (png_ptr, "Image is too tall to process in memory"); /* Set up pointers into your "image" byte array */ for (k = 0; k < height; k++) - row_pointers[k] = image + k*width*bytes_per_pixel; + row_pointers[k] = image + k*width*bytes_per_pixel; /* One of the following output methods is REQUIRED */ |