From 792ff7f03df25cbe61266f9b8ca3b89a6015dc36 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 2 Mar 2012 10:16:58 +0000 Subject: [PATCH] sync --- TODO | 19 +++++++++++++++++++ libvips/conversion/copy.c | 14 +++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index ac8bf3a7..366e729d 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,25 @@ blocking bugs ============= +- im_copy_set is broken? + + $ vips im_copy_set babe.jpg x.v 22 2.83 2.83 100 100 + $ header -a x.v + x.v: 1024x768 uchar, 3 bands, srgb VipsImage (0x14e8000) + interpretation: 22 - srgb + xoffset: 0 + yoffset: 0 + xres: 0.000000 + yres: 0.000000 + + xres/yres need to become double (they are float atm) + + the compat stuff and the wrappers in header.c need revising + + +- turning on all debug in object.c causes huge mem use? + + - none! diff --git a/libvips/conversion/copy.c b/libvips/conversion/copy.c index 624e4dd4..d937b9ed 100644 --- a/libvips/conversion/copy.c +++ b/libvips/conversion/copy.c @@ -271,12 +271,20 @@ vips_copy_build( VipsObject *object ) GType type = G_PARAM_SPEC_VALUE_TYPE( pspec ); GValue value = { 0, }; - VIPS_DEBUG_MSG( "vips_copy_build: assigning %s\n", - name ); - g_value_init( &value, type ); g_object_get_property( G_OBJECT( object ), name, &value ); + +#ifdef VIPS_DEBUG +{ + char *str; + + str = g_strdup_value_contents( &value ); + printf( "vips_copy_build: %s = %s\n", name, str ); + g_free( str ); +} +#endif /* VIPS_DEBUG */ + g_object_set_property( G_OBJECT( conversion->out ), name, &value ); g_value_unset( &value );