Leptonica 1.68
C Image Processing Library

pngiostub.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  *  pngiostub.c
00018  *
00019  *     Stubs for pngio.c functions
00020  */
00021 
00022 #include "allheaders.h"
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include "config_auto.h"
00026 #endif  /* HAVE_CONFIG_H */
00027 
00028 /* --------------------------------------------*/
00029 #if  !HAVE_LIBPNG   /* defined in environ.h */
00030 /* --------------------------------------------*/
00031 
00032 PIX * pixReadStreamPng(FILE *fp)
00033 {
00034     return (PIX * )ERROR_PTR("function not present", "pixReadStreamPng", NULL);
00035 }
00036 
00037 l_int32 readHeaderPng(const char *filename, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps, l_int32 *pspp, l_int32 *piscmap)
00038 {
00039     return ERROR_INT("function not present", "readHeaderPng", 1);
00040 }
00041 
00042 l_int32 freadHeaderPng(FILE *fp, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps, l_int32 *pspp, l_int32 *piscmap)
00043 {
00044     return ERROR_INT("function not present", "freadHeaderPng", 1);
00045 }
00046 
00047 l_int32 sreadHeaderPng(const l_uint8 *data, l_int32 *pwidth, l_int32 *pheight, l_int32 *pbps, l_int32 *pspp, l_int32 *piscmap)
00048 {
00049     return ERROR_INT("function not present", "sreadHeaderPng", 1);
00050 }
00051 
00052 l_int32 fgetPngResolution(FILE *fp, l_int32 *pxres, l_int32 *pyres)
00053 {
00054     return ERROR_INT("function not present", "fgetPngResolution", 1);
00055 }
00056 
00057 l_int32 pixWritePng(const char *filename, PIX *pix, l_float32 gamma)
00058 {
00059     return ERROR_INT("function not present", "pixWritePng", 1);
00060 }
00061 
00062 l_int32 pixWriteStreamPng(FILE *fp, PIX *pix, l_float32 gamma)
00063 {
00064     return ERROR_INT("function not present", "pixWriteStreamPng", 1);
00065 }
00066 
00067 PIX * pixReadRGBAPng(const char *filename)
00068 {
00069     return (PIX * )ERROR_PTR("function not present", "pixReadRGBAPng", NULL);
00070 }
00071 
00072 l_int32 pixWriteRGBAPng(const char *filename, PIX *pix)
00073 {
00074     return ERROR_INT("function not present", "pixWriteRGBAPng", 1);
00075 }
00076 
00077 void l_pngSetStrip16To8(l_int32 flag)
00078 {
00079     L_ERROR("function not present", "l_pngSetSTrip16To8");
00080     return;
00081 }
00082 
00083 void l_pngSetStripAlpha(l_int32 flag)
00084 {
00085     L_ERROR("function not present", "l_pngSetStripAlpha");
00086     return;
00087 }
00088 
00089 void l_pngSetWriteAlpha(l_int32 flag)
00090 {
00091     L_ERROR("function not present", "l_pngSetWriteAlpha");
00092     return;
00093 }
00094 
00095 void l_pngSetZlibCompression(l_int32 val)
00096 
00097 {
00098     L_ERROR("function not present", "l_pngSetZlibCompression");
00099     return;
00100 }
00101 
00102 PIX * pixReadMemPng(const l_uint8 *cdata, size_t size)
00103 {
00104     return (PIX * )ERROR_PTR("function not present", "pixReadMemPng", NULL);
00105 }
00106 
00107 l_int32 pixWriteMemPng(l_uint8 **pdata, size_t *psize, PIX *pix, l_float32 gamma)
00108 {
00109     return ERROR_INT("function not present", "pixWriteMemPng", 1);
00110 }
00111 
00112 /* --------------------------------------------*/
00113 #endif  /* !HAVE_LIBPNG */
00114 /* --------------------------------------------*/
00115 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines