Leptonica 1.82.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#ifdef HAVE_CONFIG_H
36#include <config_auto.h>
37#endif /* HAVE_CONFIG_H */
38
39#include "allheaders.h"
40
41/* --------------------------------------------*/
42#if !USE_PSIO /* defined in environ.h */
43/* --------------------------------------------*/
44
45l_ok pixWritePSEmbed(const char *filein, const char *fileout)
46{
47 return ERROR_INT("function not present", "pixWritePSEmbed", 1);
48}
49
50/* ----------------------------------------------------------------------*/
51
52l_ok pixWriteStreamPS(FILE *fp, PIX *pix, BOX *box, l_int32 res,
53 l_float32 scale)
54{
55 return ERROR_INT("function not present", "pixWriteStreamPS", 1);
56}
57
58/* ----------------------------------------------------------------------*/
59
60char * pixWriteStringPS(PIX *pixs, BOX *box, l_int32 res, l_float32 scale)
61{
62 return (char *)ERROR_PTR("function not present", "pixWriteStringPS", NULL);
63}
64
65/* ----------------------------------------------------------------------*/
66
67char * generateUncompressedPS(char *hexdata, l_int32 w, l_int32 h, l_int32 d,
68 l_int32 psbpl, l_int32 bps, l_float32 xpt,
69 l_float32 ypt, l_float32 wpt, l_float32 hpt,
70 l_int32 boxflag)
71{
72 return (char *)ERROR_PTR("function not present",
73 "generateUncompressedPS", NULL);
74}
75
76/* ----------------------------------------------------------------------*/
77
78l_ok convertJpegToPSEmbed(const char *filein, const char *fileout)
79{
80 return ERROR_INT("function not present", "convertJpegToPSEmbed", 1);
81}
82
83/* ----------------------------------------------------------------------*/
84
85l_ok convertJpegToPS(const char *filein, const char *fileout,
86 const char *operation, l_int32 x, l_int32 y,
87 l_int32 res, l_float32 scale, l_int32 pageno,
88 l_int32 endpage)
89{
90 return ERROR_INT("function not present", "convertJpegToPS", 1);
91}
92
93/* ----------------------------------------------------------------------*/
94
95l_ok convertG4ToPSEmbed(const char *filein, const char *fileout)
96{
97 return ERROR_INT("function not present", "convertG4ToPSEmbed", 1);
98}
99
100/* ----------------------------------------------------------------------*/
101
102l_ok convertG4ToPS(const char *filein, const char *fileout,
103 const char *operation, l_int32 x, l_int32 y,
104 l_int32 res, l_float32 scale, l_int32 pageno,
105 l_int32 maskflag, l_int32 endpage)
106{
107 return ERROR_INT("function not present", "convertG4ToPS", 1);
108}
109
110/* ----------------------------------------------------------------------*/
111
112l_ok convertTiffMultipageToPS(const char *filein, const char *fileout,
113 l_float32 fillfract)
114{
115 return ERROR_INT("function not present", "convertTiffMultipageToPS", 1);
116}
117
118/* ----------------------------------------------------------------------*/
119
120l_ok convertFlateToPSEmbed(const char *filein, const char *fileout)
121{
122 return ERROR_INT("function not present", "convertFlateToPSEmbed", 1);
123}
124
125/* ----------------------------------------------------------------------*/
126
127l_ok convertFlateToPS(const char *filein, const char *fileout,
128 const char *operation, l_int32 x, l_int32 y,
129 l_int32 res, l_float32 scale, l_int32 pageno,
130 l_int32 endpage)
131{
132 return ERROR_INT("function not present", "convertFlateToPS", 1);
133}
134
135/* ----------------------------------------------------------------------*/
136
137l_ok pixWriteMemPS(l_uint8 **pdata, size_t *psize, PIX *pix, BOX *box,
138 l_int32 res, l_float32 scale)
139{
140 return ERROR_INT("function not present", "pixWriteMemPS", 1);
141}
142
143/* ----------------------------------------------------------------------*/
144
145l_int32 getResLetterPage(l_int32 w, l_int32 h, l_float32 fillfract)
146{
147 return ERROR_INT("function not present", "getResLetterPage", 1);
148}
149
150/* ----------------------------------------------------------------------*/
151
152void l_psWriteBoundingBox(l_int32 flag)
153{
154 L_ERROR("function not present\n", "l_psWriteBoundingBox");
155 return;
156}
157
158/* --------------------------------------------*/
159#endif /* !USE_PSIO */
160/* --------------------------------------------*/
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:1667
l_ok pixWriteStreamPS(FILE *fp, PIX *pix, BOX *box, l_int32 res, l_float32 scale)
pixWriteStreamPS()
Definition: psio2.c:241
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:794
l_ok pixWritePSEmbed(const char *filein, const char *fileout)
pixWritePSEmbed()
Definition: psio2.c:188
char * pixWriteStringPS(PIX *pixs, BOX *box, l_int32 res, l_float32 scale)
pixWriteStringPS()
Definition: psio2.c:341
l_ok convertTiffMultipageToPS(const char *filein, const char *fileout, l_float32 fillfract)
convertTiffMultipageToPS()
Definition: psio2.c:1473
l_ok convertFlateToPSEmbed(const char *filein, const char *fileout)
convertFlateToPSEmbed()
Definition: psio2.c:1553
l_ok convertG4ToPSEmbed(const char *filein, const char *fileout)
convertG4ToPSEmbed()
Definition: psio2.c:1076
l_ok pixWriteMemPS(l_uint8 **pdata, size_t *psize, PIX *pix, BOX *box, l_int32 res, l_float32 scale)
pixWriteMemPS()
Definition: psio2.c:1957
l_ok convertJpegToPSEmbed(const char *filein, const char *fileout)
convertJpegToPSEmbed()
Definition: psio2.c:678
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:451
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:1182
l_int32 getResLetterPage(l_int32 w, l_int32 h, l_float32 fillfract)
getResLetterPage()
Definition: psio2.c:1992
Definition: pix.h:481
Definition: pix.h:139