add SEQ operation hint to conv

conv operations can run sequentially over images
This commit is contained in:
John Cupitt 2013-11-22 09:19:35 +00:00
parent 54dcea8c3d
commit 64b5b9e514
4 changed files with 12 additions and 0 deletions

View File

@ -104,6 +104,7 @@ vips_convolution_class_init( VipsConvolutionClass *class )
{
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS( class );
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS( class );
gobject_class->set_property = vips_object_set_property;
gobject_class->get_property = vips_object_get_property;
@ -112,6 +113,8 @@ vips_convolution_class_init( VipsConvolutionClass *class )
vobject_class->description = _( "convolution operations" );
vobject_class->build = vips_convolution_build;
operation_class->flags = VIPS_OPERATION_SEQUENTIAL;
/* Inputs set by subclassess.
*/

View File

@ -131,6 +131,7 @@ vips_correlation_class_init( VipsCorrelationClass *class )
{
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
VipsObjectClass *object_class = (VipsObjectClass *) class;
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS( class );
gobject_class->set_property = vips_object_set_property;
gobject_class->get_property = vips_object_get_property;
@ -139,6 +140,8 @@ vips_correlation_class_init( VipsCorrelationClass *class )
object_class->description = _( "correlation operation" );
object_class->build = vips_correlation_build;
operation_class->flags = VIPS_OPERATION_SEQUENTIAL;
VIPS_ARG_IMAGE( class, "in", 0,
_( "Input" ),
_( "Input image argument" ),

View File

@ -102,6 +102,7 @@ vips_gaussblur_class_init( VipsGaussblurClass *class )
{
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
VipsObjectClass *object_class = (VipsObjectClass *) class;
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS( class );
gobject_class->set_property = vips_object_set_property;
gobject_class->get_property = vips_object_get_property;
@ -110,6 +111,8 @@ vips_gaussblur_class_init( VipsGaussblurClass *class )
object_class->description = _( "Unsharp masking for print" );
object_class->build = vips_gaussblur_build;
operation_class->flags = VIPS_OPERATION_SEQUENTIAL;
VIPS_ARG_IMAGE( class, "in", 1,
_( "Input" ),
_( "Input image" ),

View File

@ -295,6 +295,7 @@ vips_sharpen_class_init( VipsSharpenClass *class )
{
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
VipsObjectClass *object_class = (VipsObjectClass *) class;
VipsOperationClass *operation_class = VIPS_OPERATION_CLASS( class );
gobject_class->set_property = vips_object_set_property;
gobject_class->get_property = vips_object_get_property;
@ -303,6 +304,8 @@ vips_sharpen_class_init( VipsSharpenClass *class )
object_class->description = _( "Unsharp masking for print" );
object_class->build = vips_sharpen_build;
operation_class->flags = VIPS_OPERATION_SEQUENTIAL;
VIPS_ARG_IMAGE( class, "in", 1,
_( "Input" ),
_( "Input image" ),