2015-01-30 22:19:58 +01:00
|
|
|
// VIPS interpolate wrapper
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
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
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
02110-1301 USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VIPS_VINTERPOLATE_H
|
|
|
|
#define VIPS_VINTERPOLATE_H
|
|
|
|
|
|
|
|
#include <vips/vips.h>
|
|
|
|
|
|
|
|
VIPS_NAMESPACE_START
|
|
|
|
|
2020-08-18 02:28:40 +02:00
|
|
|
/**
|
|
|
|
* An interpolation. You can pass one of these to something like
|
|
|
|
* VImage::affine for it to use to interpolate pixels.
|
|
|
|
*
|
|
|
|
* The available interpolators vary a bit with your libvips version and how it
|
2020-08-20 08:05:13 +02:00
|
|
|
* was built, but will include `nearest`, `bilinear` and `bicubic`. Run
|
|
|
|
* vips -l interpolate` to see them all.
|
2020-08-18 02:28:40 +02:00
|
|
|
*/
|
2020-08-19 16:08:28 +02:00
|
|
|
class VInterpolate : public VObject
|
2015-01-30 22:19:58 +01:00
|
|
|
{
|
|
|
|
public:
|
2020-08-17 20:16:03 +02:00
|
|
|
/**
|
|
|
|
* Create a VInterpolate that wraps a VipsInterpolate object. If steal
|
|
|
|
* is STEAL, then this VInterpolate takes over ownership of the libvips
|
|
|
|
* object and will automatically unref it.
|
|
|
|
*/
|
2015-01-30 22:19:58 +01:00
|
|
|
VInterpolate( VipsInterpolate *interpolate, VSteal steal = STEAL ) :
|
|
|
|
VObject( (VipsObject *) interpolate, steal )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-08-17 20:16:03 +02:00
|
|
|
/**
|
|
|
|
* Create a VInterpolate from a name, for example `"bicubic"`.
|
|
|
|
*/
|
2015-01-30 22:19:58 +01:00
|
|
|
static
|
2019-11-12 15:03:25 +01:00
|
|
|
VInterpolate new_from_name( const char *name, VOption *options = 0 );
|
2015-01-30 22:19:58 +01:00
|
|
|
|
2020-08-17 20:16:03 +02:00
|
|
|
/**
|
|
|
|
* Get a pointer to the underlying VipsInterpolate object.
|
|
|
|
*/
|
2015-01-30 22:19:58 +01:00
|
|
|
VipsInterpolate *
|
2018-06-11 16:24:11 +02:00
|
|
|
get_interpolate() const
|
2015-01-30 22:19:58 +01:00
|
|
|
{
|
|
|
|
return( (VipsInterpolate *) VObject::get_object() );
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
VIPS_NAMESPACE_END
|
|
|
|
|
2019-11-08 13:47:37 +01:00
|
|
|
#endif /*VIPS_VINTERPOLATE_H*/
|