Leptonica 1.68
C Image Processing Library

tiffiostub.c

Go to the documentation of this file.
00001 /*====================================================================*
00002  -  Copyright (C) 2001 Leptonica.  All rights reserved.
00003  -  This software is distributed in the hope that it will be
00004  -  useful, but with NO WARRANTY OF ANY KIND.
00005  -  No author or distributor accepts responsibility to anyone for the
00006  -  consequences of using this software, or for whether it serves any
00007  -  particular purpose or works at all, unless he or she says so in
00008  -  writing.  Everyone is granted permission to copy, modify and
00009  -  redistribute this source code, for commercial or non-commercial
00010  -  purposes, with the following restrictions: (1) the origin of this
00011  -  source code must not be misrepresented; (2) modified versions must
00012  -  be plainly marked as such; and (3) this notice may not be removed
00013  -  or altered from any source or modified source distribution.
00014  *====================================================================*/
00015 
00016 /*
00017  *  tiffiostub.c
00018  *
00019  *     Stubs for tiffio.c functions
00020  */
00021 
00022 #include "allheaders.h"
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include "config_auto.h"
00026 #endif  /* HAVE_CONFIG_H */
00027 
00028 /* --------------------------------------------*/
00029 #if  !HAVE_LIBTIFF   /* defined in environ.h */
00030 /* --------------------------------------------*/
00031 
00032 PIX * pixReadTiff(const char *filename, l_int32 n)
00033 {
00034     return (PIX * )ERROR_PTR("function not present", "pixReadTiff", NULL);
00035 }
00036 
00037 PIX * pixReadStreamTiff(FILE *fp, l_int32 n)
00038 {
00039     return (PIX * )ERROR_PTR("function not present", "pixReadStreamTiff", NULL);
00040 }
00041 
00042 l_int32 pixWriteTiff(const char *filename, PIX *pix, l_int32 comptype,
00043                      const char *modestring)
00044 {
00045     return ERROR_INT("function not present", "pixWriteTiff", 1);
00046 }
00047 
00048 l_int32 pixWriteTiffCustom(const char *filename, PIX *pix, l_int32 comptype,
00049                            const char *modestring, NUMA *natags,
00050                            SARRAY *savals, SARRAY *satypes, NUMA *nasizes)
00051 {
00052     return ERROR_INT("function not present", "pixWriteTiffCustom", 1);
00053 }
00054 
00055 l_int32 pixWriteStreamTiff(FILE *fp, PIX *pix, l_int32 comptype)
00056 {
00057     return ERROR_INT("function not present", "pixWriteStreamTiff", 1);
00058 }
00059 
00060 PIXA * pixaReadMultipageTiff(const char *filename)
00061 {
00062     return (PIXA * )ERROR_PTR("function not present",
00063                               "pixaReadMultipageTiff", NULL);
00064 }
00065 
00066 l_int32 writeMultipageTiff(const char *dirin, const char *substr,
00067                            const char *fileout)
00068 {
00069     return ERROR_INT("function not present", "writeMultipageTiff", 1);
00070 }
00071 
00072 l_int32 writeMultipageTiffSA(SARRAY *sa, const char *fileout)
00073 {
00074     return ERROR_INT("function not present", "writeMultipageTiffSA", 1);
00075 }
00076 
00077 l_int32 fprintTiffInfo(FILE *fpout, const char *tiffile)
00078 {
00079     return ERROR_INT("function not present", "fprintTiffInfo", 1);
00080 }
00081 
00082 l_int32 tiffGetCount(FILE *fp, l_int32 *pn)
00083 {
00084     return ERROR_INT("function not present", "tiffGetCount", 1);
00085 }
00086 
00087 l_int32 getTiffResolution(FILE *fp, l_int32 *pxres, l_int32 *pyres)
00088 {
00089     return ERROR_INT("function not present", "getTiffResolution", 1);
00090 }
00091 
00092 l_int32 readHeaderTiff(const char *filename, l_int32 n, l_int32 *pwidth,
00093                        l_int32 *pheight, l_int32 *pbps, l_int32 *pspp,
00094                        l_int32 *pres, l_int32 *pcmap, l_int32 *pformat)
00095 {
00096     return ERROR_INT("function not present", "readHeaderTiff", 1);
00097 }
00098 
00099 l_int32 freadHeaderTiff(FILE *fp, l_int32 n, l_int32 *pwidth,
00100                         l_int32 *pheight, l_int32 *pbps, l_int32 *pspp,
00101                         l_int32 *pres, l_int32 *pcmap, l_int32 *pformat)
00102 {
00103     return ERROR_INT("function not present", "freadHeaderTiff", 1);
00104 }
00105 
00106 l_int32 readHeaderMemTiff(const l_uint8 *cdata, size_t size, l_int32 n,
00107                           l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps,
00108                           l_int32 *pspp, l_int32 *pres, l_int32 *pcmap,
00109                           l_int32 *pformat)
00110 {
00111     return ERROR_INT("function not present", "readHeaderMemTiff", 1);
00112 }
00113 
00114 l_int32 findTiffCompression(FILE *fp, l_int32 *pcomptype)
00115 {
00116     return ERROR_INT("function not present", "findTiffCompression", 1);
00117 }
00118 
00119 l_int32 extractG4DataFromFile(const char *filein, l_uint8 **pdata,
00120                               size_t *pnbytes, l_int32 *pw,
00121                               l_int32 *ph, l_int32 *pminisblack)
00122 {
00123     return ERROR_INT("function not present", "extractG4DataFromFile", 1);
00124 }
00125 
00126 PIX * pixReadMemTiff(const l_uint8 *cdata, size_t size, l_int32 n)
00127 {
00128     return (PIX *)ERROR_PTR("function not present", "pixReadMemTiff", NULL);
00129 }
00130 
00131 l_int32 pixWriteMemTiff(l_uint8 **pdata, size_t *psize, PIX *pix,
00132                         l_int32 comptype)
00133 {
00134     return ERROR_INT("function not present", "pixWriteMemTiff", 1);
00135 }
00136 
00137 l_int32 pixWriteMemTiffCustom(l_uint8 **pdata, size_t *psize, PIX *pix,
00138                               l_int32 comptype, NUMA *natags, SARRAY *savals,
00139                               SARRAY *satypes, NUMA *nasizes)
00140 {
00141     return ERROR_INT("function not present", "pixWriteMemTiffCustom", 1);
00142 }
00143 
00144 /* --------------------------------------------*/
00145 #endif  /* !HAVE_LIBTIFF */
00146 /* --------------------------------------------*/
00147 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines