small fixes

This commit is contained in:
John Cupitt 2014-10-18 15:42:56 +01:00
parent 8a84d85335
commit e6a2994c8d
4 changed files with 9 additions and 12 deletions

View File

@ -261,7 +261,7 @@ im_create_imask( const char *filename, int xsize, int ysize )
* @filename: set mask filename to this
* @xsize: mask width
* @ysize: mask height
* @Varargs: values to set for the mask
* @...: values to set for the mask
*
* Create an imask and initialise it from the function parameter list.
*
@ -344,7 +344,7 @@ im_create_dmask( const char *filename, int xsize, int ysize )
* @filename: set mask filename to this
* @xsize: mask width
* @ysize: mask height
* @Varargs: values to set for the mask
* @...: values to set for the mask
*
* Create a dmask and initialise it from the function parameter list.
*

View File

@ -1966,31 +1966,28 @@ im_system_image( VipsImage *im,
const char *in_format, const char *out_format, const char *cmd_format,
char **log )
{
VipsArea *area;
VipsImage **array;
VipsArrayImage *array;
char *str;
VipsImage *out;
area = vips_area_new_array_object( 1 );
array = (VipsImage **) area->data;
array[0] = im;
array = vips_array_image_newv( 1, im );
/* im will be unreffed when area is unreffed.
*/
g_object_ref( im );
if( vips_system( cmd_format,
"in", area,
"in", array,
"out", &out,
"in_format", in_format,
"out_format", out_format,
"log", &str,
NULL ) ) {
vips_area_unref( area );
vips_area_unref( VIPS_AREA( array ) );
return( NULL );
}
vips_area_unref( area );
vips_area_unref( VIPS_AREA( array ) );
if( log )
*log = str;

View File

@ -403,7 +403,7 @@ vips_buf_removec( VipsBuf *buf, char ch )
* vips_buf_appendf:
* @buf: the buffer
* @fmt: <function>printf()</function>-style format string
* @Varargs: arguments to format string
* @...: arguments to format string
*
* Format the string and append to @buf.
*

View File

@ -526,7 +526,7 @@ vips_start_many( VipsImage *out, void *a, void *b )
/**
* vips_allocate_input_array:
* @image: free array when this image closes
* @Varargs: %NULL-terminated list of input images
* @...: %NULL-terminated list of input images
*
* Convenience function --- make a %NULL-terminated array of input images.
* Use with vips_start_many().