2009-11-03 20:03:47 +01:00
|
|
|
/* resample.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-03 20:03:47 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2012-12-14 13:33:47 +01:00
|
|
|
#ifndef VIPS_RESAMPLE_H
|
|
|
|
#define VIPS_RESAMPLE_H
|
2009-11-03 20:03:47 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2016-03-09 23:47:02 +01:00
|
|
|
typedef enum {
|
|
|
|
VIPS_KERNEL_NEAREST,
|
|
|
|
VIPS_KERNEL_LINEAR,
|
|
|
|
VIPS_KERNEL_CUBIC,
|
2018-06-12 13:55:10 +02:00
|
|
|
VIPS_KERNEL_MITCHELL,
|
2016-03-09 23:47:02 +01:00
|
|
|
VIPS_KERNEL_LANCZOS2,
|
|
|
|
VIPS_KERNEL_LANCZOS3,
|
|
|
|
VIPS_KERNEL_LAST
|
|
|
|
} VipsKernel;
|
|
|
|
|
2017-01-06 14:43:43 +01:00
|
|
|
typedef enum {
|
|
|
|
VIPS_SIZE_BOTH,
|
|
|
|
VIPS_SIZE_UP,
|
|
|
|
VIPS_SIZE_DOWN,
|
2017-05-01 18:22:03 +02:00
|
|
|
VIPS_SIZE_FORCE,
|
2017-01-06 14:43:43 +01:00
|
|
|
VIPS_SIZE_LAST
|
|
|
|
} VipsSize;
|
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-06-15 15:21:33 +02:00
|
|
|
int vips_shrink( VipsImage *in, VipsImage **out,
|
2016-08-15 16:45:26 +02:00
|
|
|
double hshrink, double vshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-08-15 16:45:26 +02:00
|
|
|
int vips_shrinkh( VipsImage *in, VipsImage **out, int hshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-08-15 16:45:26 +02:00
|
|
|
int vips_shrinkv( VipsImage *in, VipsImage **out, int vshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2016-01-27 12:12:36 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-01-27 12:12:36 +01:00
|
|
|
int vips_reduce( VipsImage *in, VipsImage **out,
|
2016-08-15 16:45:26 +02:00
|
|
|
double hshrink, double vshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-08-15 16:45:26 +02:00
|
|
|
int vips_reduceh( VipsImage *in, VipsImage **out, double hshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-08-15 16:45:26 +02:00
|
|
|
int vips_reducev( VipsImage *in, VipsImage **out, double vshrink, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2015-10-31 13:15:48 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2016-11-02 12:07:30 +01:00
|
|
|
int vips_thumbnail( const char *filename, VipsImage **out, int width, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2017-05-12 19:20:37 +02:00
|
|
|
int vips_thumbnail_buffer( void *buf, size_t len, VipsImage **out,
|
|
|
|
int width, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2017-05-12 19:20:37 +02:00
|
|
|
int vips_thumbnail_image( VipsImage *in, VipsImage **out, int width, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2019-12-29 22:40:21 +01:00
|
|
|
int vips_thumbnail_source( VipsSource *source, VipsImage **out,
|
2019-10-12 18:37:31 +02:00
|
|
|
int width, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2016-11-02 12:07:30 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2013-10-03 12:56:35 +02:00
|
|
|
int vips_similarity( VipsImage *in, VipsImage **out, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2018-03-10 19:45:39 +01:00
|
|
|
int vips_rotate( VipsImage *in, VipsImage **out, double angle, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-12-14 13:33:47 +01:00
|
|
|
int vips_affine( VipsImage *in, VipsImage **out,
|
|
|
|
double a, double b, double c, double d, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2012-06-13 10:31:05 +02:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2015-10-31 13:15:48 +01:00
|
|
|
int vips_resize( VipsImage *in, VipsImage **out, double scale, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2015-10-31 13:15:48 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2015-11-16 21:32:48 +01:00
|
|
|
int vips_mapim( VipsImage *in, VipsImage **out, VipsImage *index, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2015-11-16 12:08:10 +01:00
|
|
|
|
2022-04-16 11:58:55 +02:00
|
|
|
VIPS_API
|
2012-12-18 14:43:46 +01:00
|
|
|
int vips_quadratic( VipsImage *in, VipsImage **out, VipsImage *coeff, ... )
|
2022-09-23 15:37:35 +02:00
|
|
|
G_GNUC_NULL_TERMINATED;
|
2012-12-18 14:43:46 +01:00
|
|
|
|
2009-11-03 20:03:47 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2012-12-14 13:33:47 +01:00
|
|
|
#endif /*VIPS_RESAMPLE_H*/
|