Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bda0a8b

Browse files
committed
trivial: remove trailing whitespace from source code
svn path=/branches/v0_98_5_maint/; revision=7029
1 parent bde58aa commit bda0a8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/_png.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ _png_module::read_png(const Py::Tuple& args) {
214214
png_uint_32 height = info_ptr->height;
215215

216216
int bit_depth = info_ptr->bit_depth;
217-
217+
218218
// Unpack 1, 2, and 4-bit images
219219
if (bit_depth < 8)
220220
png_set_packing(png_ptr);
@@ -231,7 +231,7 @@ _png_module::read_png(const Py::Tuple& args) {
231231
// Convert palletes to full RGB
232232
if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
233233
png_set_palette_to_rgb(png_ptr);
234-
234+
235235
// If there's an alpha channel convert gray to RGB
236236
if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
237237
png_set_gray_to_rgb(png_ptr);
@@ -262,7 +262,7 @@ _png_module::read_png(const Py::Tuple& args) {
262262
dimensions[2] = 1; //Greyscale images
263263
//For gray, return an x by y array, not an x by y by 1
264264
int num_dims = (info_ptr->color_type & PNG_COLOR_MASK_COLOR) ? 3 : 2;
265-
265+
266266
double max_value = (1 << ((bit_depth < 8) ? 8 : bit_depth)) - 1;
267267
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNew(num_dims, dimensions, PyArray_FLOAT);
268268

@@ -283,7 +283,7 @@ _png_module::read_png(const Py::Tuple& args) {
283283
}
284284
}
285285
}
286-
286+
287287
//free the png memory
288288
png_read_end(png_ptr, info_ptr);
289289
png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);

0 commit comments

Comments
 (0)