Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Functions
DescriptionThe VipsOperation class and associated types and macros. VipsOperation is the base class for all operations in libvips. It builds on VipsObject to provide the introspection and command-line interface to libvips. It also maintains a cache of recent operations. See below. vips_call(),
Use VipsOperation and reference countingAfter calling a VipsOperation you are responsible for unreffing any output objects. For example, consider:
This will invert If you don't need to use Consider running two operations, one after the other. You could write:
This is correct, but rather long-winded. libvips provides a handy thing to make a vector of auto-freeing object references. You can write this as:
where The VipsOperation cacheBecause all VipsObject are immutable, they can be cached. The cache is
very simple to use: instead of calling The cache size is controlled with Functionsvips_operation_get_flags ()VipsOperationFlags
vips_operation_get_flags (
Returns the set of flags for this operation. vips_operation_class_print_usage ()void
vips_operation_class_print_usage (
Print a usage message for the operation to stdout. [skip] vips_operation_call_valist ()int vips_operation_call_valist ( vips_operation_new ()VipsOperation *
vips_operation_new (
Return a new VipsOperation with the specified nickname. Useful for language bindings. You'll need to set
any arguments and build the operation before you can use it. See
[constructor] vips_call_required_optional ()int vips_call_required_optional ( This is the main entry point for the C and C++ varargs APIs. Beware, this can change vips_call ()int vips_call ( vips_call() calls the named operation, passing in required arguments and then setting any optional ones from the remainder of the arguments as a set of name/value pairs. For example,
Normally of course you'd just use the See also: vips_call_split_option_string ()int vips_call_split_option_string ( vips_cache_drop_all ()void
vips_cache_drop_all (
Drop the whole operation cache, handy for leak tracking. Also called
automatically on vips_cache_operation_lookup ()VipsOperation *
vips_cache_operation_lookup (
Look up an unbuilt vips_cache_operation_add ()void
vips_cache_operation_add (
Add a built operation to the cache. The cache will ref the operation. vips_cache_operation_buildp ()int
vips_cache_operation_buildp (
Look up If we miss, build and add [skip] vips_cache_operation_build ()VipsOperation *
vips_cache_operation_build (
A binding-friendly version of After calling this, vips_cache_print ()void
vips_cache_print (
Print the whole operation cache to stdout. Handy for debugging. vips_cache_set_max ()void
vips_cache_set_max (
Set the maximum number of operations we keep in cache. vips_cache_set_max_mem ()void
vips_cache_set_max_mem (
Set the maximum amount of tracked memory we allow before we start dropping
cached operations. See libvips only tracks memory it allocates, it can't track memory allocated by
external libraries. If you use an operation like See also: vips_cache_get_max ()int
vips_cache_get_max (
Get the maximum number of operations we keep in cache. vips_cache_get_size ()int
vips_cache_get_size (
Get the current number of operations in cache. vips_cache_get_max_mem ()size_t
vips_cache_get_max_mem (
Get the maximum amount of tracked memory we allow before we start dropping
cached operations. See See also: vips_cache_get_max_files ()int
vips_cache_get_max_files (
Get the maximum number of tracked files we allow before we start dropping
cached operations. See libvips only tracks file descriptors it allocates, it can't track ones
allocated by external libraries. If you use an operation like
See also: vips_cache_set_max_files ()void
vips_cache_set_max_files (
Set the maximum number of tracked files we allow before we start dropping
cached operations. See See also: vips_cache_set_dump ()void
vips_cache_set_dump (
Handy for debugging. Print the operation cache to stdout just before exit. See also: vips_cache_set_trace ()void
vips_cache_set_trace (
Handy for debugging. Print operation cache actions to stdout as we run. You can set the environment variable See also: vips_concurrency_set ()void
vips_concurrency_set (
Sets the number of worker threads that vips should use when running a VipsThreadPool. The special value 0 means "default". In this case, the number of threads is set by the environment variable VIPS_CONCURRENCY, or if that is not set, the number of threads availble on the host machine. See also: vips_concurrency_get ()int
vips_concurrency_get (
Returns the number of worker threads that vips should use when running a VipsThreadPool. vips gets this values from these sources in turn: If If If VIPS_CONCURRENCY has not been set, vips find the number of hardware threads that the host machine can run in parallel and uses that value. The final value is clipped to the range 1 - 1024. See also: Types and Valuesenum VipsOperationFlagsFlags we associate with an operation.
Every scan-line must be requested, you are not allowed to skip ahead, but as a special case, the very first request can be for a region not at the top of the image. In this case, the first part of the image will be read and discarded Every scan-line must be requested, you are not allowed to skip ahead, but as a special case, the very first request can be for a region not at the top of the image. In this case, the first part of the image will be read and discarded
Signal DetailsThe
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0116 ]-- |