diff options
| author | Antonin Descampe <antonin@gmail.com> | 2011-03-20 22:45:24 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2011-03-20 22:45:24 +0000 |
| commit | 19f9147e1076d83dd1111609ca93a01085dbfb4f (patch) | |
| tree | 8ba9fe2ac562b474f627c3ae8c90eefb7d0435a3 /codec/convert.c | |
| parent | 6bda73eeb2134963f64c3d67fdd11c1304cb14f9 (diff) | |
Removed the libs directory containing win32 compiled versions of libpng, libtiff and liblcms. Added a thirdparty directory to include main source files of libtiff, libpng, libz and liblcms to enable support of these formats in the codec executables. CMake will try to statically build these libraries if they are not found on the system. Note that these third party libraries are not required to build libopenjpeg (which has no dependencies).
Diffstat (limited to 'codec/convert.c')
| -rw-r--r-- | codec/convert.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/codec/convert.c b/codec/convert.c index 088a5c58..47c29931 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -44,19 +44,12 @@ #endif #ifdef HAVE_LIBTIFF -#ifdef _WIN32 -#include "../libs/libtiff/tiffio.h" -#else #include <tiffio.h> -#endif /* _WIN32 */ #endif /* HAVE_LIBTIFF */ #ifdef HAVE_LIBPNG -#ifdef _WIN32 -#include "../libs/png/png.h" -#else +#include <zlib.h> #include <png.h> -#endif /* _WIN32 */ #endif /* HAVE_LIBPNG */ #include "../libopenjpeg/openjpeg.h" @@ -1515,7 +1508,7 @@ typedef struct tiff_infoheader{ int imagetotif(opj_image_t * image, const char *outfile) { int width, height, imgsize; int bps,index,adjust = 0; - int last_i=0; + unsigned int last_i=0; TIFF *tif; tdata_t buf; tstrip_t strip; |
