Leptonica 1.68
C Image Processing Library

pnmiostub.c

Go to the documentation of this file.
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  *  pnmiostub.c
00018  *
00019  *     Stubs for pnmio.c functions
00020  */
00021 
00022 #include "allheaders.h"
00023 
00024 /* --------------------------------------------*/
00025 #if  !USE_PNMIO   /* defined in environ.h */
00026 /* --------------------------------------------*/
00027 
00028 PIX * pixReadStreamPnm(FILE *fp)
00029 {
00030     return (PIX * )ERROR_PTR("function not present", "pixReadStreamPnm", NULL);
00031 }
00032 
00033 l_int32 freadHeaderPnm(FILE *fp, PIX **ppix, l_int32 *pwidth, l_int32 *pheight,                        l_int32 *pdepth, l_int32 *ptype, l_int32 *pbps,
00034                        l_int32 *pspp)
00035 {
00036     return ERROR_INT("function not present", "freadHeaderPnm", 1);
00037 }
00038 
00039 l_int32 pixWriteStreamPnm(FILE *fp, PIX *pix)
00040 {
00041     return ERROR_INT("function not present", "pixWriteStreamPnm", 1);
00042 }
00043 
00044 l_int32 pixWriteStreamAsciiPnm(FILE *fp, PIX *pix)
00045 {
00046     return ERROR_INT("function not present", "pixWriteStreamAsciiPnm", 1);
00047 }
00048 
00049 PIX * pixReadMemPnm(const l_uint8 *cdata, size_t size)
00050 {
00051     return (PIX * )ERROR_PTR("function not present", "pixReadMemPnm", NULL);
00052 }
00053 
00054 l_int32 sreadHeaderPnm(const l_uint8 *cdata, size_t size, l_int32 *pwidth,
00055                        l_int32 *pheight, l_int32 *pdepth, l_int32 *ptype,
00056                        l_int32 *pbps, l_int32 *pspp)
00057 {
00058     return ERROR_INT("function not present", "sreadHeaderPnm", 1);
00059 }
00060 
00061 l_int32 pixWriteMemPnm(l_uint8 **pdata, size_t *psize, PIX *pix)
00062 {
00063     return ERROR_INT("function not present", "pixWriteMemPnm", 1);
00064 }
00065 
00066 
00067 
00068 /* --------------------------------------------*/
00069 #endif  /* !USE_PNMIO */
00070 /* --------------------------------------------*/
00071 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines