Leptonica 1.68
C Image Processing Library
|
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 * psio2stub.c 00018 * 00019 * Stubs for psio2.c functions 00020 */ 00021 00022 #include "allheaders.h" 00023 00024 /* --------------------------------------------*/ 00025 #if !USE_PSIO /* defined in environ.h */ 00026 /* --------------------------------------------*/ 00027 00028 l_int32 pixWritePSEmbed(const char *filein, const char *fileout) 00029 { 00030 return ERROR_INT("function not present", "pixWritePSEmbed", 1); 00031 } 00032 00033 l_int32 pixWriteStreamPS(FILE *fp, PIX *pix, BOX *box, l_int32 res, 00034 l_float32 scale) 00035 { 00036 return ERROR_INT("function not present", "pixWriteStreamPS", 1); 00037 } 00038 00039 char * pixWriteStringPS(PIX *pixs, BOX *box, l_int32 res, l_float32 scale) 00040 { 00041 return (char *)ERROR_PTR("function not present", "pixWriteStringPS", NULL); 00042 } 00043 00044 void getScaledParametersPS(BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res, 00045 l_float32 scale, l_float32 *pxpt, l_float32 *pypt, 00046 l_float32 *pwpt, l_float32 *phpt) 00047 { 00048 L_ERROR("function not present", "getScaledParametersPS"); 00049 return; 00050 } 00051 00052 void convertByteToHexAscii(l_uint8 byteval, char *pnib1, char *pnib2) 00053 { 00054 L_ERROR("function not present", "convertByteToHexAscii"); 00055 return; 00056 } 00057 00058 l_int32 convertJpegToPSEmbed(const char *filein, const char *fileout) 00059 { 00060 return ERROR_INT("function not present", "convertJpegToPSEmbed", 1); 00061 } 00062 00063 l_int32 convertJpegToPS(const char *filein, const char *fileout, 00064 const char *operation, l_int32 x, l_int32 y, 00065 l_int32 res, l_float32 scale, l_int32 pageno, 00066 l_int32 endpage) 00067 { 00068 return ERROR_INT("function not present", "convertJpegToPS", 1); 00069 } 00070 00071 l_int32 convertJpegToPSString(const char *filein, char **poutstr, 00072 l_int32 *pnbytes, l_int32 x, l_int32 y, 00073 l_int32 res, l_float32 scale, l_int32 pageno, 00074 l_int32 endpage) 00075 { 00076 return ERROR_INT("function not present", "convertJpegToPSString", 1); 00077 } 00078 00079 char * generateJpegPS(const char *filein, L_COMPRESSED_DATA *cid, 00080 l_float32 xpt, l_float32 ypt, l_float32 wpt, 00081 l_float32 hpt, l_int32 pageno, l_int32 endpage) 00082 { 00083 return (char *)ERROR_PTR("function not present", "generateJpegPS", NULL); 00084 } 00085 00086 L_COMPRESSED_DATA * pixGenerateJpegData(PIX *pixs, l_int32 ascii85flag, 00087 l_int32 quality) 00088 { 00089 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00090 "pixGenerateJpegData", NULL); 00091 } 00092 00093 L_COMPRESSED_DATA * l_generateJpegData(const char *filein, l_int32 ascii85flag) 00094 { 00095 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00096 "l_generateJpegData", NULL); 00097 } 00098 00099 void l_destroyCompressedData(L_COMPRESSED_DATA **pcid) 00100 { 00101 L_ERROR("function not present", "l_destroyCompressedData"); 00102 return; 00103 } 00104 00105 l_int32 convertG4ToPSEmbed(const char *filein, const char *fileout) 00106 { 00107 return ERROR_INT("function not present", "convertG4ToPSEmbed", 1); 00108 } 00109 00110 l_int32 convertG4ToPS(const char *filein, const char *fileout, 00111 const char *operation, l_int32 x, l_int32 y, 00112 l_int32 res, l_float32 scale, l_int32 pageno, 00113 l_int32 mask, l_int32 endpage) 00114 { 00115 return ERROR_INT("function not present", "convertG4ToPS", 1); 00116 } 00117 00118 l_int32 convertG4ToPSString(const char *filein, char **poutstr, 00119 l_int32 *pnbytes, l_int32 x, l_int32 y, 00120 l_int32 res, l_float32 scale, l_int32 pageno, 00121 l_int32 mask, l_int32 endpage) 00122 { 00123 return ERROR_INT("function not present", "convertG4ToPSString", 1); 00124 } 00125 00126 char * generateG4PS(const char *filein, L_COMPRESSED_DATA *cid, l_float32 xpt, 00127 l_float32 ypt, l_float32 wpt, l_float32 hpt, 00128 l_int32 maskflag, l_int32 pageno, l_int32 endpage) 00129 { 00130 return (char *)ERROR_PTR("function not present", "generateG4PS", NULL); 00131 } 00132 00133 L_COMPRESSED_DATA * pixGenerateG4Data(PIX *pixs, l_int32 ascii85flag) 00134 { 00135 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00136 "pixGenerateG4Data", NULL); 00137 } 00138 00139 L_COMPRESSED_DATA * l_generateG4Data(const char *filein, l_int32 ascii85flag) 00140 { 00141 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00142 "l_generateG4Data", NULL); 00143 } 00144 00145 l_int32 convertTiffMultipageToPS(const char *filein, const char *fileout, 00146 const char *tempfile, l_float32 fillfract) 00147 { 00148 return ERROR_INT("function not present", "convertTiffMultipageToPS", 1); 00149 } 00150 00151 l_int32 convertFlateToPSEmbed(const char *filein, const char *fileout) 00152 { 00153 return ERROR_INT("function not present", "convertFlateToPSEmbed", 1); 00154 } 00155 00156 l_int32 convertFlateToPS(const char *filein, const char *fileout, 00157 const char *operation, l_int32 x, l_int32 y, 00158 l_int32 res, l_float32 scale, l_int32 pageno, 00159 l_int32 endpage) 00160 { 00161 return ERROR_INT("function not present", "convertFlateToPS", 1); 00162 } 00163 00164 l_int32 convertFlateToPSString(const char *filein, char **poutstr, 00165 l_int32 *pnbytes, l_int32 x, l_int32 y, 00166 l_int32 res, l_float32 scale, 00167 l_int32 pageno, l_int32 endpage) 00168 { 00169 return ERROR_INT("function not present", "convertFlateToPSString", 1); 00170 } 00171 00172 char * generateFlatePS(const char *filein, L_COMPRESSED_DATA *lfd, 00173 l_float32 xpt, l_float32 ypt, l_float32 wpt, 00174 l_float32 hpt, l_int32 pageno, l_int32 endpage) 00175 { 00176 return (char *)ERROR_PTR("function not present", "generateFlatePS", NULL); 00177 } 00178 00179 L_COMPRESSED_DATA * l_generateFlateData(const char *filein, 00180 l_int32 ascii85flag) 00181 { 00182 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00183 "l_generateFlateData", NULL); 00184 } 00185 00186 L_COMPRESSED_DATA * pixGenerateFlateData(PIX *pixs, l_int32 ascii85flag) 00187 { 00188 return (L_COMPRESSED_DATA *)ERROR_PTR("function not present", 00189 "pixGenerateFlateData", NULL); 00190 } 00191 00192 l_int32 pixWriteMemPS(l_uint8 **pdata, size_t *psize, PIX *pix, BOX *box, 00193 l_int32 res, l_float32 scale) 00194 { 00195 return ERROR_INT("function not present", "pixWriteMemPS", 1); 00196 } 00197 00198 l_int32 getResLetterPage(l_int32 w, l_int32 h, l_float32 fillfract) 00199 { 00200 return ERROR_INT("function not present", "getResLetterPage", 1); 00201 } 00202 00203 l_int32 getResA4Page(l_int32 w, l_int32 h, l_float32 fillfract) 00204 { 00205 return ERROR_INT("function not present", "getResA4Page", 1); 00206 } 00207 00208 char * encodeAscii85(l_uint8 *inarray, l_int32 insize, l_int32 *poutsize) 00209 { 00210 return (char *)ERROR_PTR("function not present", "encodeAscii85", NULL); 00211 } 00212 00213 l_int32 convertChunkToAscii85(l_uint8 *inarray, l_int32 insize, 00214 l_int32 *pindex, char *outbuf, l_int32 *pnbout) 00215 { 00216 return ERROR_INT("function not present", "convertChunkToAscii85", 1); 00217 } 00218 00219 l_uint8 * decodeAscii85(char *ina, l_int32 insize, l_int32 *poutsize) 00220 { 00221 return (l_uint8 *)ERROR_PTR("function not present", "decodeAscii85", NULL); 00222 } 00223 00224 void l_psWriteBoundingBox(l_int32 flag) 00225 { 00226 L_ERROR("function not present", "l_psWriteBoundingBox"); 00227 return; 00228 } 00229 00230 /* --------------------------------------------*/ 00231 #endif /* !USE_PSIO */ 00232 /* --------------------------------------------*/ 00233