2009-10-02 17:40:52 +02:00
|
|
|
/* Error handling.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Copyright (C) 1991-2005 The National Gallery
|
|
|
|
|
2012-09-17 12:52:32 +02:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2009-10-02 17:40:52 +02:00
|
|
|
|
2012-09-17 12:52:32 +02:00
|
|
|
This library is distributed in the hope that it will be useful,
|
2009-10-02 17:40:52 +02:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-09-17 12:52:32 +02:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2009-10-02 17:40:52 +02:00
|
|
|
|
2012-09-17 12:52:32 +02:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
2013-03-07 06:40:19 +01:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
02110-1301 USA
|
2009-10-02 17:40:52 +02:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2011-03-28 18:18:06 +02:00
|
|
|
#ifndef VIPS_ERROR_H
|
|
|
|
#define VIPS_ERROR_H
|
2009-10-02 17:40:52 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
const char *vips_error_buffer( void );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2019-09-12 10:49:49 +02:00
|
|
|
char *vips_error_buffer_copy( void );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
void vips_error_clear( void );
|
2009-10-02 17:40:52 +02:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2013-07-04 10:43:57 +02:00
|
|
|
void vips_error_freeze( void );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2013-07-04 10:43:57 +02:00
|
|
|
void vips_error_thaw( void );
|
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
void vips_error( const char *domain, const char *fmt, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_PRINTF( 2, 3 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
void vips_verror( const char *domain, const char *fmt, va_list ap );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
void vips_error_system( int err, const char *domain, const char *fmt, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_PRINTF( 3, 4 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-24 13:51:52 +01:00
|
|
|
void vips_verror_system( int err, const char *domain,
|
2009-10-02 17:40:52 +02:00
|
|
|
const char *fmt, va_list ap );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-05-16 18:10:08 +02:00
|
|
|
void vips_error_g( GError **error );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2014-04-19 16:15:25 +02:00
|
|
|
void vips_g_error( GError **error );
|
2009-10-02 17:40:52 +02:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-02-26 15:46:38 +01:00
|
|
|
void vips_error_exit( const char *fmt, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NORETURN G_GNUC_PRINTF( 1, 2 );
|
2011-02-26 15:46:38 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_uncoded( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-09-20 16:13:44 +02:00
|
|
|
int vips_check_coding( const char *domain, VipsImage *im, VipsCoding coding );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_coding_known( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_coding_noneorlabq( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_coding_same( const char *domain, VipsImage *im1, VipsImage *im2 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_mono( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_bands( const char *domain, VipsImage *im, int bands );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2014-09-03 15:32:55 +02:00
|
|
|
int vips_check_bands_1or3( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-09-20 16:13:44 +02:00
|
|
|
int vips_check_bands_atleast( const char *domain, VipsImage *im, int bands );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_bands_1orn( const char *domain, VipsImage *im1, VipsImage *im2 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_bands_1orn_unary( const char *domain, VipsImage *im, int n );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_bands_same( const char *domain, VipsImage *im1, VipsImage *im2 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_bandno( const char *domain, VipsImage *im, int bandno );
|
2014-12-16 21:48:11 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_int( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_uint( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_uintorf( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_noncomplex( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_complex( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2015-11-16 15:58:51 +01:00
|
|
|
int vips_check_twocomponents( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_format( const char *domain, VipsImage *im, VipsBandFormat fmt );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_u8or16( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_8or16( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_u8or16orf( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_format_same( const char *domain, VipsImage *im1, VipsImage *im2 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_size_same( const char *domain, VipsImage *im1, VipsImage *im2 );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2013-10-15 22:21:35 +02:00
|
|
|
int vips_check_oddsquare( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-09-18 15:14:08 +02:00
|
|
|
int vips_check_vector_length( const char *domain, int n, int len );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_vector( const char *domain, int n, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2011-03-25 18:04:26 +01:00
|
|
|
int vips_check_hist( const char *domain, VipsImage *im );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-11-08 14:34:37 +01:00
|
|
|
int vips_check_matrix( const char *domain, VipsImage *im, VipsImage **out );
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2013-10-25 15:37:43 +02:00
|
|
|
int vips_check_separable( const char *domain, VipsImage *im );
|
2012-11-08 14:34:37 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2014-12-16 21:48:11 +01:00
|
|
|
int vips_check_precision_intfloat( const char *domain,
|
|
|
|
VipsPrecision precision );
|
|
|
|
|
2009-10-02 17:40:52 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2011-03-28 18:18:06 +02:00
|
|
|
#endif /*VIPS_ERROR_H*/
|