diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-01-20 15:44:59 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-01-20 15:44:59 +0000 |
| commit | dc9459029fbb9b4b405d6ce9bd92bbcb2f77ed40 (patch) | |
| tree | 733da07bd31c44e57425ac0e1b55dfed156cfa44 | |
| parent | ca3f19c7e30c739f0a146e052222157d5d4a7677 (diff) | |
[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.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | libopenjpeg/openjpeg.h | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -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 */ |
