Leptonica  1.77.0
Image processing and image analysis suite
pnmiostub.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_PNMIO /* defined in environ.h */
39 /* --------------------------------------------*/
40 
41 PIX * pixReadStreamPnm(FILE *fp)
42 {
43  return (PIX * )ERROR_PTR("function not present", "pixReadStreamPnm", NULL);
44 }
45 
46 /* ----------------------------------------------------------------------*/
47 
48 l_ok readHeaderPnm(const char *filename, l_int32 *pw, l_int32 *ph,
49  l_int32 *pd, l_int32 *ptype, l_int32 *pbps,
50  l_int32 *pspp)
51 {
52  return ERROR_INT("function not present", "readHeaderPnm", 1);
53 }
54 
55 /* ----------------------------------------------------------------------*/
56 
57 l_ok freadHeaderPnm(FILE *fp, l_int32 *pw, l_int32 *ph, l_int32 *pd,
58  l_int32 *ptype, l_int32 *pbps, l_int32 *pspp)
59 {
60  return ERROR_INT("function not present", "freadHeaderPnm", 1);
61 }
62 
63 /* ----------------------------------------------------------------------*/
64 
65 l_ok pixWriteStreamPnm(FILE *fp, PIX *pix)
66 {
67  return ERROR_INT("function not present", "pixWriteStreamPnm", 1);
68 }
69 
70 /* ----------------------------------------------------------------------*/
71 
72 l_ok pixWriteStreamAsciiPnm(FILE *fp, PIX *pix)
73 {
74  return ERROR_INT("function not present", "pixWriteStreamAsciiPnm", 1);
75 }
76 
77 /* ----------------------------------------------------------------------*/
78 
79 l_ok pixWriteStreamPam(FILE *fp, PIX *pix)
80 {
81  return ERROR_INT("function not present", "pixWriteStreamPam", 1);
82 }
83 
84 /* ----------------------------------------------------------------------*/
85 
86 PIX * pixReadMemPnm(const l_uint8 *cdata, size_t size)
87 {
88  return (PIX * )ERROR_PTR("function not present", "pixReadMemPnm", NULL);
89 }
90 
91 /* ----------------------------------------------------------------------*/
92 
93 l_ok readHeaderMemPnm(const l_uint8 *cdata, size_t size, l_int32 *pw,
94  l_int32 *ph, l_int32 *pd, l_int32 *ptype,
95  l_int32 *pbps, l_int32 *pspp)
96 {
97  return ERROR_INT("function not present", "readHeaderMemPnm", 1);
98 }
99 
100 /* ----------------------------------------------------------------------*/
101 
102 l_ok pixWriteMemPnm(l_uint8 **pdata, size_t *psize, PIX *pix)
103 {
104  return ERROR_INT("function not present", "pixWriteMemPnm", 1);
105 }
106 /* ----------------------------------------------------------------------*/
107 
108 l_ok pixWriteMemPam(l_uint8 **pdata, size_t *psize, PIX *pix)
109 {
110  return ERROR_INT("function not present", "pixWriteMemPam", 1);
111 }
112 
113 
114 /* --------------------------------------------*/
115 #endif /* !USE_PNMIO */
116 /* --------------------------------------------*/
l_ok pixWriteMemPam(l_uint8 **pdata, size_t *psize, PIX *pix)
pixWriteMemPam()
Definition: pnmio.c:1214
l_ok readHeaderPnm(const char *filename, l_int32 *pw, l_int32 *ph, l_int32 *pd, l_int32 *ptype, l_int32 *pbps, l_int32 *pspp)
readHeaderPnm()
Definition: pnmio.c:447
PIX * pixReadMemPnm(const l_uint8 *data, size_t size)
pixReadMemPnm()
Definition: pnmio.c:1084
l_ok readHeaderMemPnm(const l_uint8 *data, size_t size, l_int32 *pw, l_int32 *ph, l_int32 *pd, l_int32 *ptype, l_int32 *pbps, l_int32 *pspp)
readHeaderMemPnm()
Definition: pnmio.c:1117
PIX * pixReadStreamPnm(FILE *fp)
pixReadStreamPnm()
Definition: pnmio.c:145
l_ok freadHeaderPnm(FILE *fp, l_int32 *pw, l_int32 *ph, l_int32 *pd, l_int32 *ptype, l_int32 *pbps, l_int32 *pspp)
freadHeaderPnm()
Definition: pnmio.c:490
l_ok pixWriteStreamPnm(FILE *fp, PIX *pix)
pixWriteStreamPnm()
Definition: pnmio.c:667
Definition: pix.h:134
l_ok pixWriteStreamPam(FILE *fp, PIX *pix)
pixWriteStreamPam()
Definition: pnmio.c:908
l_ok pixWriteStreamAsciiPnm(FILE *fp, PIX *pix)
pixWriteStreamAsciiPnm()
Definition: pnmio.c:786
l_ok pixWriteMemPnm(l_uint8 **pdata, size_t *psize, PIX *pix)
pixWriteMemPnm()
Definition: pnmio.c:1159