diff --git a/libvips/foreign/foreign.c b/libvips/foreign/foreign.c index 2e777a93..76e3d19f 100644 --- a/libvips/foreign/foreign.c +++ b/libvips/foreign/foreign.c @@ -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 ) ) diff --git a/libvips/foreign/jpegload.c b/libvips/foreign/jpegload.c index c277357e..72ed41fc 100644 --- a/libvips/foreign/jpegload.c +++ b/libvips/foreign/jpegload.c @@ -33,11 +33,6 @@ */ -/* - */ -#define DEBUG_VERBOSE -#define DEBUG - #ifdef HAVE_CONFIG_H #include #endif /*HAVE_CONFIG_H*/ diff --git a/libvips/iofuncs/image.c b/libvips/iofuncs/image.c index 297fc180..4b75c23d 100644 --- a/libvips/iofuncs/image.c +++ b/libvips/iofuncs/image.c @@ -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. */ diff --git a/libvips/iofuncs/stream.c b/libvips/iofuncs/stream.c index 4db7cda7..42a48429 100644 --- a/libvips/iofuncs/stream.c +++ b/libvips/iofuncs/stream.c @@ -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(). *