[FOD] Created a new constant in openjpeg.h to differentiate the case when the colorsp...
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Wed, 20 Jan 2010 15:44:59 +0000 (15:44 +0000)
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Wed, 20 Jan 2010 15:44:59 +0000 (15:44 +0000)
ChangeLog
libopenjpeg/openjpeg.h

index 938a89d3170c12191babdb7dc4944f6705654f3c..8ea39886d7d0c5476e86afb2537912f7281f156b 100644 (file)
--- 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)
 
index 48d863e1545e4f2b3804419a8660c7f4b883de18..916755b3ff9d2182c7b693c9e3344fecbfa9bc4f 100644 (file)
@@ -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 */