Function

Vipscheck_vector

Declaration [src]

int
vips_check_vector (
  const char* domain,
  int n,
  VipsImage* im
)

Description [src]

Operations with a vector constant need a 1-element vector, or a vector with the same number of elements as there are bands in the image, or a 1-band image and a many-element vector.

See also: vips_error().

Parameters

domain const char*
 

The originating domain for the error message.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
n int
 

Number of elements in vector.

im VipsImage
 

Image to check against.

 The data is owned by the caller of the function.

Return value

Returns: int
 

0 if OK, -1 otherwise.