X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fio-libpng.c;h=e62e5ebae34a105fd25ced94506718edfb20a7d9;hb=0ca8c151f5afe1680e98f3bfbe9d5c752d8a2924;hp=2095065f189a9c4a198697b3c90081d230a627b2;hpb=bf5edbdd5b56a0d2e239e96dd476c7a9a562506a;p=libucw.git diff --git a/images/io-libpng.c b/images/io-libpng.c index 2095065f..e62e5eba 100644 --- a/images/io-libpng.c +++ b/images/io-libpng.c @@ -9,13 +9,13 @@ #undef LOCAL_DEBUG -#include "lib/lib.h" -#include "lib/mempool.h" -#include "lib/fastbuf.h" -#include "images/images.h" -#include "images/error.h" -#include "images/color.h" -#include "images/io-main.h" +#include +#include +#include +#include +#include +#include +#include #include #include @@ -201,7 +201,7 @@ libpng_read_data(struct image_io *io) } uns read_flags = io->flags; - + /* Apply transformations */ if (rd->bit_depth == 16) png_set_strip_16(rd->png_ptr); @@ -254,7 +254,7 @@ libpng_read_data(struct image_io *io) read_flags = (read_flags & IMAGE_CHANNELS_FORMAT) | IMAGE_ALPHA; else png_set_strip_alpha(rd->png_ptr); - } + } break; case PNG_COLOR_TYPE_RGB: if ((read_flags & IMAGE_COLOR_SPACE) == COLOR_SPACE_GRAYSCALE)