From dc9459029fbb9b4b405d6ce9bd92bbcb2f77ed40 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Wed, 20 Jan 2010 15:44:59 +0000 Subject: [FOD] Created a new constant in openjpeg.h to differentiate the case when the colorspace is not supported by the library and when it is not specified in the codestream. Suggested by Matteo Italia. --- libopenjpeg/openjpeg.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libopenjpeg') diff --git a/libopenjpeg/openjpeg.h b/libopenjpeg/openjpeg.h index 48d863e1..916755b3 100644 --- a/libopenjpeg/openjpeg.h +++ b/libopenjpeg/openjpeg.h @@ -153,8 +153,9 @@ typedef enum PROG_ORDER { /** Supported image color spaces */ -typedef enum COLOR_SPACE { - CLRSPC_UNKNOWN = -1, /**< place-holder */ +typedef enum COLOR_SPACE { + CLRSPC_UNKNOWN = -1, /**< not supported by the library */ + CLRSPC_UNSPECIFIED = 0, /**< not specified in the codestream */ CLRSPC_SRGB = 1, /**< sRGB */ CLRSPC_GRAY = 2, /**< grayscale */ CLRSPC_SYCC = 3 /**< YUV */ -- cgit v1.2.3