2009-11-02 23:01:09 +01:00
|
|
|
/* conversion.h
|
|
|
|
*
|
|
|
|
* 20/9/09
|
|
|
|
* - from proto.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
This file is part of VIPS.
|
|
|
|
|
|
|
|
VIPS 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 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program; 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-11-02 23:01:09 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2011-09-30 19:51:36 +02:00
|
|
|
#ifndef VIPS_CONVERSION_H
|
|
|
|
#define VIPS_CONVERSION_H
|
2009-11-02 23:01:09 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2011-10-16 15:48:47 +02:00
|
|
|
typedef enum {
|
2012-10-10 14:22:30 +02:00
|
|
|
VIPS_EXTEND_BLACK,
|
|
|
|
VIPS_EXTEND_COPY,
|
|
|
|
VIPS_EXTEND_REPEAT,
|
|
|
|
VIPS_EXTEND_MIRROR,
|
|
|
|
VIPS_EXTEND_WHITE,
|
|
|
|
VIPS_EXTEND_BACKGROUND,
|
|
|
|
VIPS_EXTEND_LAST
|
2011-10-16 15:48:47 +02:00
|
|
|
} VipsExtend;
|
|
|
|
|
2011-10-17 08:15:51 +02:00
|
|
|
typedef enum {
|
|
|
|
VIPS_DIRECTION_HORIZONTAL,
|
|
|
|
VIPS_DIRECTION_VERTICAL,
|
|
|
|
VIPS_DIRECTION_LAST
|
|
|
|
} VipsDirection;
|
|
|
|
|
2011-10-26 10:39:14 +02:00
|
|
|
typedef enum {
|
|
|
|
VIPS_ALIGN_LOW,
|
|
|
|
VIPS_ALIGN_CENTRE,
|
|
|
|
VIPS_ALIGN_HIGH,
|
|
|
|
VIPS_ALIGN_LAST
|
|
|
|
} VipsAlign;
|
|
|
|
|
2011-11-04 15:45:56 +01:00
|
|
|
typedef enum {
|
2014-09-29 14:56:55 +02:00
|
|
|
VIPS_ANGLE_D0,
|
|
|
|
VIPS_ANGLE_D90,
|
|
|
|
VIPS_ANGLE_D180,
|
|
|
|
VIPS_ANGLE_D270,
|
2011-11-04 15:45:56 +01:00
|
|
|
VIPS_ANGLE_LAST
|
|
|
|
} VipsAngle;
|
|
|
|
|
2013-10-19 19:26:46 +02:00
|
|
|
typedef enum {
|
2014-09-29 14:56:55 +02:00
|
|
|
VIPS_ANGLE45_D0,
|
|
|
|
VIPS_ANGLE45_D45,
|
|
|
|
VIPS_ANGLE45_D90,
|
|
|
|
VIPS_ANGLE45_D135,
|
|
|
|
VIPS_ANGLE45_D180,
|
|
|
|
VIPS_ANGLE45_D225,
|
|
|
|
VIPS_ANGLE45_D270,
|
|
|
|
VIPS_ANGLE45_D315,
|
2013-10-19 19:26:46 +02:00
|
|
|
VIPS_ANGLE45_LAST
|
|
|
|
} VipsAngle45;
|
|
|
|
|
2011-10-16 15:48:47 +02:00
|
|
|
int vips_copy( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-12-05 18:39:11 +01:00
|
|
|
int vips_tilecache( VipsImage *in, VipsImage **out, ... )
|
2011-12-05 13:19:56 +01:00
|
|
|
__attribute__((sentinel));
|
2012-08-23 15:51:57 +02:00
|
|
|
int vips_linecache( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-02-15 16:47:43 +01:00
|
|
|
int vips_sequential( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-01-13 14:15:56 +01:00
|
|
|
int vips_cache( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-05-30 17:29:58 +02:00
|
|
|
int vips_copy_file( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-01-13 14:15:56 +01:00
|
|
|
|
2011-10-16 15:48:47 +02:00
|
|
|
int vips_embed( VipsImage *in, VipsImage **out,
|
|
|
|
int x, int y, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-10-17 08:15:51 +02:00
|
|
|
int vips_flip( VipsImage *in, VipsImage **out, VipsDirection direction, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-10-24 17:21:42 +02:00
|
|
|
int vips_insert( VipsImage *main, VipsImage *sub, VipsImage **out,
|
|
|
|
int x, int y, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-09-03 15:32:55 +02:00
|
|
|
int vips_join( VipsImage *in1, VipsImage *in2, VipsImage **out,
|
2011-10-26 10:39:14 +02:00
|
|
|
VipsDirection direction, ... )
|
2015-12-11 16:14:08 +01:00
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_arrayjoin( VipsImage **in, VipsImage **out, int n, ... )
|
2011-10-26 10:39:14 +02:00
|
|
|
__attribute__((sentinel));
|
2014-09-03 15:32:55 +02:00
|
|
|
int vips_extract_area( VipsImage *in, VipsImage **out,
|
2011-10-26 16:09:01 +02:00
|
|
|
int left, int top, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-09-03 15:32:55 +02:00
|
|
|
int vips_crop( VipsImage *in, VipsImage **out,
|
2013-11-11 15:28:41 +01:00
|
|
|
int left, int top, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-09-03 15:32:55 +02:00
|
|
|
int vips_extract_band( VipsImage *in, VipsImage **out, int band, ... )
|
2011-10-26 16:09:01 +02:00
|
|
|
__attribute__((sentinel));
|
2011-10-26 17:51:27 +02:00
|
|
|
int vips_replicate( VipsImage *in, VipsImage **out, int across, int down, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-05-30 16:52:36 +02:00
|
|
|
int vips_grid( VipsImage *in, VipsImage **out,
|
|
|
|
int tile_height, int across, int down, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-05-31 19:12:39 +02:00
|
|
|
int vips_wrap( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-06-03 15:37:55 +02:00
|
|
|
int vips_rot( VipsImage *in, VipsImage **out, VipsAngle angle, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-10-20 13:30:54 +02:00
|
|
|
int vips_rot45( VipsImage *in, VipsImage **out, ... )
|
2013-10-19 19:26:46 +02:00
|
|
|
__attribute__((sentinel));
|
2016-04-12 19:31:19 +02:00
|
|
|
VipsAngle vips_autorot_get_angle( VipsImage *image );
|
2016-04-13 09:39:29 +02:00
|
|
|
void vips_autorot_remove_angle( VipsImage *image );
|
2014-10-19 11:35:10 +02:00
|
|
|
int vips_autorot( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-06-01 11:56:16 +02:00
|
|
|
int vips_zoom( VipsImage *in, VipsImage **out, int xfac, int yfac, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-06-01 22:31:45 +02:00
|
|
|
int vips_subsample( VipsImage *in, VipsImage **out, int xfac, int yfac, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-11-18 15:34:33 +01:00
|
|
|
|
2011-10-27 13:10:24 +02:00
|
|
|
int vips_cast( VipsImage *in, VipsImage **out, VipsBandFormat format, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_uchar( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_char( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_ushort( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_short( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_uint( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_int( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_float( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_double( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_complex( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2011-11-19 12:24:04 +01:00
|
|
|
int vips_cast_dpcomplex( VipsImage *in, VipsImage **out, ... )
|
2011-11-18 15:34:33 +01:00
|
|
|
__attribute__((sentinel));
|
2013-05-30 17:29:58 +02:00
|
|
|
int vips_scale( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-06-03 11:26:09 +02:00
|
|
|
int vips_msb( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2015-06-05 14:56:26 +02:00
|
|
|
int vips_byteswap( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-11-18 15:34:33 +01:00
|
|
|
|
2011-10-28 15:12:39 +02:00
|
|
|
int vips_bandjoin( VipsImage **in, VipsImage **out, int n, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandjoin2( VipsImage *in1, VipsImage *in2, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2015-12-30 17:30:56 +01:00
|
|
|
int vips_bandjoin_const( VipsImage *in, VipsImage **out, double *c, int n, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandjoin_const1( VipsImage *in, VipsImage **out, double c, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-10-23 15:54:22 +02:00
|
|
|
int vips_bandrank( VipsImage **in, VipsImage **out, int n, ... )
|
2011-11-20 10:56:02 +01:00
|
|
|
__attribute__((sentinel));
|
2015-06-05 15:52:05 +02:00
|
|
|
int vips_bandfold( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandunfold( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-12-07 12:17:09 +01:00
|
|
|
|
|
|
|
int vips_bandbool( VipsImage *in, VipsImage **out,
|
2014-09-03 15:32:55 +02:00
|
|
|
VipsOperationBoolean boolean, ... )
|
2012-12-07 12:17:09 +01:00
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandand( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandor( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_bandeor( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-10-23 15:54:22 +02:00
|
|
|
int vips_bandmean( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-12-07 12:17:09 +01:00
|
|
|
|
2011-11-20 10:56:02 +01:00
|
|
|
int vips_recomb( VipsImage *in, VipsImage **out, VipsImage *m, ... )
|
|
|
|
__attribute__((sentinel));
|
2012-12-07 12:17:09 +01:00
|
|
|
|
2011-11-15 22:49:49 +01:00
|
|
|
int vips_ifthenelse( VipsImage *cond, VipsImage *in1, VipsImage *in2,
|
|
|
|
VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2015-05-08 11:26:23 +02:00
|
|
|
|
2012-06-18 15:49:39 +02:00
|
|
|
int vips_flatten( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2015-05-08 00:42:02 +02:00
|
|
|
int vips_premultiply( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2015-05-08 11:26:23 +02:00
|
|
|
int vips_unpremultiply( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2011-09-30 19:51:36 +02:00
|
|
|
|
2013-08-02 10:41:11 +02:00
|
|
|
int vips_falsecolour( VipsImage *in, VipsImage **out, ... )
|
|
|
|
__attribute__((sentinel));
|
2013-11-11 15:57:55 +01:00
|
|
|
int vips_gamma( VipsImage *in, VipsImage **out, ... )
|
2013-08-02 10:41:11 +02:00
|
|
|
__attribute__((sentinel));
|
2011-02-16 15:40:31 +01:00
|
|
|
|
2009-11-02 23:01:09 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2011-09-30 19:51:36 +02:00
|
|
|
#endif /*VIPS_CONVERSION_H*/
|