Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gcode-importer opened this issue Dec 22, 2014 · 1 comment

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 456

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)

Reported by [email protected] on 2014-12-22 12:48:12

@gcode-importer
Copy link
Author

This issue was closed by revision r2983.

Reported by mayeut on 2014-12-22 18:39:21

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant