JonBCode / openjpeg

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

Incorrect code in ../bin/jp2/convert.c, function rawtoimage_common(...) #456

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if (numcomps == 0) {
        color_space = OPJ_CLRSPC_GRAY;
    } else if ((numcomps >= 3) && (parameters->tcp_mct == 0)) {
        color_space = OPJ_CLRSPC_SYCC;
    } else if ((numcomps >= 3) && (parameters->tcp_mct != 2)) {
        color_space = OPJ_CLRSPC_SRGB;
    } else {
        color_space = OPJ_CLRSPC_UNKNOWN;
    }
It seems, the first line should be    if (numcomps == 1) {...}
(GRAY color space, 1 component)

Original issue reported on code.google.com by kurnose...@roentgenprom.ru on 22 Dec 2014 at 12:48

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2983.

Original comment by m.darb...@gmail.com on 22 Dec 2014 at 6:39