incorporate revision comments from @kleisauke

Thanks!
This commit is contained in:
John Cupitt 2019-10-14 12:18:40 +01:00
parent 9ea5e902b6
commit f6d247627f
4 changed files with 6 additions and 16 deletions

View File

@ -1865,7 +1865,7 @@ vips_foreign_save( VipsImage *in, const char *name, ... )
return( result );
}
/* Can thsi class write this filetype to a stream?
/* Can this class write this filetype to a stream?
*/
static void *
vips_foreign_find_save_stream_sub( VipsForeignSaveClass *save_class,
@ -1874,8 +1874,6 @@ vips_foreign_find_save_stream_sub( VipsForeignSaveClass *save_class,
VipsObjectClass *object_class = VIPS_OBJECT_CLASS( save_class );
VipsForeignClass *class = VIPS_FOREIGN_CLASS( save_class );
printf( "testing %s for %s\n", object_class->nickname, suffix );
if( class->suffs &&
vips_ispostfix( object_class->nickname, "_stream" ) &&
vips_filename_suffix_match( suffix, class->suffs ) )

View File

@ -33,11 +33,6 @@
*/
/*
*/
#define DEBUG_VERBOSE
#define DEBUG
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /*HAVE_CONFIG_H*/

View File

@ -2180,7 +2180,7 @@ vips_image_new_from_buffer( const void *buf, size_t len,
* a NULL-terminated list of name-value pairs at the end of the arguments.
* Options given in the function call override options given in the string.
*
* See also: vips_image_write_to_buffer().
* See also: vips_image_write_to_stream().
*
* Returns: (transfer full): the new #VipsImage, or %NULL on error.
*/

View File

@ -632,7 +632,8 @@ vips_stream_input_decode( VipsStreamInput *input )
/**
* vips_stream_input_sniff:
* @bytes: number of bytes to sniff
* @input: sniff this stream
* @length: number of bytes to sniff
*
* Return a pointer to the first few bytes of the file.
*/
@ -864,12 +865,8 @@ vips_stream_output_new_from_filename( const char *filename )
/**
* vips_stream_output_new_memory:
*
* Optional args:
*
* @blob: #VipsBlob, memory area containing output
*
* Create a stream which will output to a memory area. Use @blob to get
* memory output, if this is a memory stream.
* Create a stream which will output to a memory area. Read from @blob to get
* memory output.
*
* See also: vips_stream_output_write().
*