sharp 0.32.6 → 0.33.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/install/check.js +36 -0
- package/lib/constructor.js +6 -5
- package/lib/index.d.ts +13 -16
- package/lib/input.js +34 -8
- package/lib/is.js +28 -14
- package/lib/libvips.js +70 -57
- package/lib/output.js +41 -24
- package/lib/resize.js +46 -46
- package/lib/sharp.js +58 -27
- package/lib/utility.js +19 -25
- package/package.json +45 -40
- package/{binding.gyp → src/binding.gyp} +68 -42
- package/src/common.cc +5 -4
- package/src/common.h +6 -5
- package/src/metadata.cc +5 -5
- package/src/operations.cc +5 -2
- package/src/operations.h +1 -1
- package/src/pipeline.cc +19 -19
- package/src/pipeline.h +5 -1
- package/src/sharp.cc +6 -7
- package/src/stats.cc +5 -5
- package/src/utilities.cc +15 -5
- package/install/can-compile.js +0 -14
- package/install/dll-copy.js +0 -40
- package/install/libvips.js +0 -222
- package/lib/agent.js +0 -44
- package/lib/platform.js +0 -30
- package/src/libvips/cplusplus/VConnection.cpp +0 -151
- package/src/libvips/cplusplus/VError.cpp +0 -49
- package/src/libvips/cplusplus/VImage.cpp +0 -1548
- package/src/libvips/cplusplus/VInterpolate.cpp +0 -62
- package/src/libvips/cplusplus/VRegion.cpp +0 -27
- package/src/libvips/cplusplus/vips-operators.cpp +0 -3760
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* Object part of VInterpolate class
|
|
2
|
-
*/
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
|
|
6
|
-
Copyright (C) 1991-2001 The National Gallery
|
|
7
|
-
|
|
8
|
-
This program is free software; you can redistribute it and/or modify
|
|
9
|
-
it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
-
the Free Software Foundation; either version 2 of the License, or
|
|
11
|
-
(at your option) any later version.
|
|
12
|
-
|
|
13
|
-
This program is distributed in the hope that it will be useful,
|
|
14
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
GNU Lesser General Public License for more details.
|
|
17
|
-
|
|
18
|
-
You should have received a copy of the GNU Lesser General Public License
|
|
19
|
-
along with this program; if not, write to the Free Software
|
|
20
|
-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
21
|
-
02110-1301 USA
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
|
|
27
|
-
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
#ifdef HAVE_CONFIG_H
|
|
32
|
-
#include <config.h>
|
|
33
|
-
#endif /*HAVE_CONFIG_H*/
|
|
34
|
-
|
|
35
|
-
#include <vips/vips8>
|
|
36
|
-
|
|
37
|
-
#include <vips/debug.h>
|
|
38
|
-
|
|
39
|
-
/*
|
|
40
|
-
#define VIPS_DEBUG
|
|
41
|
-
#define VIPS_DEBUG_VERBOSE
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
VIPS_NAMESPACE_START
|
|
45
|
-
|
|
46
|
-
VInterpolate
|
|
47
|
-
VInterpolate::new_from_name( const char *name, VOption *options )
|
|
48
|
-
{
|
|
49
|
-
VipsInterpolate *interp;
|
|
50
|
-
|
|
51
|
-
if( !(interp = vips_interpolate_new( name )) ) {
|
|
52
|
-
delete options;
|
|
53
|
-
throw VError();
|
|
54
|
-
}
|
|
55
|
-
delete options;
|
|
56
|
-
|
|
57
|
-
VInterpolate out( interp );
|
|
58
|
-
|
|
59
|
-
return( out );
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
VIPS_NAMESPACE_END
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Object part of VRegion class
|
|
2
|
-
|
|
3
|
-
#ifdef HAVE_CONFIG_H
|
|
4
|
-
#include <config.h>
|
|
5
|
-
#endif /*HAVE_CONFIG_H*/
|
|
6
|
-
|
|
7
|
-
#include <vips/vips8>
|
|
8
|
-
|
|
9
|
-
#include <vips/debug.h>
|
|
10
|
-
|
|
11
|
-
VIPS_NAMESPACE_START
|
|
12
|
-
|
|
13
|
-
VRegion
|
|
14
|
-
VRegion::new_from_image( VImage image )
|
|
15
|
-
{
|
|
16
|
-
VipsRegion *region;
|
|
17
|
-
|
|
18
|
-
if( !(region = vips_region_new( image.get_image() )) ) {
|
|
19
|
-
throw VError();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
VRegion out( region );
|
|
23
|
-
|
|
24
|
-
return( out );
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
VIPS_NAMESPACE_END
|