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

asoc value of 65536 is allowed #321

Closed
gcode-importer opened this issue Mar 29, 2014 · 3 comments
Closed

asoc value of 65536 is allowed #321

gcode-importer opened this issue Mar 29, 2014 · 3 comments

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 321

Cnf. :

[OpenJPEG] opj_decompress trunk refusing to decompress 4 band imagery

------------ start cdef -------------------
[0]c(0) typ(0) asoc(1)
[1]c(1) typ(0) asoc(2)
[2]c(2) typ(0) asoc(3)
[3]c(3) typ(65535) asoc(65535)
------------ end cdef ---------------------

The type value and asoc value of 65535 (2^16 - 1) is allowed:

ISO/IEC 15444-1:2002 (E)

Table I.16 ­ Typ[i] field values

2^16 ­1   The type of this channel is not specified.


Table I.17 ­ Asoc[i] field values

2^16­ 1   This channel is not associated with any particular colour.

Therefore insert the following line in
openjpeg-2.x-trunk-r2824, line 771:

    if (info[i].asoc >= 65535) continue;

The name of the function is 'opj_jp2_check_color() '.

winfried



Reported by szukw000 on 2014-03-29 20:22:05

@gcode-importer
Copy link
Author

Sorry, a typo. Must run:

asoc value of 65535 is allowed

winfried

Reported by szukw000 on 2014-03-30 01:39:07

@gcode-importer
Copy link
Author

Reported by malaterre on 2014-03-31 10:46:51

  • Labels added: Milestone-Release2.1

@mayeut
Copy link
Collaborator

mayeut commented Aug 27, 2015

Fixed with PR #559

@mayeut mayeut closed this as completed Aug 27, 2015
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

3 participants