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:
FunctionsDescriptionVIPS maintains an error buffer (a log of localised text messages), a set of functions for adding messages, and a way to access and clear the buffer. The error buffer is global, that is, it is shared between all threads. You can add to the buffer from any thread (there is a lock to prevent corruption), but it's sensible to only read and clear the buffer from the main thread of execution. The general principle is: if you detect an error, log a message for the user. If a function you call detects an error, just propogate it and don't add another message.
The domain argument most of these functions take is not localised and is supposed to indicate the component which failed. libvips uses
Functionsvips_error_buffer ()const char *
vips_error_buffer (
Get a pointer to the start of the error buffer as a C string. The string is owned by the error system and must not be freed. See also: vips_error_buffer_copy ()char *
vips_error_buffer_copy (
Return a copy of the vips error buffer, and clear it. vips_error_clear ()void
vips_error_clear (
Clear and reset the error buffer. This is typically called after presenting an error to the user. See also: vips_error_freeze ()void
vips_error_freeze (
Stop errors being logged. Use vips_error ()void vips_error ( Format the string in the style of See also: vips_verror ()void vips_verror ( Append a message to the error buffer. See also: vips_error_system ()void vips_error_system ( Format the string in the style of See also: vips_verror_system ()void vips_verror_system ( Format the string in the style of See also: vips_error_g ()void
vips_error_g (
This function sets the glib error pointer from the vips error buffer and clears it. It's handy for returning errors to glib functions from vips. See See also: vips_g_error ()void
vips_g_error (
This function adds the See also: vips_error_exit ()void vips_error_exit ( Sends a formatted error message to stderr, then sends the contents of the error buffer, if any, then shuts down vips and terminates the program with an error code.
See also: vips_check_uncoded ()int vips_check_uncoded ( Check that the image is not coded. If not, set an error message and return non-zero. See also: vips_check_coding ()int vips_check_coding ( Check that the image has the required See also: vips_check_coding_known ()int vips_check_coding_known ( Check that the image is uncoded, LABQ coded or RAD coded. If not, set an error message and return non-zero. See also: vips_check_coding_noneorlabq ()int vips_check_coding_noneorlabq ( Check that the image is uncoded or LABQ coded. If not, set an error message and return non-zero. See also: vips_check_coding_same ()int vips_check_coding_same ( Check that the images have the same coding. If not, set an error message and return non-zero. See also: vips_check_mono ()int vips_check_mono ( Check that the image has exactly one band. Otherwise set an error message and return non-zero. See also: vips_check_bands ()int vips_check_bands ( Check that the image has See also: vips_check_bands_1or3 ()int vips_check_bands_1or3 ( Check that the image has either one or three bands. Otherwise set an error message and return non-zero. See also: vips_check_bands_atleast ()int vips_check_bands_atleast ( Check that the image has at least See also: vips_check_bands_1orn ()int vips_check_bands_1orn ( Check that the images have the same number of bands, or that one of the images has just 1 band. If not, set an error message and return non-zero. See also: vips_check_bands_1orn_unary ()int vips_check_bands_1orn_unary ( Check that an image has 1 or See also: vips_check_bands_same ()int vips_check_bands_same ( Check that the images have the same number of bands. If not, set an error message and return non-zero. See also: vips_check_bandno ()int vips_check_bandno (
See also: vips_check_int ()int vips_check_int ( Check that the image is in one of the integer formats. Otherwise set an error message and return non-zero. See also: vips_check_uint ()int vips_check_uint ( Check that the image is in one of the unsigned integer formats. Otherwise set an error message and return non-zero. See also: vips_check_uintorf ()int vips_check_uintorf ( Check that the image is unsigned int or float. Otherwise set an error message and return non-zero. See also: vips_check_noncomplex ()int vips_check_noncomplex ( Check that the image is not complex. Otherwise set an error message and return non-zero. See also: vips_check_complex ()int vips_check_complex ( Check that the image is complex. Otherwise set an error message and return non-zero. See also: vips_check_twocomponents ()int vips_check_twocomponents ( Check that the image is has two "components", ie. is a one-band complex or a two-band non-complex. Otherwise set an error message and return non-zero. See also: vips_check_format ()int vips_check_format ( Check that the image has the specified format. Otherwise set an error message and return non-zero. See also: vips_check_u8or16 ()int vips_check_u8or16 ( Check that the image is 8 or 16-bit unsigned integer. Otherwise set an error message and return non-zero. See also: vips_check_8or16 ()int vips_check_8or16 ( Check that the image is 8 or 16-bit integer, signed or unsigned. Otherwise set an error message and return non-zero. See also: vips_check_u8or16orf ()int vips_check_u8or16orf ( Check that the image is 8 or 16-bit unsigned integer, or float. Otherwise set an error message and return non-zero. See also: vips_check_format_same ()int vips_check_format_same ( Check that the images have the same format. If not, set an error message and return non-zero. See also: vips_check_size_same ()int vips_check_size_same ( Check that the images have the same size. If not, set an error message and return non-zero. See also: vips_check_oddsquare ()int vips_check_oddsquare ( Check that the image is square and that the sides are odd. If not, set an error message and return non-zero. See also: vips_check_vector_length ()int vips_check_vector_length ( Check that See also: vips_check_vector ()int vips_check_vector ( 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. See also: vips_check_hist ()int vips_check_hist ( Histogram images must have width or height 1, and must not have more than 65536 elements. Return 0 if the image will pass as a histogram, or -1 and set an error message otherwise. See also: vips_check_matrix ()int vips_check_matrix ( Matrix images must have width and height less than 100000 and have 1 band. Return 0 if the image will pass as a matrix, or -1 and set an error message otherwise.
You must unref See also: vips_check_separable ()int vips_check_separable ( Separable matrix images must have width or height 1. Return 0 if the image will pass, or -1 and set an error message otherwise. See also: vips_check_precision_intfloat ()int vips_check_precision_intfloat ( Check that See also: |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.014 ]-- |