From dc9459029fbb9b4b405d6ce9bd92bbcb2f77ed40 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Wed, 20 Jan 2010 15:44:59 +0000 Subject: [PATCH] [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. --- ChangeLog | 3 +++ libopenjpeg/openjpeg.h | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 938a89d3..8ea39886 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ What's New for OpenJPEG ! : changed + : added +January 20, 2010 +! [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. + September 10, 2009 * [antonin] fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc) 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 */