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:
FunctionsTypes and Values
Object Hierarchy GObject
╰── VipsObject
├── VipsConnection
├── VipsOperation
├── VipsImage
├── VipsInterpolate
├── VipsRegion
├── VipsSbuf
╰── VipsThreadState
DescriptionThe VipsObject class and associated types and macros. VipsObject is the base class for all objects in libvips. It has the following major features: Functional class creation Vips objects have a very regular lifecycle: initialise, build, use, destroy. They behave rather like function calls and are free of side-effects. Run-time introspection Vips objects can be fully introspected at run-time. There is no need for separate source-code analysis. Command-line interface Any vips object can be run from
the command-line with the The VipsObject lifecycleVipsObject s have a strictly defined lifecycle, split broadly as construct and then use. In detail, the stages are:
The stages inside
VipsOperation has a cache of recent operation objects, see that class for
an explanation of Finally the stages inside close are:
VipsArgumentlibvips has a simple mechanism for automating at least some aspects of
See extending for a complete example. The VipsObject reference counting conventionVipsObject has a set of conventions to simplify reference counting.
See VipsOperation for an example of VipsObject reference counting. FunctionsVIPS_ARG_INTERPOLATE()#define VIPS_ARG_INTERPOLATE( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET ) VIPS_ARG_DOUBLE()#define VIPS_ARG_DOUBLE( CLASS, NAME, PRIORITY, LONG, DESC, \
FLAGS, OFFSET, MIN, MAX, VALUE )
VIPS_ARG_INT()#define VIPS_ARG_INT( CLASS, NAME, PRIORITY, LONG, DESC, \
FLAGS, OFFSET, MIN, MAX, VALUE )
VIPS_ARG_UINT64()#define VIPS_ARG_UINT64( CLASS, NAME, PRIORITY, LONG, DESC, \
FLAGS, OFFSET, MIN, MAX, VALUE )
VIPS_ARG_ENUM()#define VIPS_ARG_ENUM( CLASS, NAME, PRIORITY, LONG, DESC, \
FLAGS, OFFSET, TYPE, VALUE )
VIPS_ARG_FLAGS()#define VIPS_ARG_FLAGS( CLASS, NAME, PRIORITY, LONG, DESC, \
FLAGS, OFFSET, TYPE, VALUE )
VIPS_ARG_STRING()#define VIPS_ARG_STRING( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, \
VALUE )
vips_argument_get_id ()int
vips_argument_get_id (
Allocate a new property id. See [skip] vips__object_set_member ()void vips__object_set_member ( VipsArgumentMapFn ()void * (*VipsArgumentMapFn) ( vips_argument_map ()void * vips_argument_map ( Loop over the vips_arguments to an object. Stop when [skip] vips_object_get_args ()int vips_object_get_args ( Get all This is handy for language bindings. From C, it's usually more convenient to
use [skip] Parameters
VipsArgumentClassMapFn ()void * (*VipsArgumentClassMapFn) ( vips_argument_class_map ()void * vips_argument_class_map ( And loop over a class. Same as ^^, but with no VipsArgumentInstance. [skip] vips_argument_class_needsstring ()gboolean
vips_argument_class_needsstring (
vips_object_get_argument ()int vips_object_get_argument ( Look up the three things you need to work with a vips argument. [skip] vips_object_argument_isset ()gboolean vips_object_argument_isset ( Convenience: has an argument been assigned. Useful for bindings. vips_object_get_argument_flags ()VipsArgumentFlags vips_object_get_argument_flags ( Convenience: get the flags for an argument. Useful for bindings. vips_object_get_argument_priority ()int vips_object_get_argument_priority ( Convenience: get the priority for an argument. Useful for bindings. vips_object_set_property ()void vips_object_set_property ( vips_object_get_property ()void vips_object_get_property ( vips_object_summary_class ()void vips_object_summary_class ( Generate a human-readable summary for a class. [skip] vips_object_summary ()void vips_object_summary ( Generate a human-readable summary for an object. [skip] vips_object_dump ()void vips_object_dump ( Dump everything that vips knows about an object to a string. [skip] vips_object_class_install_argument ()void vips_object_class_install_argument ( vips_object_set_argument_from_string ()int vips_object_set_argument_from_string ( vips_object_argument_needsstring ()gboolean vips_object_argument_needsstring ( vips_object_get_argument_to_string ()int vips_object_get_argument_to_string ( vips_object_new ()VipsObject * vips_object_new ( g_object_new() the object, set any arguments with [skip] vips_object_set_valist ()int vips_object_set_valist ( See vips_object_set ()int vips_object_set ( Set a list of vips object arguments. For example:
Input arguments are given in-line, output arguments are given as pointers to where the output value should be written. See also: vips_object_set_from_string ()int vips_object_set_from_string ( Set object arguments from a string. The string can be something like "a=12", or "a = 12, b = 13", or "fred". The string can optionally be enclosed in brackets. You'd typically use this between creating the object and building it. See also: vips_object_new_from_string ()VipsObject * vips_object_new_from_string ( vips_object_to_string ()void vips_object_to_string ( The inverse of vips_object_map ()void * vips_object_map ( Call a function for all alive objects.
Stop when [skip] vips_type_map ()void * vips_type_map ( Map over a type's children. Stop when [skip] vips_type_map_all ()void * vips_type_map_all ( Map over a type's children, direct and indirect. Stop when [skip] vips_type_find ()GType vips_type_find ( Search below This function uses a cache, so it should be quick. See also: vips_nickname_find ()const char *
vips_nickname_find (
Return the VIPS nickname for a vips_class_map_all ()void * vips_class_map_all ( Loop over all the subclasses of [skip] vips_class_find ()const VipsObjectClass * vips_class_find ( Search below See also: vips_object_local_array ()VipsObject ** vips_object_local_array ( Make an array of NULL VipsObject pointers. When The array is NULL-terminated, ie. contains an extra NULL element at the end. Example:
See also: [skip] vips_object_unref_outputs ()void
vips_object_unref_outputs (
Unref all assigned output objects. Useful for language bindings. After an object is built, all output args are owned by the caller. If something goes wrong before then, we have to unref the outputs that have been made so far. This function can also be useful for callers when they've finished processing outputs themselves. See also: vips_object_get_description ()const char *
vips_object_get_description (
Fetch the object description. Useful for language bindings.
Types and Valuesenum VipsArgumentFlagsFlags we associate with each object argument. Have separate input & output flags. Both set is an error; neither set is OK. Input gobjects are automatically reffed, output gobjects automatically ref us. We also automatically watch for "destroy" and unlink.
Input args with VipsArgumenttypedef struct {
GParamSpec *pspec; /* pspec for this argument */
/* More stuff, see below */
} VipsArgument;
VipsArgumentClasstypedef struct {
VipsArgument parent;
/* The class of the object we are an arg for.
*/
VipsObjectClass *object_class;
VipsArgumentFlags flags;
int priority; /* Order args by this */
guint offset; /* G_STRUCT_OFFSET of member in object */
} VipsArgumentClass;
VipsArgumentInstancetypedef struct {
VipsArgument parent;
/* The class we are part of.
*/
VipsArgumentClass *argument_class;
/* The object we are attached to.
*/
VipsObject *object;
/* Has been set.
*/
gboolean assigned;
/* If this is an output argument, keep the id of our "close" handler
* here.
*/
gulong close_id;
/* We need to listen for "invalidate" on input images and send our own
* "invalidate" out. If we go, we need to disconnect.
*/
gulong invalidate_id;
} VipsArgumentInstance;
Property DetailsThe
|
object |
the object that is closing |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“postbuild” signalgint user_function (VipsObject *object, gpointer user_data)
The ::postbuild signal is emitted once just after successful object construction. Return non-zero to cause object construction to fail.
object |
the object that has been built |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“postclose” signalvoid user_function (VipsObject *object, gpointer user_data)
The ::postclose signal is emitted once after object close. The object pointer is still valid, but nothing else.
object |
the object that has closed |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“preclose” signalvoid user_function (VipsObject *object, gpointer user_data)
The ::preclose signal is emitted once just before object close starts. The oject is still alive.
object |
the object that is to close |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0065 ]-- |