From 42efce5c6676c765165d7d01b48c29d406a6c7c2 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 21 Apr 2015 18:39:02 +0100 Subject: [PATCH] fix various typos thanks dg1727 see https://github.com/jcupitt/libvips/issues/277 --- libvips/colour/scRGB2BW.c | 2 +- libvips/include/vips/foreign.h | 10 +++++----- libvips/include/vips/image.h | 3 ++- libvips/iofuncs/enumtypes.c | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/libvips/colour/scRGB2BW.c b/libvips/colour/scRGB2BW.c index fe530a86..f961f1a2 100644 --- a/libvips/colour/scRGB2BW.c +++ b/libvips/colour/scRGB2BW.c @@ -270,7 +270,7 @@ vips_scRGB2BW_init( VipsscRGB2BW *scRGB2BW ) * * @depth: depth of output image in bits * - * Convert an scRGB image to sRGB. Set @depth to 16 to get 16-bit output. + * Convert an scRGB image to greyscale. Set @depth to 16 to get 16-bit output. * * If @depth is 16, any extra channels after RGB are * multiplied by 256. diff --git a/libvips/include/vips/foreign.h b/libvips/include/vips/foreign.h index e2925fc0..555ff4a0 100644 --- a/libvips/include/vips/foreign.h +++ b/libvips/include/vips/foreign.h @@ -1,10 +1,10 @@ -/* Base type for supported image foreigns. Subclass this to add a new - * foreign. +/* Base type for supported image formats. Subclass this to add a new + * format. */ /* - This foreign is part of VIPS. + This file is part of VIPS. VIPS is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -25,7 +25,7 @@ /* - These foreigns are distributed with VIPS - http://www.vips.ecs.soton.ac.uk + These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk */ @@ -140,7 +140,7 @@ typedef struct _VipsForeignLoad { VipsImage *out; /* The behind-the-scenes real image we decompress to. This can be a - * disc foreign or a memory buffer. This must be set by ->load(). + * disc file or a memory buffer. This must be set by ->load(). */ VipsImage *real; diff --git a/libvips/include/vips/image.h b/libvips/include/vips/image.h index dfc3eba2..9f25429d 100644 --- a/libvips/include/vips/image.h +++ b/libvips/include/vips/image.h @@ -89,7 +89,8 @@ typedef enum { VIPS_INTERPRETATION_RGB16 = 25, VIPS_INTERPRETATION_GREY16 = 26, VIPS_INTERPRETATION_MATRIX = 27, - VIPS_INTERPRETATION_scRGB = 28 + VIPS_INTERPRETATION_scRGB = 28, + VIPS_INTERPRETATION_LAST = 29 } VipsInterpretation; typedef enum { diff --git a/libvips/iofuncs/enumtypes.c b/libvips/iofuncs/enumtypes.c index ccdd9796..ba807fc8 100644 --- a/libvips/iofuncs/enumtypes.c +++ b/libvips/iofuncs/enumtypes.c @@ -540,6 +540,7 @@ vips_interpretation_get_type( void ) {VIPS_INTERPRETATION_GREY16, "VIPS_INTERPRETATION_GREY16", "grey16"}, {VIPS_INTERPRETATION_MATRIX, "VIPS_INTERPRETATION_MATRIX", "matrix"}, {VIPS_INTERPRETATION_scRGB, "VIPS_INTERPRETATION_scRGB", "scrgb"}, + {VIPS_INTERPRETATION_LAST, "VIPS_INTERPRETATION_LAST", "last"}, {0, NULL, NULL} };