Callbacks

ArgumentClassMapFn (object_class, pspec, argument_class, a, b)

ArgumentMapFn (object, pspec, argument_class, argument_instance, a, b)

CallbackFn (a, b)

ClassMapFn (cls, a)

GenerateFn (out, seq, a, b, stop)

ImageMapFn (image, name, value, a)

InterpolateMethod (interpolate, out, in_, x, y)

ObjectSetArguments (object, a, b)

OperationBuildFn (object)

SListFold2Fn (item, a, b, c)

SListMap2Fn (item, a, b)

SListMap4Fn (item, a, b, c, d)

StartFn (out, a, b)

StopFn (seq, a, b)

TypeMap2Fn (type, a, b)

TypeMapFn (type, a)

Details

Vips.ArgumentClassMapFn(object_class, pspec, argument_class, a, b)
Parameters:
Return type:

object or None

Vips.ArgumentMapFn(object, pspec, argument_class, argument_instance, a, b)
Parameters:
Return type:

object or None

Vips.CallbackFn(a, b)
Parameters:
Return type:

int

Vips.ClassMapFn(cls, a)
Parameters:
Return type:

object or None

Vips.GenerateFn(out, seq, a, b, stop)
Parameters:
Returns:

0 on success, -1 on error.

Return type:

int

Fill out->valid with pixels. seq contains per-thread state, such as the input regions. Set stop to True to stop processing.

See also: vips_image_generate(), vips_stop_many().

Vips.ImageMapFn(image, name, value, a)
Parameters:
Return type:

object or None

Vips.InterpolateMethod(interpolate, out, in_, x, y)
Parameters:
  • interpolate (Vips.Interpolate) – the interpolator

  • out (object or None) – write the interpolated pixel here

  • in (Vips.Region) – read source pixels from here

  • x (float) – interpolate value at this position

  • y (float) – interpolate value at this position

An interpolation function. It should read source pixels from in with VIPS_REGION_ADDR(), it can look left and up from (x, y) by window_offset pixels and it can access pixels in a window of size window_size.

The interpolated value should be written to the pixel pointed to by out.

See also: Vips.InterpolateClass.

Vips.ObjectSetArguments(object, a, b)
Parameters:
Return type:

object or None

Vips.OperationBuildFn(object)
Parameters:

object (Vips.Object) –

Return type:

bool

Vips.SListFold2Fn(item, a, b, c)
Parameters:
Return type:

object or None

Vips.SListMap2Fn(item, a, b)
Parameters:
Return type:

object or None

Vips.SListMap4Fn(item, a, b, c, d)
Parameters:
Return type:

object or None

Vips.StartFn(out, a, b)
Parameters:
Returns:

a new sequence value

Return type:

object or None

Start a new processing sequence for this generate function. This allocates per-thread state, such as an input region.

See also: vips_start_one(), vips_start_many().

Vips.StopFn(seq, a, b)
Parameters:
Returns:

0 on success, -1 on error.

Return type:

int

Stop a processing sequence. This frees per-thread state, such as an input region.

See also: vips_stop_one(), vips_stop_many().

Vips.TypeMap2Fn(type, a, b)
Parameters:
Return type:

object or None

Vips.TypeMapFn(type, a)
Parameters:
Return type:

object or None