vips_shrink done

This commit is contained in:
John Cupitt 2012-06-13 09:31:05 +01:00
parent e9504c28f1
commit e286737042
5 changed files with 8 additions and 3 deletions

View File

@ -297,8 +297,6 @@ int vips_foreign_save( VipsImage *in, const char *filename, ... )
int vips_foreign_load_options( const char *filename, VipsImage **out );
int vips_foreign_save_options( VipsImage *in, const char *filename );
void vips_foreign_operation_init( void );
int vips_openslideload( const char *filename, VipsImage **out, ... )
__attribute__((sentinel));

View File

@ -286,6 +286,8 @@ void vips__init_wrap7_classes( void );
*/
void vips_arithmetic_operation_init( void );
void vips_conversion_operation_init( void );
void vips_resample_operation_init( void );
void vips_foreign_operation_init( void );
guint64 vips__parse_size( const char *size_string );

View File

@ -56,6 +56,10 @@ int im_match_linear_search( VipsImage *ref, VipsImage *sec, VipsImage *out,
int xr2, int yr2, int xs2, int ys2,
int hwindowsize, int hsearchsize );
int vips_shrink( VipsImage *in, VipsImage *out,
double xshrink, double yshrink, ... )
__attribute__((sentinel));
#ifdef __cplusplus
}
#endif /*__cplusplus*/

View File

@ -232,6 +232,7 @@ vips_init( const char *argv0 )
vips_arithmetic_operation_init();
vips_conversion_operation_init();
vips_foreign_operation_init();
vips_resample_operation_init();
/* Load up any plugins in the vips libdir. We don't error on failure,
* it's too annoying to have VIPS refuse to start because of a broken

View File

@ -355,7 +355,7 @@ vips_shrink_class_init( VipsShrinkClass *class )
vobject_class->description = _( "shrink an image" );
vobject_class->build = vips_shrink_build;
VIPS_ARG_DOUBLE( class, "xshrink", 9,
VIPS_ARG_DOUBLE( class, "xshrink", 8,
_( "Xshrink" ),
_( "Horizontal shrink factor" ),
VIPS_ARGUMENT_REQUIRED_INPUT,