Function

Vipscache_operation_buildp

since: 8.0

Declaration [src]

int
vips_cache_operation_buildp (
  VipsOperation** operation
)

Description [src]

Look up operation in the cache. If we get a hit, unref operation, ref the old one and return that through the argument pointer.

If we miss, build and add operation.

Operators that have been tagged as invalid by VipsImage::invalidate are removed from cache.

Operators with the VipsOperationFlags flag are never executed.

Operators with the VipsOperationFlags flag are always executed and any old cache value is replaced.

Operators with the VipsOperationFlags flag are never cached.

Available since: 8.0

This function is not directly available to language bindings.

Parameters

operation

Type: VipsOperation

Pointer to operation to lookup.

The data is owned by the caller of the function.

Return value

Type: int

0 on success, or -1 on error.