Leptonica 1.68
C Image Processing Library

bmpiostub.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  *   bmpiostub.c
00018  *
00019  *      Stubs for bmpio.c functions
00020  */
00021 
00022 #include "allheaders.h"
00023 
00024 /* --------------------------------------------*/
00025 #if  !USE_BMPIO   /* defined in environ.h */
00026 /* --------------------------------------------*/
00027 
00028 PIX * pixReadStreamBmp(FILE *fp)
00029 {
00030     return (PIX * )ERROR_PTR("function not present", "pixReadStreamBmp", NULL);
00031 }
00032 
00033 l_int32 pixWriteStreamBmp(FILE *fp, PIX *pix)
00034 {
00035     return ERROR_INT("function not present", "pixWriteStreamBmp", 1);
00036 }
00037 
00038 PIX * pixReadMemBmp(const l_uint8 *cdata, size_t size)
00039 {
00040     return (PIX *)ERROR_PTR("function not present", "pixReadMemBmp", NULL);
00041 }
00042 
00043 l_int32 pixWriteMemBmp(l_uint8 **pdata, size_t *psize, PIX *pix)
00044 {
00045     return ERROR_INT("function not present", "pixWriteMemBmp", 1);
00046 }
00047 
00048 
00049 /* --------------------------------------------*/
00050 #endif  /* !USE_BMPIO */
00051 /* --------------------------------------------*/
00052 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines