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
- patch_res.diff 8.43KB
Comment #1
Posted on Aug 25, 2014 by Grumpy ElephantThe norm ISO/IEC 15444-1 does define values for ENUMCS.
winfried
Comment #2
Posted on Oct 9, 2014 by Quick Lion(No comment was entered for this change.)
Status: New
Labels:
Type-Enhancement
Priority-Medium