Debian Codegraph @

src/image-io/tiff.c

raw ◀ ▶
1 Debian patch touch this file
1 /*
2 * tiff.c - just a couple of functions that are neither loading nor saving
3 */
4
5 #include "../base/mdjvucfg.h"
6
•7 #ifdef HAVE_LIBTIFF
8 #include <tiffio.h>
9 #define MDJVU_USE_TIFFIO
10 #endif
11
12 #include <minidjvu/minidjvu.h>
13 #include <stdlib.h>
14
15 MDJVU_IMPLEMENT int mdjvu_have_tiff_support(void)
16 {
•17 #ifdef HAVE_LIBTIFF
18 return 1;
19 #else
20 return 0;
21 #endif
22 }
23
24 MDJVU_IMPLEMENT void mdjvu_disable_tiff_warnings(void)
25 {
•26 #ifdef HAVE_LIBTIFF
27 TIFFSetWarningHandler(NULL);
28 #endif
29 }