init more types on startup

create VipsImage and VipsRegion types on vips_init()
This commit is contained in:
John Cupitt 2011-06-18 17:42:06 +01:00
parent e346187043
commit 4918a67e14
2 changed files with 8 additions and 0 deletions

View File

@ -1073,6 +1073,8 @@ vips_image_class_init( VipsImageClass *class )
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS( class );
GParamSpec *pspec;
VIPS_DEBUG_MSG( "vips_image_class_init:\n" );
/* Pass in a nonsense name for argv0 ... this init world is only here
* for old programs which are missing an vips_init() call. We must
* have threads set up before we can process.

View File

@ -131,6 +131,10 @@ vips_get_argv0( void )
* </para>
* </listitem>
* <listitem>
* <para>creates the main vips types, including VipsImage and friends
* </para>
* </listitem>
* <listitem>
* <para>loads any plugins from $libdir/vips-x.y, where x and y are the
* major and minor version numbers for this VIPS.
* </para>
@ -213,6 +217,8 @@ vips_init( const char *argv0 )
/* Register base vips types.
*/
(void) vips_image_get_type();
(void) vips_region_get_type();
vips__meta_init_types();
vips__interpolate_init();
im__format_init();