Leptonica 1.68
C Image Processing Library

webpiostub.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  *  webpiostub.c
00018  *
00019  *     Stubs for webpio.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_LIBWEBP   /* defined in environ.h */
00030 /* --------------------------------------------*/
00031 
00032 PIX * pixReadStreamWebP(FILE *fp)
00033 {
00034     return (PIX * )ERROR_PTR("function not present", "pixReadStreamWebP", NULL);
00035 }
00036 
00037 l_int32 readHeaderWebP(const char *filename, l_int32 *pwidth, l_int32 *pheight)
00038 {
00039     return ERROR_INT("function not present", "readHeaderWebP", 1);
00040 }
00041 
00042 l_int32 pixWriteWebP(const char *filename, PIX *pixs, l_int32 quality)
00043 {
00044     return ERROR_INT("function not present", "pixWriteWebP", 1);
00045 }
00046 
00047 l_int32 pixWriteStreamWebP(FILE *fp, PIX *pixs, l_int32 quality)
00048 {
00049     return ERROR_INT("function not present", "pixWriteStreamWebP", 1);
00050 }
00051 
00052 l_int32 pixWriteWebPwithTargetPSNR(const char *filename, PIX *pixs,
00053                                   l_float64 target_psnr, l_int32 *pquality)
00054 {
00055     return ERROR_INT("function not present", "pixWriteWebPwithTargetPSNR", 1);
00056 }
00057 
00058 /* --------------------------------------------*/
00059 #endif  /* !HAVE_LIBWEBP */
00060 /* --------------------------------------------*/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines