36#include <config_auto.h>
39#include "allheaders.h"
42#if !HAVE_LIBTIFF || !HAVE_LIBJPEG
45PIX * pixReadTiff(
const char *filename, l_int32 n)
47 return (
PIX *)ERROR_PTR(
"function not present", __func__, NULL);
52PIX * pixReadStreamTiff(FILE *fp, l_int32 n)
54 return (
PIX *)ERROR_PTR(
"function not present", __func__, NULL);
59l_ok pixWriteTiff(
const char *filename,
PIX *pix, l_int32 comptype,
60 const char *modestring)
62 return ERROR_INT(
"function not present", __func__, 1);
67l_ok pixWriteTiffCustom(
const char *filename,
PIX *pix, l_int32 comptype,
68 const char *modestring,
NUMA *natags,
71 return ERROR_INT(
"function not present", __func__, 1);
76l_ok pixWriteStreamTiff(FILE *fp,
PIX *pix, l_int32 comptype)
78 return ERROR_INT(
"function not present", __func__, 1);
83l_ok pixWriteStreamTiffWA(FILE *fp,
PIX *pix, l_int32 comptype,
86 return ERROR_INT(
"function not present", __func__, 1);
91PIX * pixReadFromMultipageTiff(
const char *filename,
size_t *poffset)
93 return (
PIX *)ERROR_PTR(
"function not present", __func__, NULL);
98PIXA * pixaReadMultipageTiff(
const char *filename)
100 return (
PIXA *)ERROR_PTR(
"function not present", __func__, NULL);
105l_ok pixaWriteMultipageTiff(
const char *filename,
PIXA *pixa)
107 return ERROR_INT(
"function not present", __func__, 1);
112l_ok writeMultipageTiff(
const char *dirin,
const char *substr,
115 return ERROR_INT(
"function not present", __func__, 1);
120l_ok writeMultipageTiffSA(
SARRAY *sa,
const char *fileout)
122 return ERROR_INT(
"function not present", __func__, 1);
127l_ok fprintTiffInfo(FILE *fpout,
const char *tiffile)
129 return ERROR_INT(
"function not present", __func__, 1);
134l_ok tiffGetCount(FILE *fp, l_int32 *pn)
136 return ERROR_INT(
"function not present", __func__, 1);
141l_ok getTiffResolution(FILE *fp, l_int32 *pxres, l_int32 *pyres)
143 return ERROR_INT(
"function not present", __func__, 1);
148l_ok readHeaderTiff(
const char *filename, l_int32 n, l_int32 *pwidth,
149 l_int32 *pheight, l_int32 *pbps, l_int32 *pspp,
150 l_int32 *pres, l_int32 *pcmap, l_int32 *pformat)
152 return ERROR_INT(
"function not present", __func__, 1);
157l_ok freadHeaderTiff(FILE *fp, l_int32 n, l_int32 *pwidth,
158 l_int32 *pheight, l_int32 *pbps, l_int32 *pspp,
159 l_int32 *pres, l_int32 *pcmap, l_int32 *pformat)
161 return ERROR_INT(
"function not present", __func__, 1);
166l_ok readHeaderMemTiff(
const l_uint8 *cdata,
size_t size, l_int32 n,
167 l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps,
168 l_int32 *pspp, l_int32 *pres, l_int32 *pcmap,
171 return ERROR_INT(
"function not present", __func__, 1);
176l_ok findTiffCompression(FILE *fp, l_int32 *pcomptype)
178 return ERROR_INT(
"function not present", __func__, 1);
183l_ok extractG4DataFromFile(
const char *filein, l_uint8 **pdata,
184 size_t *pnbytes, l_int32 *pw,
185 l_int32 *ph, l_int32 *pminisblack)
187 return ERROR_INT(
"function not present", __func__, 1);
192PIX * pixReadMemTiff(
const l_uint8 *cdata,
size_t size, l_int32 n)
194 return (
PIX *)ERROR_PTR(
"function not present", __func__, NULL);
199PIX * pixReadMemFromMultipageTiff(
const l_uint8 *cdata,
size_t size,
202 return (
PIX *)ERROR_PTR(
"function not present", __func__, NULL);
207PIXA * pixaReadMemMultipageTiff(
const l_uint8 *data,
size_t size)
209 return (
PIXA *)ERROR_PTR(
"function not present", __func__, NULL);
214l_ok pixaWriteMemMultipageTiff(l_uint8 **pdata,
size_t *psize,
PIXA *pixa)
216 return ERROR_INT(
"function not present", __func__, 1);
221l_ok pixWriteMemTiff(l_uint8 **pdata,
size_t *psize,
PIX *pix,
224 return ERROR_INT(
"function not present", __func__, 1);
229l_ok pixWriteMemTiffCustom(l_uint8 **pdata,
size_t *psize,
PIX *pix,
230 l_int32 comptype,
NUMA *natags,
SARRAY *savals,
233 return ERROR_INT(
"function not present", __func__, 1);