From 057703938e76083f78760d64ece983dcf7be65ff Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Wed, 27 Jul 2022 11:56:56 +0200 Subject: [PATCH] Remove remnant of Autotools (#2950) * Remove `glib-mkenums` autotools templates and generated files Meson uses the `enumtypes.c.in` and `enumtypes.h.in` in `libvips/include/vips` and doesn't use the pre-generated files. * Remove man files for no longer existing tools + update the `meson.build`. * Remove Autotools section in `.gitignore` * Remove `po/messages` left-over * Remove `g-ir-scanner` entry point No longer needed by Meson. * Remove `glib-genmarshal` generated files Meson doesn't use these pre-generated files. * Remove Autotools specific Git attributes * Remove no longer existing tools in `.gitignore` * Remove Make specific things in `.gitignore` * Rename COPYING to LICENSE * Remove no longer needed `.gitignore` sections Meson only supports out-of-tree builds. This assumes that the build directory is ignored. * Remove no longer needed `.editorconfig` sections --- .editorconfig | 8 - .gitattributes | 5 +- .gitignore | 114 --- COPYING => LICENSE | 0 libvips/include/vips/enumtemplate | 23 - libvips/include/vips/enumtypes.h | 174 ----- libvips/introspect.c | 119 --- libvips/iofuncs/enumtemplate | 39 - libvips/iofuncs/enumtypes.c | 1175 ----------------------------- libvips/iofuncs/vipsmarshal.c | 169 ----- libvips/iofuncs/vipsmarshal.h | 39 - man/batch_crop.1 | 22 - man/batch_image_convert.1 | 29 - man/batch_rubber_sheet.1 | 30 - man/light_correct.1 | 39 - man/meson.build | 4 - po/messages | Bin 349 -> 0 bytes 17 files changed, 1 insertion(+), 1988 deletions(-) rename COPYING => LICENSE (100%) delete mode 100644 libvips/include/vips/enumtemplate delete mode 100644 libvips/include/vips/enumtypes.h delete mode 100644 libvips/introspect.c delete mode 100644 libvips/iofuncs/enumtemplate delete mode 100644 libvips/iofuncs/enumtypes.c delete mode 100644 libvips/iofuncs/vipsmarshal.c delete mode 100644 libvips/iofuncs/vipsmarshal.h delete mode 100644 man/batch_crop.1 delete mode 100644 man/batch_image_convert.1 delete mode 100644 man/batch_rubber_sheet.1 delete mode 100644 man/light_correct.1 delete mode 100644 po/messages diff --git a/.editorconfig b/.editorconfig index c11c6bfe..472f038f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,11 +13,3 @@ indent_size = 8 [*.py] indent_style = space indent_size = 4 - -[Makefile.am] -indent_style = tab -indent_size = 8 - -[configure.ac] -indent_style = space -indent_size = 2 diff --git a/.gitattributes b/.gitattributes index edf14592..0f3cf3c4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,2 @@ -# Shell scripts and Automake sources can't have CRLF line endings -configure.ac eol=lf -Makefile.am eol=lf -*.m4 eol=lf +# Shell scripts sources can't have CRLF line endings *.sh eol=lf diff --git a/.gitignore b/.gitignore index 0924987b..6461c54e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,120 +25,6 @@ __pycache__/ .pytest_cache/ ### End of Python -### Autotools -# https://www.gnu.org/software/automake/ -.deps/ -.libs/ -*.log -*.trs -.dirstamp -Makefile.in -py-compile -test-driver - -# https://www.gnu.org/software/autoconf/ -autom4te.cache/ -aclocal.m4 -compile -config.guess -config.h -config.h.* -config.log -config.status -config.sub -configure -depcomp -install-sh -missing -stamp-h1 - -# https://www.gnu.org/software/libtool/ -libtool -ltmain.sh - -# https://www.gnu.org/software/m4/ -m4/glib-gettext.m4 -m4/gtk-doc.m4 -m4/intltool.m4 -m4/introspection.m4 -m4/libtool.m4 -m4/ltoptions.m4 -m4/ltsugar.m4 -m4/ltversion.m4 -m4/lt~obsolete.m4 -m4/pkg.m4 - -# Generated files -Makefile -libvips/include/vips/version.h -test/variables.sh -### End of Autotools - -### gettext -po/Makefile.in.in -po/*.pot -po/POTFILES -po/de.gmo -po/en_GB.gmo -po/malkovich.gmo -### End of gettext - -### Tools -tools/batch_crop -tools/batch_image_convert -tools/batch_rubber_sheet -tools/light_correct -tools/shrink_width -tools/vips -tools/vipsedit -tools/vipsheader -tools/vipsthumbnail -fuzz/*_fuzzer -### End of Tools - -### GTK-Doc -doc/html-build.stamp -doc/html.stamp -doc/html/ -doc/libvips-decl-list.txt -doc/libvips-decl.txt -doc/libvips-docs.sgml -doc/libvips-docs.xml -doc/libvips-overrides.txt -doc/libvips-sections.txt -doc/libvips-undeclared.txt -doc/libvips-undocumented.txt -doc/libvips-unused.txt -doc/libvips.actions -doc/libvips.args -doc/libvips.hierarchy -doc/libvips.interfaces -doc/libvips.prerequisites -doc/libvips.signals -doc/libvips.types -doc/scan-build.stamp -doc/setup-build.stamp -doc/sgml-build.stamp -doc/sgml.stamp -doc/tmpl-build.stamp -doc/tmpl.stamp -doc/tmpl/ -doc/xml/ -gtk-doc.make -libvips-scan -### End of GTK-Doc - -### GObject introspection -libvips/introspect -Vips-8.0.gir -Vips-8.0.typelib -### End of GObject introspection - -### pkg-config -# Generated files -*.pc -### End of pkg-config - ### VIM # Temporary files *~ diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/libvips/include/vips/enumtemplate b/libvips/include/vips/enumtemplate deleted file mode 100644 index effbe79f..00000000 --- a/libvips/include/vips/enumtemplate +++ /dev/null @@ -1,23 +0,0 @@ -/*** BEGIN file-header ***/ -#ifndef VIPS_ENUM_TYPES_H -#define VIPS_ENUM_TYPES_H - -G_BEGIN_DECLS - -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@basename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -VIPS_API -GType @enum_name@_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) -/*** END value-header ***/ - -/*** BEGIN file-tail ***/ -G_END_DECLS - -#endif /*VIPS_ENUM_TYPES_H*/ -/*** END file-tail ***/ diff --git a/libvips/include/vips/enumtypes.h b/libvips/include/vips/enumtypes.h deleted file mode 100644 index aabb8f2b..00000000 --- a/libvips/include/vips/enumtypes.h +++ /dev/null @@ -1,174 +0,0 @@ - -/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ - -#ifndef VIPS_ENUM_TYPES_H -#define VIPS_ENUM_TYPES_H - -G_BEGIN_DECLS -/* enumerations from "arithmetic.h" */ -VIPS_API -GType vips_operation_math_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_MATH (vips_operation_math_get_type()) -VIPS_API -GType vips_operation_math2_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_MATH2 (vips_operation_math2_get_type()) -VIPS_API -GType vips_operation_round_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_ROUND (vips_operation_round_get_type()) -VIPS_API -GType vips_operation_relational_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_RELATIONAL (vips_operation_relational_get_type()) -VIPS_API -GType vips_operation_boolean_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_BOOLEAN (vips_operation_boolean_get_type()) -VIPS_API -GType vips_operation_complex_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_COMPLEX (vips_operation_complex_get_type()) -VIPS_API -GType vips_operation_complex2_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_COMPLEX2 (vips_operation_complex2_get_type()) -VIPS_API -GType vips_operation_complexget_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_COMPLEXGET (vips_operation_complexget_get_type()) -/* enumerations from "basic.h" */ -VIPS_API -GType vips_precision_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_PRECISION (vips_precision_get_type()) -/* enumerations from "colour.h" */ -VIPS_API -GType vips_intent_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_INTENT (vips_intent_get_type()) -VIPS_API -GType vips_pcs_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_PCS (vips_pcs_get_type()) -/* enumerations from "conversion.h" */ -VIPS_API -GType vips_extend_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_EXTEND (vips_extend_get_type()) -VIPS_API -GType vips_compass_direction_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_COMPASS_DIRECTION (vips_compass_direction_get_type()) -VIPS_API -GType vips_direction_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_DIRECTION (vips_direction_get_type()) -VIPS_API -GType vips_align_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_ALIGN (vips_align_get_type()) -VIPS_API -GType vips_angle_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_ANGLE (vips_angle_get_type()) -VIPS_API -GType vips_angle45_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_ANGLE45 (vips_angle45_get_type()) -VIPS_API -GType vips_interesting_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_INTERESTING (vips_interesting_get_type()) -VIPS_API -GType vips_blend_mode_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_BLEND_MODE (vips_blend_mode_get_type()) -/* enumerations from "convolution.h" */ -VIPS_API -GType vips_combine_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_COMBINE (vips_combine_get_type()) -/* enumerations from "draw.h" */ -VIPS_API -GType vips_combine_mode_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_COMBINE_MODE (vips_combine_mode_get_type()) -/* enumerations from "foreign.h" */ -VIPS_API -GType vips_foreign_flags_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_FLAGS (vips_foreign_flags_get_type()) -VIPS_API -GType vips_fail_on_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FAIL_ON (vips_fail_on_get_type()) -VIPS_API -GType vips_saveable_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_SAVEABLE (vips_saveable_get_type()) -VIPS_API -GType vips_foreign_subsample_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_SUBSAMPLE (vips_foreign_subsample_get_type()) -VIPS_API -GType vips_foreign_jpeg_subsample_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_JPEG_SUBSAMPLE (vips_foreign_jpeg_subsample_get_type()) -VIPS_API -GType vips_foreign_webp_preset_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_WEBP_PRESET (vips_foreign_webp_preset_get_type()) -VIPS_API -GType vips_foreign_tiff_compression_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_TIFF_COMPRESSION (vips_foreign_tiff_compression_get_type()) -VIPS_API -GType vips_foreign_tiff_predictor_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_TIFF_PREDICTOR (vips_foreign_tiff_predictor_get_type()) -VIPS_API -GType vips_foreign_tiff_resunit_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_TIFF_RESUNIT (vips_foreign_tiff_resunit_get_type()) -VIPS_API -GType vips_foreign_png_filter_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_PNG_FILTER (vips_foreign_png_filter_get_type()) -VIPS_API -GType vips_foreign_ppm_format_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_PPM_FORMAT (vips_foreign_ppm_format_get_type()) -VIPS_API -GType vips_foreign_dz_layout_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_DZ_LAYOUT (vips_foreign_dz_layout_get_type()) -VIPS_API -GType vips_foreign_dz_depth_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_DZ_DEPTH (vips_foreign_dz_depth_get_type()) -VIPS_API -GType vips_foreign_dz_container_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_DZ_CONTAINER (vips_foreign_dz_container_get_type()) -VIPS_API -GType vips_foreign_heif_compression_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_FOREIGN_HEIF_COMPRESSION (vips_foreign_heif_compression_get_type()) -/* enumerations from "image.h" */ -VIPS_API -GType vips_demand_style_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_DEMAND_STYLE (vips_demand_style_get_type()) -VIPS_API -GType vips_image_type_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_IMAGE_TYPE (vips_image_type_get_type()) -VIPS_API -GType vips_interpretation_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_INTERPRETATION (vips_interpretation_get_type()) -VIPS_API -GType vips_band_format_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_BAND_FORMAT (vips_band_format_get_type()) -VIPS_API -GType vips_coding_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_CODING (vips_coding_get_type()) -VIPS_API -GType vips_access_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_ACCESS (vips_access_get_type()) -/* enumerations from "morphology.h" */ -VIPS_API -GType vips_operation_morphology_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_MORPHOLOGY (vips_operation_morphology_get_type()) -/* enumerations from "object.h" */ -VIPS_API -GType vips_argument_flags_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_ARGUMENT_FLAGS (vips_argument_flags_get_type()) -/* enumerations from "operation.h" */ -VIPS_API -GType vips_operation_flags_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_OPERATION_FLAGS (vips_operation_flags_get_type()) -/* enumerations from "region.h" */ -VIPS_API -GType vips_region_shrink_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_REGION_SHRINK (vips_region_shrink_get_type()) -/* enumerations from "resample.h" */ -VIPS_API -GType vips_kernel_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_KERNEL (vips_kernel_get_type()) -VIPS_API -GType vips_size_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_SIZE (vips_size_get_type()) -/* enumerations from "util.h" */ -VIPS_API -GType vips_token_get_type (void) G_GNUC_CONST; -#define VIPS_TYPE_TOKEN (vips_token_get_type()) -G_END_DECLS - -#endif /*VIPS_ENUM_TYPES_H*/ - -/* Generated data ends here */ - diff --git a/libvips/introspect.c b/libvips/introspect.c deleted file mode 100644 index bdf6e48b..00000000 --- a/libvips/introspect.c +++ /dev/null @@ -1,119 +0,0 @@ -/* Entry point for g-ir-scanner ... this program is used during build time - * only. - * - * 19/12/14 - * - quick hack - */ - -/* - - This file is part of VIPS. - - VIPS is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA - - */ - -/* - - These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk - - */ - -/* -#define DEBUG - */ - -#ifdef HAVE_CONFIG_H -#include -#endif /*HAVE_CONFIG_H*/ -#include - -#include - -#include -#include - -static char *main_option_introspect_dump = NULL; - -static GOptionEntry main_option[] = { - { "introspect-dump", 'i', 0, - G_OPTION_ARG_STRING, &main_option_introspect_dump, - N_( "dump introspection data" ), NULL }, - { NULL } -}; - -int -main( int argc, char *argv[] ) -{ - GOptionContext *context; - GOptionGroup *main_group; - GError *error = NULL; - - if( VIPS_INIT( argv[0] ) ) - vips_error_exit( "unable to start VIPS" ); - -#ifdef ENABLE_NLS - textdomain( GETTEXT_PACKAGE ); -#endif /* ENABLE_NLS */ - setlocale( LC_ALL, "" ); - - context = g_option_context_new( _( "- introspect" ) ); - main_group = g_option_group_new( NULL, NULL, NULL, NULL, NULL ); - g_option_group_add_entries( main_group, main_option ); - vips_add_option_entries( main_group ); - g_option_group_set_translation_domain( main_group, GETTEXT_PACKAGE ); - g_option_context_set_main_group( context, main_group ); - - if( !g_option_context_parse( context, &argc, &argv, &error ) ) { - if( error ) { - fprintf( stderr, "%s\n", error->message ); - g_error_free( error ); - } - - vips_error_exit( "try \"%s --help\"", g_get_prgname() ); - } - - g_option_context_free( context ); - -#ifdef DEBUG - /* For debugging it's handy to have a copy of the input file. - */ - if( main_option_introspect_dump ) { - char **args; - char *cmd; - - args = g_strsplit( main_option_introspect_dump, ",", 2 ); - cmd = g_strdup_printf( "cp %s ~/functions.txt", args[0]); - printf( "introspect: running '%s'\n", cmd ); - system( cmd ); - g_free( cmd ); - } -#endif /*DEBUG*/ - - if( main_option_introspect_dump && - !g_irepository_dump( main_option_introspect_dump, &error ) ) { - if( error ) { - fprintf( stderr, "%s\n", error->message ); - g_error_free( error ); - } - - vips_error_exit( "unable to dump introspection" ); - } - - vips_shutdown(); - - return( 0 ); -} diff --git a/libvips/iofuncs/enumtemplate b/libvips/iofuncs/enumtemplate deleted file mode 100644 index 7402372e..00000000 --- a/libvips/iofuncs/enumtemplate +++ /dev/null @@ -1,39 +0,0 @@ -/*** BEGIN file-header ***/ -/* auto-generated enums for vips introspection */ - -#ifdef HAVE_CONFIG_H -#include -#endif /*HAVE_CONFIG_H*/ -#include -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@basename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType -@enum_name@_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter ( >ype_id ) ) { - static const G@Type@Value values[] = { -/*** END value-header ***/ - -/*** BEGIN value-production ***/ - {@VALUENAME@, "@VALUENAME@", "@valuenick@"}, -/*** END value-production ***/ - -/*** BEGIN value-tail ***/ - {0, NULL, NULL} - }; - - GType new_type = - g_@type@_register_static( g_intern_static_string( "@EnumName@" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/*** END value-tail ***/ diff --git a/libvips/iofuncs/enumtypes.c b/libvips/iofuncs/enumtypes.c deleted file mode 100644 index cabde03a..00000000 --- a/libvips/iofuncs/enumtypes.c +++ /dev/null @@ -1,1175 +0,0 @@ - -/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ - -/* auto-generated enums for vips introspection */ - -#ifdef HAVE_CONFIG_H -#include -#endif /*HAVE_CONFIG_H*/ -#include -/* enumerations from "arithmetic.h" */ -GType -vips_operation_math_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_MATH_SIN, "VIPS_OPERATION_MATH_SIN", "sin"}, - {VIPS_OPERATION_MATH_COS, "VIPS_OPERATION_MATH_COS", "cos"}, - {VIPS_OPERATION_MATH_TAN, "VIPS_OPERATION_MATH_TAN", "tan"}, - {VIPS_OPERATION_MATH_ASIN, "VIPS_OPERATION_MATH_ASIN", "asin"}, - {VIPS_OPERATION_MATH_ACOS, "VIPS_OPERATION_MATH_ACOS", "acos"}, - {VIPS_OPERATION_MATH_ATAN, "VIPS_OPERATION_MATH_ATAN", "atan"}, - {VIPS_OPERATION_MATH_LOG, "VIPS_OPERATION_MATH_LOG", "log"}, - {VIPS_OPERATION_MATH_LOG10, "VIPS_OPERATION_MATH_LOG10", "log10"}, - {VIPS_OPERATION_MATH_EXP, "VIPS_OPERATION_MATH_EXP", "exp"}, - {VIPS_OPERATION_MATH_EXP10, "VIPS_OPERATION_MATH_EXP10", "exp10"}, - {VIPS_OPERATION_MATH_SINH, "VIPS_OPERATION_MATH_SINH", "sinh"}, - {VIPS_OPERATION_MATH_COSH, "VIPS_OPERATION_MATH_COSH", "cosh"}, - {VIPS_OPERATION_MATH_TANH, "VIPS_OPERATION_MATH_TANH", "tanh"}, - {VIPS_OPERATION_MATH_ASINH, "VIPS_OPERATION_MATH_ASINH", "asinh"}, - {VIPS_OPERATION_MATH_ACOSH, "VIPS_OPERATION_MATH_ACOSH", "acosh"}, - {VIPS_OPERATION_MATH_ATANH, "VIPS_OPERATION_MATH_ATANH", "atanh"}, - {VIPS_OPERATION_MATH_LAST, "VIPS_OPERATION_MATH_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationMath" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_math2_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_MATH2_POW, "VIPS_OPERATION_MATH2_POW", "pow"}, - {VIPS_OPERATION_MATH2_WOP, "VIPS_OPERATION_MATH2_WOP", "wop"}, - {VIPS_OPERATION_MATH2_ATAN2, "VIPS_OPERATION_MATH2_ATAN2", "atan2"}, - {VIPS_OPERATION_MATH2_LAST, "VIPS_OPERATION_MATH2_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationMath2" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_round_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_ROUND_RINT, "VIPS_OPERATION_ROUND_RINT", "rint"}, - {VIPS_OPERATION_ROUND_CEIL, "VIPS_OPERATION_ROUND_CEIL", "ceil"}, - {VIPS_OPERATION_ROUND_FLOOR, "VIPS_OPERATION_ROUND_FLOOR", "floor"}, - {VIPS_OPERATION_ROUND_LAST, "VIPS_OPERATION_ROUND_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationRound" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_relational_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_RELATIONAL_EQUAL, "VIPS_OPERATION_RELATIONAL_EQUAL", "equal"}, - {VIPS_OPERATION_RELATIONAL_NOTEQ, "VIPS_OPERATION_RELATIONAL_NOTEQ", "noteq"}, - {VIPS_OPERATION_RELATIONAL_LESS, "VIPS_OPERATION_RELATIONAL_LESS", "less"}, - {VIPS_OPERATION_RELATIONAL_LESSEQ, "VIPS_OPERATION_RELATIONAL_LESSEQ", "lesseq"}, - {VIPS_OPERATION_RELATIONAL_MORE, "VIPS_OPERATION_RELATIONAL_MORE", "more"}, - {VIPS_OPERATION_RELATIONAL_MOREEQ, "VIPS_OPERATION_RELATIONAL_MOREEQ", "moreeq"}, - {VIPS_OPERATION_RELATIONAL_LAST, "VIPS_OPERATION_RELATIONAL_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationRelational" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_boolean_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_BOOLEAN_AND, "VIPS_OPERATION_BOOLEAN_AND", "and"}, - {VIPS_OPERATION_BOOLEAN_OR, "VIPS_OPERATION_BOOLEAN_OR", "or"}, - {VIPS_OPERATION_BOOLEAN_EOR, "VIPS_OPERATION_BOOLEAN_EOR", "eor"}, - {VIPS_OPERATION_BOOLEAN_LSHIFT, "VIPS_OPERATION_BOOLEAN_LSHIFT", "lshift"}, - {VIPS_OPERATION_BOOLEAN_RSHIFT, "VIPS_OPERATION_BOOLEAN_RSHIFT", "rshift"}, - {VIPS_OPERATION_BOOLEAN_LAST, "VIPS_OPERATION_BOOLEAN_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationBoolean" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_complex_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_COMPLEX_POLAR, "VIPS_OPERATION_COMPLEX_POLAR", "polar"}, - {VIPS_OPERATION_COMPLEX_RECT, "VIPS_OPERATION_COMPLEX_RECT", "rect"}, - {VIPS_OPERATION_COMPLEX_CONJ, "VIPS_OPERATION_COMPLEX_CONJ", "conj"}, - {VIPS_OPERATION_COMPLEX_LAST, "VIPS_OPERATION_COMPLEX_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationComplex" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_complex2_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_COMPLEX2_CROSS_PHASE, "VIPS_OPERATION_COMPLEX2_CROSS_PHASE", "cross-phase"}, - {VIPS_OPERATION_COMPLEX2_LAST, "VIPS_OPERATION_COMPLEX2_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationComplex2" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_operation_complexget_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_COMPLEXGET_REAL, "VIPS_OPERATION_COMPLEXGET_REAL", "real"}, - {VIPS_OPERATION_COMPLEXGET_IMAG, "VIPS_OPERATION_COMPLEXGET_IMAG", "imag"}, - {VIPS_OPERATION_COMPLEXGET_LAST, "VIPS_OPERATION_COMPLEXGET_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationComplexget" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "basic.h" */ -GType -vips_precision_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_PRECISION_INTEGER, "VIPS_PRECISION_INTEGER", "integer"}, - {VIPS_PRECISION_FLOAT, "VIPS_PRECISION_FLOAT", "float"}, - {VIPS_PRECISION_APPROXIMATE, "VIPS_PRECISION_APPROXIMATE", "approximate"}, - {VIPS_PRECISION_LAST, "VIPS_PRECISION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsPrecision" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "colour.h" */ -GType -vips_intent_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_INTENT_PERCEPTUAL, "VIPS_INTENT_PERCEPTUAL", "perceptual"}, - {VIPS_INTENT_RELATIVE, "VIPS_INTENT_RELATIVE", "relative"}, - {VIPS_INTENT_SATURATION, "VIPS_INTENT_SATURATION", "saturation"}, - {VIPS_INTENT_ABSOLUTE, "VIPS_INTENT_ABSOLUTE", "absolute"}, - {VIPS_INTENT_LAST, "VIPS_INTENT_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsIntent" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_pcs_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_PCS_LAB, "VIPS_PCS_LAB", "lab"}, - {VIPS_PCS_XYZ, "VIPS_PCS_XYZ", "xyz"}, - {VIPS_PCS_LAST, "VIPS_PCS_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsPCS" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "conversion.h" */ -GType -vips_extend_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_EXTEND_BLACK, "VIPS_EXTEND_BLACK", "black"}, - {VIPS_EXTEND_COPY, "VIPS_EXTEND_COPY", "copy"}, - {VIPS_EXTEND_REPEAT, "VIPS_EXTEND_REPEAT", "repeat"}, - {VIPS_EXTEND_MIRROR, "VIPS_EXTEND_MIRROR", "mirror"}, - {VIPS_EXTEND_WHITE, "VIPS_EXTEND_WHITE", "white"}, - {VIPS_EXTEND_BACKGROUND, "VIPS_EXTEND_BACKGROUND", "background"}, - {VIPS_EXTEND_LAST, "VIPS_EXTEND_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsExtend" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_compass_direction_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_COMPASS_DIRECTION_CENTRE, "VIPS_COMPASS_DIRECTION_CENTRE", "centre"}, - {VIPS_COMPASS_DIRECTION_NORTH, "VIPS_COMPASS_DIRECTION_NORTH", "north"}, - {VIPS_COMPASS_DIRECTION_EAST, "VIPS_COMPASS_DIRECTION_EAST", "east"}, - {VIPS_COMPASS_DIRECTION_SOUTH, "VIPS_COMPASS_DIRECTION_SOUTH", "south"}, - {VIPS_COMPASS_DIRECTION_WEST, "VIPS_COMPASS_DIRECTION_WEST", "west"}, - {VIPS_COMPASS_DIRECTION_NORTH_EAST, "VIPS_COMPASS_DIRECTION_NORTH_EAST", "north-east"}, - {VIPS_COMPASS_DIRECTION_SOUTH_EAST, "VIPS_COMPASS_DIRECTION_SOUTH_EAST", "south-east"}, - {VIPS_COMPASS_DIRECTION_SOUTH_WEST, "VIPS_COMPASS_DIRECTION_SOUTH_WEST", "south-west"}, - {VIPS_COMPASS_DIRECTION_NORTH_WEST, "VIPS_COMPASS_DIRECTION_NORTH_WEST", "north-west"}, - {VIPS_COMPASS_DIRECTION_LAST, "VIPS_COMPASS_DIRECTION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsCompassDirection" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_direction_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_DIRECTION_HORIZONTAL, "VIPS_DIRECTION_HORIZONTAL", "horizontal"}, - {VIPS_DIRECTION_VERTICAL, "VIPS_DIRECTION_VERTICAL", "vertical"}, - {VIPS_DIRECTION_LAST, "VIPS_DIRECTION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsDirection" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_align_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_ALIGN_LOW, "VIPS_ALIGN_LOW", "low"}, - {VIPS_ALIGN_CENTRE, "VIPS_ALIGN_CENTRE", "centre"}, - {VIPS_ALIGN_HIGH, "VIPS_ALIGN_HIGH", "high"}, - {VIPS_ALIGN_LAST, "VIPS_ALIGN_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsAlign" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_angle_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_ANGLE_D0, "VIPS_ANGLE_D0", "d0"}, - {VIPS_ANGLE_D90, "VIPS_ANGLE_D90", "d90"}, - {VIPS_ANGLE_D180, "VIPS_ANGLE_D180", "d180"}, - {VIPS_ANGLE_D270, "VIPS_ANGLE_D270", "d270"}, - {VIPS_ANGLE_LAST, "VIPS_ANGLE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsAngle" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_angle45_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_ANGLE45_D0, "VIPS_ANGLE45_D0", "d0"}, - {VIPS_ANGLE45_D45, "VIPS_ANGLE45_D45", "d45"}, - {VIPS_ANGLE45_D90, "VIPS_ANGLE45_D90", "d90"}, - {VIPS_ANGLE45_D135, "VIPS_ANGLE45_D135", "d135"}, - {VIPS_ANGLE45_D180, "VIPS_ANGLE45_D180", "d180"}, - {VIPS_ANGLE45_D225, "VIPS_ANGLE45_D225", "d225"}, - {VIPS_ANGLE45_D270, "VIPS_ANGLE45_D270", "d270"}, - {VIPS_ANGLE45_D315, "VIPS_ANGLE45_D315", "d315"}, - {VIPS_ANGLE45_LAST, "VIPS_ANGLE45_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsAngle45" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_interesting_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_INTERESTING_NONE, "VIPS_INTERESTING_NONE", "none"}, - {VIPS_INTERESTING_CENTRE, "VIPS_INTERESTING_CENTRE", "centre"}, - {VIPS_INTERESTING_ENTROPY, "VIPS_INTERESTING_ENTROPY", "entropy"}, - {VIPS_INTERESTING_ATTENTION, "VIPS_INTERESTING_ATTENTION", "attention"}, - {VIPS_INTERESTING_LOW, "VIPS_INTERESTING_LOW", "low"}, - {VIPS_INTERESTING_HIGH, "VIPS_INTERESTING_HIGH", "high"}, - {VIPS_INTERESTING_ALL, "VIPS_INTERESTING_ALL", "all"}, - {VIPS_INTERESTING_LAST, "VIPS_INTERESTING_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsInteresting" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_blend_mode_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_BLEND_MODE_CLEAR, "VIPS_BLEND_MODE_CLEAR", "clear"}, - {VIPS_BLEND_MODE_SOURCE, "VIPS_BLEND_MODE_SOURCE", "source"}, - {VIPS_BLEND_MODE_OVER, "VIPS_BLEND_MODE_OVER", "over"}, - {VIPS_BLEND_MODE_IN, "VIPS_BLEND_MODE_IN", "in"}, - {VIPS_BLEND_MODE_OUT, "VIPS_BLEND_MODE_OUT", "out"}, - {VIPS_BLEND_MODE_ATOP, "VIPS_BLEND_MODE_ATOP", "atop"}, - {VIPS_BLEND_MODE_DEST, "VIPS_BLEND_MODE_DEST", "dest"}, - {VIPS_BLEND_MODE_DEST_OVER, "VIPS_BLEND_MODE_DEST_OVER", "dest-over"}, - {VIPS_BLEND_MODE_DEST_IN, "VIPS_BLEND_MODE_DEST_IN", "dest-in"}, - {VIPS_BLEND_MODE_DEST_OUT, "VIPS_BLEND_MODE_DEST_OUT", "dest-out"}, - {VIPS_BLEND_MODE_DEST_ATOP, "VIPS_BLEND_MODE_DEST_ATOP", "dest-atop"}, - {VIPS_BLEND_MODE_XOR, "VIPS_BLEND_MODE_XOR", "xor"}, - {VIPS_BLEND_MODE_ADD, "VIPS_BLEND_MODE_ADD", "add"}, - {VIPS_BLEND_MODE_SATURATE, "VIPS_BLEND_MODE_SATURATE", "saturate"}, - {VIPS_BLEND_MODE_MULTIPLY, "VIPS_BLEND_MODE_MULTIPLY", "multiply"}, - {VIPS_BLEND_MODE_SCREEN, "VIPS_BLEND_MODE_SCREEN", "screen"}, - {VIPS_BLEND_MODE_OVERLAY, "VIPS_BLEND_MODE_OVERLAY", "overlay"}, - {VIPS_BLEND_MODE_DARKEN, "VIPS_BLEND_MODE_DARKEN", "darken"}, - {VIPS_BLEND_MODE_LIGHTEN, "VIPS_BLEND_MODE_LIGHTEN", "lighten"}, - {VIPS_BLEND_MODE_COLOUR_DODGE, "VIPS_BLEND_MODE_COLOUR_DODGE", "colour-dodge"}, - {VIPS_BLEND_MODE_COLOUR_BURN, "VIPS_BLEND_MODE_COLOUR_BURN", "colour-burn"}, - {VIPS_BLEND_MODE_HARD_LIGHT, "VIPS_BLEND_MODE_HARD_LIGHT", "hard-light"}, - {VIPS_BLEND_MODE_SOFT_LIGHT, "VIPS_BLEND_MODE_SOFT_LIGHT", "soft-light"}, - {VIPS_BLEND_MODE_DIFFERENCE, "VIPS_BLEND_MODE_DIFFERENCE", "difference"}, - {VIPS_BLEND_MODE_EXCLUSION, "VIPS_BLEND_MODE_EXCLUSION", "exclusion"}, - {VIPS_BLEND_MODE_LAST, "VIPS_BLEND_MODE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsBlendMode" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "convolution.h" */ -GType -vips_combine_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_COMBINE_MAX, "VIPS_COMBINE_MAX", "max"}, - {VIPS_COMBINE_SUM, "VIPS_COMBINE_SUM", "sum"}, - {VIPS_COMBINE_MIN, "VIPS_COMBINE_MIN", "min"}, - {VIPS_COMBINE_LAST, "VIPS_COMBINE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsCombine" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "draw.h" */ -GType -vips_combine_mode_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_COMBINE_MODE_SET, "VIPS_COMBINE_MODE_SET", "set"}, - {VIPS_COMBINE_MODE_ADD, "VIPS_COMBINE_MODE_ADD", "add"}, - {VIPS_COMBINE_MODE_LAST, "VIPS_COMBINE_MODE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsCombineMode" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "foreign.h" */ -GType -vips_foreign_flags_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GFlagsValue values[] = { - {VIPS_FOREIGN_NONE, "VIPS_FOREIGN_NONE", "none"}, - {VIPS_FOREIGN_PARTIAL, "VIPS_FOREIGN_PARTIAL", "partial"}, - {VIPS_FOREIGN_BIGENDIAN, "VIPS_FOREIGN_BIGENDIAN", "bigendian"}, - {VIPS_FOREIGN_SEQUENTIAL, "VIPS_FOREIGN_SEQUENTIAL", "sequential"}, - {VIPS_FOREIGN_ALL, "VIPS_FOREIGN_ALL", "all"}, - {0, NULL, NULL} - }; - - GType new_type = - g_flags_register_static( g_intern_static_string( "VipsForeignFlags" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_fail_on_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FAIL_ON_NONE, "VIPS_FAIL_ON_NONE", "none"}, - {VIPS_FAIL_ON_TRUNCATED, "VIPS_FAIL_ON_TRUNCATED", "truncated"}, - {VIPS_FAIL_ON_ERROR, "VIPS_FAIL_ON_ERROR", "error"}, - {VIPS_FAIL_ON_WARNING, "VIPS_FAIL_ON_WARNING", "warning"}, - {VIPS_FAIL_ON_LAST, "VIPS_FAIL_ON_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsFailOn" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_saveable_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_SAVEABLE_MONO, "VIPS_SAVEABLE_MONO", "mono"}, - {VIPS_SAVEABLE_RGB, "VIPS_SAVEABLE_RGB", "rgb"}, - {VIPS_SAVEABLE_RGBA, "VIPS_SAVEABLE_RGBA", "rgba"}, - {VIPS_SAVEABLE_RGBA_ONLY, "VIPS_SAVEABLE_RGBA_ONLY", "rgba-only"}, - {VIPS_SAVEABLE_RGB_CMYK, "VIPS_SAVEABLE_RGB_CMYK", "rgb-cmyk"}, - {VIPS_SAVEABLE_ANY, "VIPS_SAVEABLE_ANY", "any"}, - {VIPS_SAVEABLE_LAST, "VIPS_SAVEABLE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsSaveable" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_subsample_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_SUBSAMPLE_AUTO, "VIPS_FOREIGN_SUBSAMPLE_AUTO", "auto"}, - {VIPS_FOREIGN_SUBSAMPLE_ON, "VIPS_FOREIGN_SUBSAMPLE_ON", "on"}, - {VIPS_FOREIGN_SUBSAMPLE_OFF, "VIPS_FOREIGN_SUBSAMPLE_OFF", "off"}, - {VIPS_FOREIGN_SUBSAMPLE_LAST, "VIPS_FOREIGN_SUBSAMPLE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignSubsample" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_jpeg_subsample_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_JPEG_SUBSAMPLE_AUTO, "VIPS_FOREIGN_JPEG_SUBSAMPLE_AUTO", "auto"}, - {VIPS_FOREIGN_JPEG_SUBSAMPLE_ON, "VIPS_FOREIGN_JPEG_SUBSAMPLE_ON", "on"}, - {VIPS_FOREIGN_JPEG_SUBSAMPLE_OFF, "VIPS_FOREIGN_JPEG_SUBSAMPLE_OFF", "off"}, - {VIPS_FOREIGN_JPEG_SUBSAMPLE_LAST, "VIPS_FOREIGN_JPEG_SUBSAMPLE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignJpegSubsample" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_webp_preset_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_WEBP_PRESET_DEFAULT, "VIPS_FOREIGN_WEBP_PRESET_DEFAULT", "default"}, - {VIPS_FOREIGN_WEBP_PRESET_PICTURE, "VIPS_FOREIGN_WEBP_PRESET_PICTURE", "picture"}, - {VIPS_FOREIGN_WEBP_PRESET_PHOTO, "VIPS_FOREIGN_WEBP_PRESET_PHOTO", "photo"}, - {VIPS_FOREIGN_WEBP_PRESET_DRAWING, "VIPS_FOREIGN_WEBP_PRESET_DRAWING", "drawing"}, - {VIPS_FOREIGN_WEBP_PRESET_ICON, "VIPS_FOREIGN_WEBP_PRESET_ICON", "icon"}, - {VIPS_FOREIGN_WEBP_PRESET_TEXT, "VIPS_FOREIGN_WEBP_PRESET_TEXT", "text"}, - {VIPS_FOREIGN_WEBP_PRESET_LAST, "VIPS_FOREIGN_WEBP_PRESET_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignWebpPreset" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_tiff_compression_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_TIFF_COMPRESSION_NONE, "VIPS_FOREIGN_TIFF_COMPRESSION_NONE", "none"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_JPEG, "VIPS_FOREIGN_TIFF_COMPRESSION_JPEG", "jpeg"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_DEFLATE, "VIPS_FOREIGN_TIFF_COMPRESSION_DEFLATE", "deflate"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_PACKBITS, "VIPS_FOREIGN_TIFF_COMPRESSION_PACKBITS", "packbits"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_CCITTFAX4, "VIPS_FOREIGN_TIFF_COMPRESSION_CCITTFAX4", "ccittfax4"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_LZW, "VIPS_FOREIGN_TIFF_COMPRESSION_LZW", "lzw"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_WEBP, "VIPS_FOREIGN_TIFF_COMPRESSION_WEBP", "webp"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_ZSTD, "VIPS_FOREIGN_TIFF_COMPRESSION_ZSTD", "zstd"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_JP2K, "VIPS_FOREIGN_TIFF_COMPRESSION_JP2K", "jp2k"}, - {VIPS_FOREIGN_TIFF_COMPRESSION_LAST, "VIPS_FOREIGN_TIFF_COMPRESSION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignTiffCompression" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_tiff_predictor_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_TIFF_PREDICTOR_NONE, "VIPS_FOREIGN_TIFF_PREDICTOR_NONE", "none"}, - {VIPS_FOREIGN_TIFF_PREDICTOR_HORIZONTAL, "VIPS_FOREIGN_TIFF_PREDICTOR_HORIZONTAL", "horizontal"}, - {VIPS_FOREIGN_TIFF_PREDICTOR_FLOAT, "VIPS_FOREIGN_TIFF_PREDICTOR_FLOAT", "float"}, - {VIPS_FOREIGN_TIFF_PREDICTOR_LAST, "VIPS_FOREIGN_TIFF_PREDICTOR_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignTiffPredictor" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_tiff_resunit_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_TIFF_RESUNIT_CM, "VIPS_FOREIGN_TIFF_RESUNIT_CM", "cm"}, - {VIPS_FOREIGN_TIFF_RESUNIT_INCH, "VIPS_FOREIGN_TIFF_RESUNIT_INCH", "inch"}, - {VIPS_FOREIGN_TIFF_RESUNIT_LAST, "VIPS_FOREIGN_TIFF_RESUNIT_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignTiffResunit" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_png_filter_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GFlagsValue values[] = { - {VIPS_FOREIGN_PNG_FILTER_NONE, "VIPS_FOREIGN_PNG_FILTER_NONE", "none"}, - {VIPS_FOREIGN_PNG_FILTER_SUB, "VIPS_FOREIGN_PNG_FILTER_SUB", "sub"}, - {VIPS_FOREIGN_PNG_FILTER_UP, "VIPS_FOREIGN_PNG_FILTER_UP", "up"}, - {VIPS_FOREIGN_PNG_FILTER_AVG, "VIPS_FOREIGN_PNG_FILTER_AVG", "avg"}, - {VIPS_FOREIGN_PNG_FILTER_PAETH, "VIPS_FOREIGN_PNG_FILTER_PAETH", "paeth"}, - {VIPS_FOREIGN_PNG_FILTER_ALL, "VIPS_FOREIGN_PNG_FILTER_ALL", "all"}, - {0, NULL, NULL} - }; - - GType new_type = - g_flags_register_static( g_intern_static_string( "VipsForeignPngFilter" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_ppm_format_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_PPM_FORMAT_PBM, "VIPS_FOREIGN_PPM_FORMAT_PBM", "pbm"}, - {VIPS_FOREIGN_PPM_FORMAT_PGM, "VIPS_FOREIGN_PPM_FORMAT_PGM", "pgm"}, - {VIPS_FOREIGN_PPM_FORMAT_PPM, "VIPS_FOREIGN_PPM_FORMAT_PPM", "ppm"}, - {VIPS_FOREIGN_PPM_FORMAT_PFM, "VIPS_FOREIGN_PPM_FORMAT_PFM", "pfm"}, - {VIPS_FOREIGN_PPM_FORMAT_LAST, "VIPS_FOREIGN_PPM_FORMAT_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignPpmFormat" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_dz_layout_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_DZ_LAYOUT_DZ, "VIPS_FOREIGN_DZ_LAYOUT_DZ", "dz"}, - {VIPS_FOREIGN_DZ_LAYOUT_ZOOMIFY, "VIPS_FOREIGN_DZ_LAYOUT_ZOOMIFY", "zoomify"}, - {VIPS_FOREIGN_DZ_LAYOUT_GOOGLE, "VIPS_FOREIGN_DZ_LAYOUT_GOOGLE", "google"}, - {VIPS_FOREIGN_DZ_LAYOUT_IIIF, "VIPS_FOREIGN_DZ_LAYOUT_IIIF", "iiif"}, - {VIPS_FOREIGN_DZ_LAYOUT_IIIF3, "VIPS_FOREIGN_DZ_LAYOUT_IIIF3", "iiif3"}, - {VIPS_FOREIGN_DZ_LAYOUT_LAST, "VIPS_FOREIGN_DZ_LAYOUT_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignDzLayout" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_dz_depth_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_DZ_DEPTH_ONEPIXEL, "VIPS_FOREIGN_DZ_DEPTH_ONEPIXEL", "onepixel"}, - {VIPS_FOREIGN_DZ_DEPTH_ONETILE, "VIPS_FOREIGN_DZ_DEPTH_ONETILE", "onetile"}, - {VIPS_FOREIGN_DZ_DEPTH_ONE, "VIPS_FOREIGN_DZ_DEPTH_ONE", "one"}, - {VIPS_FOREIGN_DZ_DEPTH_LAST, "VIPS_FOREIGN_DZ_DEPTH_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignDzDepth" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_dz_container_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_DZ_CONTAINER_FS, "VIPS_FOREIGN_DZ_CONTAINER_FS", "fs"}, - {VIPS_FOREIGN_DZ_CONTAINER_ZIP, "VIPS_FOREIGN_DZ_CONTAINER_ZIP", "zip"}, - {VIPS_FOREIGN_DZ_CONTAINER_SZI, "VIPS_FOREIGN_DZ_CONTAINER_SZI", "szi"}, - {VIPS_FOREIGN_DZ_CONTAINER_LAST, "VIPS_FOREIGN_DZ_CONTAINER_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignDzContainer" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_foreign_heif_compression_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FOREIGN_HEIF_COMPRESSION_HEVC, "VIPS_FOREIGN_HEIF_COMPRESSION_HEVC", "hevc"}, - {VIPS_FOREIGN_HEIF_COMPRESSION_AVC, "VIPS_FOREIGN_HEIF_COMPRESSION_AVC", "avc"}, - {VIPS_FOREIGN_HEIF_COMPRESSION_JPEG, "VIPS_FOREIGN_HEIF_COMPRESSION_JPEG", "jpeg"}, - {VIPS_FOREIGN_HEIF_COMPRESSION_AV1, "VIPS_FOREIGN_HEIF_COMPRESSION_AV1", "av1"}, - {VIPS_FOREIGN_HEIF_COMPRESSION_LAST, "VIPS_FOREIGN_HEIF_COMPRESSION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsForeignHeifCompression" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "image.h" */ -GType -vips_demand_style_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_DEMAND_STYLE_ERROR, "VIPS_DEMAND_STYLE_ERROR", "error"}, - {VIPS_DEMAND_STYLE_SMALLTILE, "VIPS_DEMAND_STYLE_SMALLTILE", "smalltile"}, - {VIPS_DEMAND_STYLE_FATSTRIP, "VIPS_DEMAND_STYLE_FATSTRIP", "fatstrip"}, - {VIPS_DEMAND_STYLE_THINSTRIP, "VIPS_DEMAND_STYLE_THINSTRIP", "thinstrip"}, - {VIPS_DEMAND_STYLE_ANY, "VIPS_DEMAND_STYLE_ANY", "any"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsDemandStyle" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_image_type_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_IMAGE_ERROR, "VIPS_IMAGE_ERROR", "error"}, - {VIPS_IMAGE_NONE, "VIPS_IMAGE_NONE", "none"}, - {VIPS_IMAGE_SETBUF, "VIPS_IMAGE_SETBUF", "setbuf"}, - {VIPS_IMAGE_SETBUF_FOREIGN, "VIPS_IMAGE_SETBUF_FOREIGN", "setbuf-foreign"}, - {VIPS_IMAGE_OPENIN, "VIPS_IMAGE_OPENIN", "openin"}, - {VIPS_IMAGE_MMAPIN, "VIPS_IMAGE_MMAPIN", "mmapin"}, - {VIPS_IMAGE_MMAPINRW, "VIPS_IMAGE_MMAPINRW", "mmapinrw"}, - {VIPS_IMAGE_OPENOUT, "VIPS_IMAGE_OPENOUT", "openout"}, - {VIPS_IMAGE_PARTIAL, "VIPS_IMAGE_PARTIAL", "partial"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsImageType" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_interpretation_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_INTERPRETATION_ERROR, "VIPS_INTERPRETATION_ERROR", "error"}, - {VIPS_INTERPRETATION_MULTIBAND, "VIPS_INTERPRETATION_MULTIBAND", "multiband"}, - {VIPS_INTERPRETATION_B_W, "VIPS_INTERPRETATION_B_W", "b-w"}, - {VIPS_INTERPRETATION_HISTOGRAM, "VIPS_INTERPRETATION_HISTOGRAM", "histogram"}, - {VIPS_INTERPRETATION_XYZ, "VIPS_INTERPRETATION_XYZ", "xyz"}, - {VIPS_INTERPRETATION_LAB, "VIPS_INTERPRETATION_LAB", "lab"}, - {VIPS_INTERPRETATION_CMYK, "VIPS_INTERPRETATION_CMYK", "cmyk"}, - {VIPS_INTERPRETATION_LABQ, "VIPS_INTERPRETATION_LABQ", "labq"}, - {VIPS_INTERPRETATION_RGB, "VIPS_INTERPRETATION_RGB", "rgb"}, - {VIPS_INTERPRETATION_CMC, "VIPS_INTERPRETATION_CMC", "cmc"}, - {VIPS_INTERPRETATION_LCH, "VIPS_INTERPRETATION_LCH", "lch"}, - {VIPS_INTERPRETATION_LABS, "VIPS_INTERPRETATION_LABS", "labs"}, - {VIPS_INTERPRETATION_sRGB, "VIPS_INTERPRETATION_sRGB", "srgb"}, - {VIPS_INTERPRETATION_YXY, "VIPS_INTERPRETATION_YXY", "yxy"}, - {VIPS_INTERPRETATION_FOURIER, "VIPS_INTERPRETATION_FOURIER", "fourier"}, - {VIPS_INTERPRETATION_RGB16, "VIPS_INTERPRETATION_RGB16", "rgb16"}, - {VIPS_INTERPRETATION_GREY16, "VIPS_INTERPRETATION_GREY16", "grey16"}, - {VIPS_INTERPRETATION_MATRIX, "VIPS_INTERPRETATION_MATRIX", "matrix"}, - {VIPS_INTERPRETATION_scRGB, "VIPS_INTERPRETATION_scRGB", "scrgb"}, - {VIPS_INTERPRETATION_HSV, "VIPS_INTERPRETATION_HSV", "hsv"}, - {VIPS_INTERPRETATION_LAST, "VIPS_INTERPRETATION_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsInterpretation" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_band_format_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_FORMAT_NOTSET, "VIPS_FORMAT_NOTSET", "notset"}, - {VIPS_FORMAT_UCHAR, "VIPS_FORMAT_UCHAR", "uchar"}, - {VIPS_FORMAT_CHAR, "VIPS_FORMAT_CHAR", "char"}, - {VIPS_FORMAT_USHORT, "VIPS_FORMAT_USHORT", "ushort"}, - {VIPS_FORMAT_SHORT, "VIPS_FORMAT_SHORT", "short"}, - {VIPS_FORMAT_UINT, "VIPS_FORMAT_UINT", "uint"}, - {VIPS_FORMAT_INT, "VIPS_FORMAT_INT", "int"}, - {VIPS_FORMAT_FLOAT, "VIPS_FORMAT_FLOAT", "float"}, - {VIPS_FORMAT_COMPLEX, "VIPS_FORMAT_COMPLEX", "complex"}, - {VIPS_FORMAT_DOUBLE, "VIPS_FORMAT_DOUBLE", "double"}, - {VIPS_FORMAT_DPCOMPLEX, "VIPS_FORMAT_DPCOMPLEX", "dpcomplex"}, - {VIPS_FORMAT_LAST, "VIPS_FORMAT_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsBandFormat" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_coding_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_CODING_ERROR, "VIPS_CODING_ERROR", "error"}, - {VIPS_CODING_NONE, "VIPS_CODING_NONE", "none"}, - {VIPS_CODING_LABQ, "VIPS_CODING_LABQ", "labq"}, - {VIPS_CODING_RAD, "VIPS_CODING_RAD", "rad"}, - {VIPS_CODING_LAST, "VIPS_CODING_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsCoding" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_access_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_ACCESS_RANDOM, "VIPS_ACCESS_RANDOM", "random"}, - {VIPS_ACCESS_SEQUENTIAL, "VIPS_ACCESS_SEQUENTIAL", "sequential"}, - {VIPS_ACCESS_SEQUENTIAL_UNBUFFERED, "VIPS_ACCESS_SEQUENTIAL_UNBUFFERED", "sequential-unbuffered"}, - {VIPS_ACCESS_LAST, "VIPS_ACCESS_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsAccess" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "morphology.h" */ -GType -vips_operation_morphology_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_OPERATION_MORPHOLOGY_ERODE, "VIPS_OPERATION_MORPHOLOGY_ERODE", "erode"}, - {VIPS_OPERATION_MORPHOLOGY_DILATE, "VIPS_OPERATION_MORPHOLOGY_DILATE", "dilate"}, - {VIPS_OPERATION_MORPHOLOGY_LAST, "VIPS_OPERATION_MORPHOLOGY_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsOperationMorphology" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "object.h" */ -GType -vips_argument_flags_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GFlagsValue values[] = { - {VIPS_ARGUMENT_NONE, "VIPS_ARGUMENT_NONE", "none"}, - {VIPS_ARGUMENT_REQUIRED, "VIPS_ARGUMENT_REQUIRED", "required"}, - {VIPS_ARGUMENT_CONSTRUCT, "VIPS_ARGUMENT_CONSTRUCT", "construct"}, - {VIPS_ARGUMENT_SET_ONCE, "VIPS_ARGUMENT_SET_ONCE", "set-once"}, - {VIPS_ARGUMENT_SET_ALWAYS, "VIPS_ARGUMENT_SET_ALWAYS", "set-always"}, - {VIPS_ARGUMENT_INPUT, "VIPS_ARGUMENT_INPUT", "input"}, - {VIPS_ARGUMENT_OUTPUT, "VIPS_ARGUMENT_OUTPUT", "output"}, - {VIPS_ARGUMENT_DEPRECATED, "VIPS_ARGUMENT_DEPRECATED", "deprecated"}, - {VIPS_ARGUMENT_MODIFY, "VIPS_ARGUMENT_MODIFY", "modify"}, - {0, NULL, NULL} - }; - - GType new_type = - g_flags_register_static( g_intern_static_string( "VipsArgumentFlags" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "operation.h" */ -GType -vips_operation_flags_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GFlagsValue values[] = { - {VIPS_OPERATION_NONE, "VIPS_OPERATION_NONE", "none"}, - {VIPS_OPERATION_SEQUENTIAL, "VIPS_OPERATION_SEQUENTIAL", "sequential"}, - {VIPS_OPERATION_SEQUENTIAL_UNBUFFERED, "VIPS_OPERATION_SEQUENTIAL_UNBUFFERED", "sequential-unbuffered"}, - {VIPS_OPERATION_NOCACHE, "VIPS_OPERATION_NOCACHE", "nocache"}, - {VIPS_OPERATION_DEPRECATED, "VIPS_OPERATION_DEPRECATED", "deprecated"}, - {VIPS_OPERATION_UNTRUSTED, "VIPS_OPERATION_UNTRUSTED", "untrusted"}, - {VIPS_OPERATION_BLOCKED, "VIPS_OPERATION_BLOCKED", "blocked"}, - {0, NULL, NULL} - }; - - GType new_type = - g_flags_register_static( g_intern_static_string( "VipsOperationFlags" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "region.h" */ -GType -vips_region_shrink_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_REGION_SHRINK_MEAN, "VIPS_REGION_SHRINK_MEAN", "mean"}, - {VIPS_REGION_SHRINK_MEDIAN, "VIPS_REGION_SHRINK_MEDIAN", "median"}, - {VIPS_REGION_SHRINK_MODE, "VIPS_REGION_SHRINK_MODE", "mode"}, - {VIPS_REGION_SHRINK_MAX, "VIPS_REGION_SHRINK_MAX", "max"}, - {VIPS_REGION_SHRINK_MIN, "VIPS_REGION_SHRINK_MIN", "min"}, - {VIPS_REGION_SHRINK_NEAREST, "VIPS_REGION_SHRINK_NEAREST", "nearest"}, - {VIPS_REGION_SHRINK_LAST, "VIPS_REGION_SHRINK_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsRegionShrink" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "resample.h" */ -GType -vips_kernel_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_KERNEL_NEAREST, "VIPS_KERNEL_NEAREST", "nearest"}, - {VIPS_KERNEL_LINEAR, "VIPS_KERNEL_LINEAR", "linear"}, - {VIPS_KERNEL_CUBIC, "VIPS_KERNEL_CUBIC", "cubic"}, - {VIPS_KERNEL_MITCHELL, "VIPS_KERNEL_MITCHELL", "mitchell"}, - {VIPS_KERNEL_LANCZOS2, "VIPS_KERNEL_LANCZOS2", "lanczos2"}, - {VIPS_KERNEL_LANCZOS3, "VIPS_KERNEL_LANCZOS3", "lanczos3"}, - {VIPS_KERNEL_LAST, "VIPS_KERNEL_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsKernel" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -GType -vips_size_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_SIZE_BOTH, "VIPS_SIZE_BOTH", "both"}, - {VIPS_SIZE_UP, "VIPS_SIZE_UP", "up"}, - {VIPS_SIZE_DOWN, "VIPS_SIZE_DOWN", "down"}, - {VIPS_SIZE_FORCE, "VIPS_SIZE_FORCE", "force"}, - {VIPS_SIZE_LAST, "VIPS_SIZE_LAST", "last"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsSize" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} -/* enumerations from "util.h" */ -GType -vips_token_get_type( void ) -{ - static gsize gtype_id = 0; - - if( g_once_init_enter( >ype_id ) ) { - static const GEnumValue values[] = { - {VIPS_TOKEN_LEFT, "VIPS_TOKEN_LEFT", "left"}, - {VIPS_TOKEN_RIGHT, "VIPS_TOKEN_RIGHT", "right"}, - {VIPS_TOKEN_STRING, "VIPS_TOKEN_STRING", "string"}, - {VIPS_TOKEN_EQUALS, "VIPS_TOKEN_EQUALS", "equals"}, - {VIPS_TOKEN_COMMA, "VIPS_TOKEN_COMMA", "comma"}, - {0, NULL, NULL} - }; - - GType new_type = - g_enum_register_static( g_intern_static_string( "VipsToken" ), values ); - g_once_init_leave( >ype_id, new_type ); - } - - return( (GType) gtype_id ); -} - -/* Generated data ends here */ - diff --git a/libvips/iofuncs/vipsmarshal.c b/libvips/iofuncs/vipsmarshal.c deleted file mode 100644 index a84aea1c..00000000 --- a/libvips/iofuncs/vipsmarshal.c +++ /dev/null @@ -1,169 +0,0 @@ -#include "vipsmarshal.h" -/* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ -#include - -#ifdef G_ENABLE_DEBUG -#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) -#define g_marshal_value_peek_char(v) g_value_get_schar (v) -#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) -#define g_marshal_value_peek_int(v) g_value_get_int (v) -#define g_marshal_value_peek_uint(v) g_value_get_uint (v) -#define g_marshal_value_peek_long(v) g_value_get_long (v) -#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) -#define g_marshal_value_peek_int64(v) g_value_get_int64 (v) -#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) -#define g_marshal_value_peek_enum(v) g_value_get_enum (v) -#define g_marshal_value_peek_flags(v) g_value_get_flags (v) -#define g_marshal_value_peek_float(v) g_value_get_float (v) -#define g_marshal_value_peek_double(v) g_value_get_double (v) -#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) -#define g_marshal_value_peek_param(v) g_value_get_param (v) -#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) -#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) -#define g_marshal_value_peek_object(v) g_value_get_object (v) -#define g_marshal_value_peek_variant(v) g_value_get_variant (v) -#else /* !G_ENABLE_DEBUG */ -/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. - * Do not access GValues directly in your code. Instead, use the - * g_value_get_*() functions - */ -#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int -#define g_marshal_value_peek_char(v) (v)->data[0].v_int -#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint -#define g_marshal_value_peek_int(v) (v)->data[0].v_int -#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint -#define g_marshal_value_peek_long(v) (v)->data[0].v_long -#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong -#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 -#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 -#define g_marshal_value_peek_enum(v) (v)->data[0].v_long -#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong -#define g_marshal_value_peek_float(v) (v)->data[0].v_float -#define g_marshal_value_peek_double(v) (v)->data[0].v_double -#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer -#endif /* !G_ENABLE_DEBUG */ - -/* INT: VOID (vipsmarshal.list:25) */ -void -vips_INT__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint G_GNUC_UNUSED, - gpointer marshal_data) -{ - typedef gint (*GMarshalFunc_INT__VOID) (gpointer data1, - gpointer data2); - GCClosure *cc = (GCClosure *) closure; - gpointer data1, data2; - GMarshalFunc_INT__VOID callback; - gint v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 1); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_INT__VOID) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - data2); - - g_value_set_int (return_value, v_return); -} - -/* INT64: INT64, INT (vipsmarshal.list:26) */ -void -vips_INT64__INT64_INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint G_GNUC_UNUSED, - gpointer marshal_data) -{ - typedef gint64 (*GMarshalFunc_INT64__INT64_INT) (gpointer data1, - gint64 arg1, - gint arg2, - gpointer data2); - GCClosure *cc = (GCClosure *) closure; - gpointer data1, data2; - GMarshalFunc_INT64__INT64_INT callback; - gint64 v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_INT64__INT64_INT) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_int64 (param_values + 1), - g_marshal_value_peek_int (param_values + 2), - data2); - - g_value_set_int64 (return_value, v_return); -} - -/* INT64: POINTER, INT64 (vipsmarshal.list:27) */ -void -vips_INT64__POINTER_INT64 (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint G_GNUC_UNUSED, - gpointer marshal_data) -{ - typedef gint64 (*GMarshalFunc_INT64__POINTER_INT64) (gpointer data1, - gpointer arg1, - gint64 arg2, - gpointer data2); - GCClosure *cc = (GCClosure *) closure; - gpointer data1, data2; - GMarshalFunc_INT64__POINTER_INT64 callback; - gint64 v_return; - - g_return_if_fail (return_value != NULL); - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_INT64__POINTER_INT64) (marshal_data ? marshal_data : cc->callback); - - v_return = callback (data1, - g_marshal_value_peek_pointer (param_values + 1), - g_marshal_value_peek_int64 (param_values + 2), - data2); - - g_value_set_int64 (return_value, v_return); -} - diff --git a/libvips/iofuncs/vipsmarshal.h b/libvips/iofuncs/vipsmarshal.h deleted file mode 100644 index 06f7d675..00000000 --- a/libvips/iofuncs/vipsmarshal.h +++ /dev/null @@ -1,39 +0,0 @@ -/* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ -#ifndef __VIPS_MARSHAL_H__ -#define __VIPS_MARSHAL_H__ - -#include - -G_BEGIN_DECLS - -/* INT: VOID (vipsmarshal.list:25) */ -extern -void vips_INT__VOID (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* INT64: INT64, INT (vipsmarshal.list:26) */ -extern -void vips_INT64__INT64_INT (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -/* INT64: POINTER, INT64 (vipsmarshal.list:27) */ -extern -void vips_INT64__POINTER_INT64 (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - - -G_END_DECLS - -#endif /* __VIPS_MARSHAL_H__ */ diff --git a/man/batch_crop.1 b/man/batch_crop.1 deleted file mode 100644 index f5d0a8c8..00000000 --- a/man/batch_crop.1 +++ /dev/null @@ -1,22 +0,0 @@ -.TH BATCH_CROP 1 "2 Feb 2002" -.SH NAME -batch_crop \- crop a set of images -.SH SYNOPSIS -.B batch_crop left top width height image1 image2 ... -.SH DESCRIPTION -The area defined by the rectangle left, top, width, height is cropped out of -each of the images and saved in a file of the same name, but prefixed by -"crop_". - -For example: - - batch_crop 10 10 100 100 fred.jpg jim.png - -will make two images, crop_fred.jpg and crop_jim.png, each of 100 by 100 -pixels, taken from the corresponding input images. - -.SH RETURN VALUE -returns 0 on success and non-zero on error. -.SH SEE ALSO -vipsheader(1), im_vips2tiff(3), im_vips2jpeg(3), im_vips2png(3), im_vips2ppm(3) - diff --git a/man/batch_image_convert.1 b/man/batch_image_convert.1 deleted file mode 100644 index f540a4e2..00000000 --- a/man/batch_image_convert.1 +++ /dev/null @@ -1,29 +0,0 @@ -.TH BATCH_IMAGE_CONVERT 1 "2 Feb 2002" -.SH NAME -batch_image_convert \- use VIPS to convert a set of images to a new type -.SH SYNOPSIS -.B batch_image_convert type image1 image2 ... -.SH DESCRIPTION -The first argument is the name of an image type, subsequent arguments are -the names of files to be converted to that type. VIPS can usually read almost -any image type, but it can only write VIPS, PNG, TIFF, PPM/PGM/PBM and JPEG. -You can specify conversion parameters in the type name. - -For example: - - batch_image_convert tiff fred.jpg jim.png - -will convert -.B fred.jpg -and -.B jim.png -to TIFF format. - - batch_image_convert jpeg:95 jim.png - -will write jim.jpeg with a 95% quality factor. -.SH RETURN VALUE -returns 0 on success and non-zero on error. -.SH SEE ALSO -vipsheader(1), im_vips2tiff(3), im_vips2jpeg(3), im_vips2png(3), im_vips2ppm(3) - diff --git a/man/batch_rubber_sheet.1 b/man/batch_rubber_sheet.1 deleted file mode 100644 index 976d80e6..00000000 --- a/man/batch_rubber_sheet.1 +++ /dev/null @@ -1,30 +0,0 @@ -.TH BATCH_RUBBER_SHEET 1 "2 Feb 2002" -.SH NAME -batch_rubber_sheet \- warp a set of images with a rubber-sheet transformation -.SH SYNOPSIS -.B batch_rubber_sheet matrix image1 image2 ... -.SH DESCRIPTION -The first argument specifies a file containing the transformation, subsequent -arguments are image files to be transformed. The transformed image is written -to a new file, named as the old file, but with "rsc_" prepended to the file -name. - -For example: - - batch_rubber_sheet lens.mat fred.jpg jim.png - -will read a transform from the file -.B lens.mat -and apply it to -.B fred.jpg -and -.B jim.png, -writing files -.B rsc_fred.jpg -and -.B rsc_jim.png. -.SH RETURN VALUE -returns 0 on success and non-zero on error. -.SH SEE ALSO -The "Image=>Rubber" menu in nip. - diff --git a/man/light_correct.1 b/man/light_correct.1 deleted file mode 100644 index 0107ded6..00000000 --- a/man/light_correct.1 +++ /dev/null @@ -1,39 +0,0 @@ -.TH LIGHT_CORRECT 1 "14 Oct 1996" -.SH NAME -light_correct \- correct illumination errors on set of images -.SH SYNOPSIS -.B light_correct grey image1 image2 image3 ... -.SH DESCRIPTION -The first argument should be an image of a piece of grey card, subsequent -arguments should be images taken with the same lighting set-up which need -correcting. The corrected images are written to files prefixed with "ic_". - -For example, suppose you have a directory with the following files in: - - example% ls - dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v - dat4.1.v dat4.2.v grey.v - -then run light_correct like this: - - example% light_correct grey.v dat*.v - -to generate this: - - example% ls - dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v - dat4.1.v dat4.2.v grey.v - ic_dat1.1.v ic_dat1.2.v ic_dat2.1.v ic_dat2.2.v ic_dat3.1.v - ic_dat3.2.v ic_dat4.1.v ic_dat4.2.v - -light_correct works by smoothing out the grey card image, finding -grey-mean/pixel for each point, and then multiplying the result by all the -following images. It also removes any .desc files it generates, to avoid -problems with im_global_balance(3). - -.SH RETURN VALUE -returns 0 on success and non-zero on error. -.SH SEE ALSO -vipsheader(1), vips(1) -.SH COPYRIGHT -The National Gallery and Birkbeck College, 1989-1996. diff --git a/man/meson.build b/man/meson.build index 573fa3c6..2ed672c3 100644 --- a/man/meson.build +++ b/man/meson.build @@ -1,10 +1,6 @@ install_man( - 'batch_crop.1', - 'batch_image_convert.1', - 'batch_rubber_sheet.1', 'vipsedit.1', 'vipsheader.1', - 'light_correct.1', 'vips.1', 'vipsprofile.1', 'vipsthumbnail.1' diff --git a/po/messages b/po/messages deleted file mode 100644 index 3e22b1860750543d0d0f09dfc44b6e00c968ae60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 349 zcmZ{f!AiqG5QZao%F(ljJ@i&5?j{A>Rf|w76k042y^rabt|q%-vle|2U$4*N1f@Ck zhoAXjzS*7GpPl|htP}P*d+?txxOS54AvYD*j)~UZy;Bijv4I!zt#MWhYnoJCC6gqJ z*N-{OJYnDl++!duQYl9uCy+^zDlOBYWHAU&v@_iUJ(qz}AV)%_I+K6g659Z|N845y zoY$hp>cj0!u@yImcy~xi;p%C;L|cAhNstrPM@A}>IA2cV)nYa8Pf>}CXU+z){Ofna q>j(M@mraGnUW;OjzNK*coIk+0=eq6Q$iv(gZewhz#rV~PIQj+gc4GYi