[trunk] Handle cmap where direct use is specified (issue235_cmapsubbox.jp2)
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 5 Mar 2014 09:45:04 +0000 (09:45 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 5 Mar 2014 09:45:04 +0000 (09:45 +0000)
commit4d5d1f0f66b9146b81bac94b6c8a3fc4b3ff2d54
tree5df03cbc8f0545557190e9b06df3f959f2fc9219
parent1ef677f2648c2fc424183f38225ce1fa4bf390c9
[trunk] Handle cmap where direct use is specified (issue235_cmapsubbox.jp2)
I doubt the old code ever work. The new code copy the old codestream bytes into the new components (instead of copying the pointer).
Technically the issue235.jp2 file should be handled since I.5.3.5 specifies that:
...
If the JP2 Header box does not contain a Component Mapping box, the components shall be mapped directly to channels,
such that component i is mapped to channel i.
...
Update issue 235
src/lib/openjp2/jp2.c