• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*====================================================================*
2  -  Copyright (C) 2001 Leptonica.  All rights reserved.
3  -  This software is distributed in the hope that it will be
4  -  useful, but with NO WARRANTY OF ANY KIND.
5  -  No author or distributor accepts responsibility to anyone for the
6  -  consequences of using this software, or for whether it serves any
7  -  particular purpose or works at all, unless he or she says so in
8  -  writing.  Everyone is granted permission to copy, modify and
9  -  redistribute this source code, for commercial or non-commercial
10  -  purposes, with the following restrictions: (1) the origin of this
11  -  source code must not be misrepresented; (2) modified versions must
12  -  be plainly marked as such; and (3) this notice may not be removed
13  -  or altered from any source or modified source distribution.
14  *====================================================================*/
15 
16 /*
17  *  pnmiostub.c
18  *
19  *     Stubs for pnmio.c functions
20  */
21 
22 #include <stdio.h>
23 #include "allheaders.h"
24 
25 /* --------------------------------------------*/
26 #if  !USE_PNMIO   /* defined in environ.h */
27 /* --------------------------------------------*/
28 
pixReadStreamPnm(FILE * fp)29 PIX * pixReadStreamPnm(FILE *fp)
30 {
31     return (PIX * )ERROR_PTR("function not present", "pixReadStreamPnm", NULL);
32 }
33 
pixWriteStreamPnm(FILE * fp,PIX * pix)34 l_int32 pixWriteStreamPnm(FILE *fp, PIX *pix)
35 {
36     return ERROR_INT("function not present", "pixWriteStreamPnm", 1);
37 }
38 
pixWriteStreamAsciiPnm(FILE * fp,PIX * pix)39 l_int32 pixWriteStreamAsciiPnm(FILE *fp, PIX *pix)
40 {
41     return ERROR_INT("function not present", "pixWriteStreamAsciiPnm", 1);
42 }
43 
pixReadMemPnm(const l_uint8 * cdata,size_t size)44 PIX * pixReadMemPnm(const l_uint8 *cdata, size_t size)
45 {
46     return (PIX * )ERROR_PTR("function not present", "pixReadMemPnm", NULL);
47 }
48 
49 
pixWriteMemPnm(l_uint8 ** pdata,size_t * psize,PIX * pix)50 l_int32 pixWriteMemPnm(l_uint8 **pdata, size_t *psize, PIX *pix)
51 {
52     return ERROR_INT("function not present", "pixWritememPnm", 1);
53 }
54 
55 /* --------------------------------------------*/
56 #endif  /* !USE_PNMIO */
57 /* --------------------------------------------*/
58 
59