summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2010-01-20 15:44:59 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2010-01-20 15:44:59 +0000
commitdc9459029fbb9b4b405d6ce9bd92bbcb2f77ed40 (patch)
tree733da07bd31c44e57425ac0e1b55dfed156cfa44 /libopenjpeg
parentca3f19c7e30c739f0a146e052222157d5d4a7677 (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.
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/openjpeg.h5
1 files changed, 3 insertions, 2 deletions
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 */