small fixes
This commit is contained in:
parent
8a84d85335
commit
e6a2994c8d
@ -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.
|
||||
*
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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().
|
||||
|
Loading…
Reference in New Issue
Block a user