Leptonica  1.77.0
Image processing and image analysis suite
psio2stub.c
Go to the documentation of this file.
1 /*====================================================================*
2  - Copyright (C) 2001 Leptonica. All rights reserved.
3  -
4  - Redistribution and use in source and binary forms, with or without
5  - modification, are permitted provided that the following conditions
6  - are met:
7  - 1. Redistributions of source code must retain the above copyright
8  - notice, this list of conditions and the following disclaimer.
9  - 2. Redistributions in binary form must reproduce the above
10  - copyright notice, this list of conditions and the following
11  - disclaimer in the documentation and/or other materials
12  - provided with the distribution.
13  -
14  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18  - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *====================================================================*/
26 
35 #include "allheaders.h"
36 
37 /* --------------------------------------------*/
38 #if !USE_PSIO /* defined in environ.h */
39 /* --------------------------------------------*/
40 
41 l_ok pixWritePSEmbed(const char *filein, const char *fileout)
42 {
43  return ERROR_INT("function not present", "pixWritePSEmbed", 1);
44 }
45 
46 /* ----------------------------------------------------------------------*/
47 
48 l_ok pixWriteStreamPS(FILE *fp, PIX *pix, BOX *box, l_int32 res,
49  l_float32 scale)
50 {
51  return ERROR_INT("function not present", "pixWriteStreamPS", 1);
52 }
53 
54 /* ----------------------------------------------------------------------*/
55 
56 char * pixWriteStringPS(PIX *pixs, BOX *box, l_int32 res, l_float32 scale)
57 {
58  return (char *)ERROR_PTR("function not present", "pixWriteStringPS", NULL);
59 }
60 
61 /* ----------------------------------------------------------------------*/
62 
63 char * generateUncompressedPS(char *hexdata, l_int32 w, l_int32 h, l_int32 d,
64  l_int32 psbpl, l_int32 bps, l_float32 xpt,
65  l_float32 ypt, l_float32 wpt, l_float32 hpt,
66  l_int32 boxflag)
67 {
68  return (char *)ERROR_PTR("function not present",
69  "generateUncompressedPS", NULL);
70 }
71 
72 /* ----------------------------------------------------------------------*/
73 
74 void getScaledParametersPS(BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res,
75  l_float32 scale, l_float32 *pxpt, l_float32 *pypt,
76  l_float32 *pwpt, l_float32 *phpt)
77 {
78  L_ERROR("function not present\n", "getScaledParametersPS");
79  return;
80 }
81 
82 /* ----------------------------------------------------------------------*/
83 
84 void convertByteToHexAscii(l_uint8 byteval, char *pnib1, char *pnib2)
85 {
86  L_ERROR("function not present\n", "convertByteToHexAscii");
87  return;
88 }
89 
90 /* ----------------------------------------------------------------------*/
91 
92 l_ok convertJpegToPSEmbed(const char *filein, const char *fileout)
93 {
94  return ERROR_INT("function not present", "convertJpegToPSEmbed", 1);
95 }
96 
97 /* ----------------------------------------------------------------------*/
98 
99 l_ok convertJpegToPS(const char *filein, const char *fileout,
100  const char *operation, l_int32 x, l_int32 y,
101  l_int32 res, l_float32 scale, l_int32 pageno,
102  l_int32 endpage)
103 {
104  return ERROR_INT("function not present", "convertJpegToPS", 1);
105 }
106 
107 /* ----------------------------------------------------------------------*/
108 
109 l_ok convertJpegToPSString(const char *filein, char **poutstr,
110  l_int32 *pnbytes, l_int32 x, l_int32 y,
111  l_int32 res, l_float32 scale, l_int32 pageno,
112  l_int32 endpage)
113 {
114  return ERROR_INT("function not present", "convertJpegToPSString", 1);
115 }
116 
117 /* ----------------------------------------------------------------------*/
118 
119 char * generateJpegPS(const char *filein, L_COMP_DATA *cid,
120  l_float32 xpt, l_float32 ypt, l_float32 wpt,
121  l_float32 hpt, l_int32 pageno, l_int32 endpage)
122 {
123  return (char *)ERROR_PTR("function not present", "generateJpegPS", NULL);
124 }
125 
126 /* ----------------------------------------------------------------------*/
127 
128 l_ok convertG4ToPSEmbed(const char *filein, const char *fileout)
129 {
130  return ERROR_INT("function not present", "convertG4ToPSEmbed", 1);
131 }
132 
133 /* ----------------------------------------------------------------------*/
134 
135 l_ok convertG4ToPS(const char *filein, const char *fileout,
136  const char *operation, l_int32 x, l_int32 y,
137  l_int32 res, l_float32 scale, l_int32 pageno,
138  l_int32 maskflag, l_int32 endpage)
139 {
140  return ERROR_INT("function not present", "convertG4ToPS", 1);
141 }
142 
143 /* ----------------------------------------------------------------------*/
144 
145 l_ok convertG4ToPSString(const char *filein, char **poutstr,
146  l_int32 *pnbytes, l_int32 x, l_int32 y,
147  l_int32 res, l_float32 scale, l_int32 pageno,
148  l_int32 maskflag, l_int32 endpage)
149 {
150  return ERROR_INT("function not present", "convertG4ToPSString", 1);
151 }
152 
153 /* ----------------------------------------------------------------------*/
154 
155 char * generateG4PS(const char *filein, L_COMP_DATA *cid, l_float32 xpt,
156  l_float32 ypt, l_float32 wpt, l_float32 hpt,
157  l_int32 maskflag, l_int32 pageno, l_int32 endpage)
158 {
159  return (char *)ERROR_PTR("function not present", "generateG4PS", NULL);
160 }
161 
162 /* ----------------------------------------------------------------------*/
163 
164 l_ok convertTiffMultipageToPS(const char *filein, const char *fileout,
165  l_float32 fillfract)
166 {
167  return ERROR_INT("function not present", "convertTiffMultipageToPS", 1);
168 }
169 
170 /* ----------------------------------------------------------------------*/
171 
172 l_ok convertFlateToPSEmbed(const char *filein, const char *fileout)
173 {
174  return ERROR_INT("function not present", "convertFlateToPSEmbed", 1);
175 }
176 
177 /* ----------------------------------------------------------------------*/
178 
179 l_ok convertFlateToPS(const char *filein, const char *fileout,
180  const char *operation, l_int32 x, l_int32 y,
181  l_int32 res, l_float32 scale, l_int32 pageno,
182  l_int32 endpage)
183 {
184  return ERROR_INT("function not present", "convertFlateToPS", 1);
185 }
186 
187 /* ----------------------------------------------------------------------*/
188 
189 l_ok convertFlateToPSString(const char *filein, char **poutstr,
190  l_int32 *pnbytes, l_int32 x, l_int32 y,
191  l_int32 res, l_float32 scale,
192  l_int32 pageno, l_int32 endpage)
193 {
194  return ERROR_INT("function not present", "convertFlateToPSString", 1);
195 }
196 
197 /* ----------------------------------------------------------------------*/
198 
199 char * generateFlatePS(const char *filein, L_COMP_DATA *cid,
200  l_float32 xpt, l_float32 ypt, l_float32 wpt,
201  l_float32 hpt, l_int32 pageno, l_int32 endpage)
202 {
203  return (char *)ERROR_PTR("function not present", "generateFlatePS", NULL);
204 }
205 
206 /* ----------------------------------------------------------------------*/
207 
208 l_ok pixWriteMemPS(l_uint8 **pdata, size_t *psize, PIX *pix, BOX *box,
209  l_int32 res, l_float32 scale)
210 {
211  return ERROR_INT("function not present", "pixWriteMemPS", 1);
212 }
213 
214 /* ----------------------------------------------------------------------*/
215 
216 l_int32 getResLetterPage(l_int32 w, l_int32 h, l_float32 fillfract)
217 {
218  return ERROR_INT("function not present", "getResLetterPage", 1);
219 }
220 
221 /* ----------------------------------------------------------------------*/
222 
223 l_int32 getResA4Page(l_int32 w, l_int32 h, l_float32 fillfract)
224 {
225  return ERROR_INT("function not present", "getResA4Page", 1);
226 }
227 
228 /* ----------------------------------------------------------------------*/
229 
230 void l_psWriteBoundingBox(l_int32 flag)
231 {
232  L_ERROR("function not present\n", "l_psWriteBoundingBox");
233  return;
234 }
235 
236 /* --------------------------------------------*/
237 #endif /* !USE_PSIO */
238 /* --------------------------------------------*/
l_ok convertJpegToPSString(const char *filein, char **poutstr, l_int32 *pnbytes, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage)
convertJpegToPSString()
Definition: psio2.c:817
l_ok pixWriteMemPS(l_uint8 **pdata, size_t *psize, PIX *pix, BOX *box, l_int32 res, l_float32 scale)
pixWriteMemPS()
Definition: psio2.c:1922
char * generateUncompressedPS(char *hexdata, l_int32 w, l_int32 h, l_int32 d, l_int32 psbpl, l_int32 bps, l_float32 xpt, l_float32 ypt, l_float32 wpt, l_float32 hpt, l_int32 boxflag)
generateUncompressedPS()
Definition: psio2.c:413
l_ok convertJpegToPSEmbed(const char *filein, const char *fileout)
convertJpegToPSEmbed()
Definition: psio2.c:643
l_ok convertFlateToPSEmbed(const char *filein, const char *fileout)
convertFlateToPSEmbed()
Definition: psio2.c:1518
l_ok pixWritePSEmbed(const char *filein, const char *fileout)
pixWritePSEmbed()
Definition: psio2.c:152
char * pixWriteStringPS(PIX *pixs, BOX *box, l_int32 res, l_float32 scale)
pixWriteStringPS()
Definition: psio2.c:303
l_int32 getResA4Page(l_int32 w, l_int32 h, l_float32 fillfract)
getResA4Page()
Definition: psio2.c:1982
void getScaledParametersPS(BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res, l_float32 scale, l_float32 *pxpt, l_float32 *pypt, l_float32 *pwpt, l_float32 *phpt)
getScaledParametersPS()
Definition: psio2.c:522
char * generateG4PS(const char *filein, L_COMP_DATA *cid, l_float32 xpt, l_float32 ypt, l_float32 wpt, l_float32 hpt, l_int32 maskflag, l_int32 pageno, l_int32 endpage)
generateG4PS()
Definition: psio2.c:1304
l_ok convertG4ToPSEmbed(const char *filein, const char *fileout)
convertG4ToPSEmbed()
Definition: psio2.c:1039
l_ok convertJpegToPS(const char *filein, const char *fileout, const char *operation, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage)
convertJpegToPS()
Definition: psio2.c:758
l_int32 getResLetterPage(l_int32 w, l_int32 h, l_float32 fillfract)
getResLetterPage()
Definition: psio2.c:1957
l_ok convertG4ToPS(const char *filein, const char *fileout, const char *operation, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 maskflag, l_int32 endpage)
convertG4ToPS()
Definition: psio2.c:1145
l_ok convertFlateToPSString(const char *filein, char **poutstr, l_int32 *pnbytes, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage)
convertFlateToPSString()
Definition: psio2.c:1697
char * generateFlatePS(const char *filein, L_COMP_DATA *cid, l_float32 xpt, l_float32 ypt, l_float32 wpt, l_float32 hpt, l_int32 pageno, l_int32 endpage)
generateFlatePS()
Definition: psio2.c:1781
char * generateJpegPS(const char *filein, L_COMP_DATA *cid, l_float32 xpt, l_float32 ypt, l_float32 wpt, l_float32 hpt, l_int32 pageno, l_int32 endpage)
generateJpegPS()
Definition: psio2.c:911
l_ok pixWriteStreamPS(FILE *fp, PIX *pix, BOX *box, l_int32 res, l_float32 scale)
pixWriteStreamPS()
Definition: psio2.c:205
l_ok convertTiffMultipageToPS(const char *filein, const char *fileout, l_float32 fillfract)
convertTiffMultipageToPS()
Definition: psio2.c:1438
Definition: pix.h:134
l_ok convertG4ToPSString(const char *filein, char **poutstr, l_int32 *pnbytes, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 maskflag, l_int32 endpage)
convertG4ToPSString()
Definition: psio2.c:1208
void convertByteToHexAscii(l_uint8 byteval, char *pnib1, char *pnib2)
convertByteToHexAscii()
Definition: psio2.c:601
l_ok convertFlateToPS(const char *filein, const char *fileout, const char *operation, l_int32 x, l_int32 y, l_int32 res, l_float32 scale, l_int32 pageno, l_int32 endpage)
convertFlateToPS()
Definition: psio2.c:1631
Definition: pix.h:480