JonBCode / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

JP2_RES proposition for implementation #378

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I attached a file containing the modification I have done for getting/setting 
the resolution.

I've got another stupid question:
Can anybody explain me about the reason it is like that:
/**
 * Supported image color spaces
*/
typedef enum COLOR_SPACE {
    OPJ_CLRSPC_UNKNOWN = -1,    /**< not supported by the library */
    OPJ_CLRSPC_UNSPECIFIED = 0, /**< not specified in the codestream */
    OPJ_CLRSPC_SRGB = 1,        /**< sRGB */
    OPJ_CLRSPC_GRAY = 2,        /**< grayscale */
    OPJ_CLRSPC_SYCC = 3,        /**< YUV */
    OPJ_CLRSPC_EYCC = 4,        /**< e-YCC */
    OPJ_CLRSPC_CMYK = 5         /**< CMYK */
} OPJ_COLOR_SPACE;

instead of instead of using the values defined in the norme:

typedef enum COLOR_SPACE {
    OPJ_CLRSPC_UNKNOWN = -1,    /**< not supported by the library */
    OPJ_CLRSPC_UNSPECIFIED = 0, /**< not specified in the codestream */
    OPJ_CLRSPC_CMYK = 12,
    OPJ_CLRSPC_YCCK = 13,
    OPJ_CLRSPC_LAB = 14,  
    OPJ_CLRSPC_SRGB = 16,       /**< sRGB */
    OPJ_CLRSPC_GRAY = 17,       /**< grayscale */
    OPJ_CLRSPC_SYCC = 18            /**< YUV */
    OPJ_CLRSPC_EYCC = 24,        /**< e-YCC */
} OPJ_COLOR_SPACE;

Thanks .

Mika

Original issue reported on code.google.com by legu...@gmail.com on 20 Aug 2014 at 3:25

Attachments:

GoogleCodeExporter commented 9 years ago
The norm ISO/IEC 15444-1 does define values for ENUMCS.

winfried

Original comment by szukw...@arcor.de on 25 Aug 2014 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by m.darb...@gmail.com on 9 Oct 2014 at 6:11