openjpeg.git
8 years agoAdd headers to CMake target
mayeut [Fri, 17 Jul 2015 23:50:17 +0000 (01:50 +0200)]
Add headers to CMake target

8 years agoMerge pull request #535 from mayeut/converttif
Matthieu Darbois [Fri, 17 Jul 2015 22:33:02 +0000 (00:33 +0200)]
Merge pull request #535 from mayeut/converttif

Update TIFF conversion to support more bit depth.

8 years agoAdd tests for TIFF input with Alpha channel 535/head
mayeut [Fri, 17 Jul 2015 22:07:04 +0000 (00:07 +0200)]
Add tests for TIFF input with Alpha channel

Update uclouvain/openjpeg#322

8 years agoAdd tests for TIFF output
mayeut [Fri, 17 Jul 2015 21:22:40 +0000 (23:22 +0200)]
Add tests for TIFF output

Update uclouvain/openjpeg#322

8 years agoAdd tests for TIFF input
mayeut [Thu, 16 Jul 2015 21:20:50 +0000 (23:20 +0200)]
Add tests for TIFF input

Update uclouvain/openjpeg#322

8 years agoFix build warnings in converttif.c
mayeut [Thu, 16 Jul 2015 04:51:21 +0000 (06:51 +0200)]
Fix build warnings in converttif.c

8 years agoUpdate imagetotif to support more output TIF formats
mayeut [Wed, 15 Jul 2015 22:26:02 +0000 (00:26 +0200)]
Update imagetotif to support more output TIF formats

Update uclouvain/openjpeg#322
Update uclouvain/openjpeg#264

8 years agoUpdate tiftoimage to support more input TIF formats
mayeut [Tue, 14 Jul 2015 21:51:02 +0000 (23:51 +0200)]
Update tiftoimage to support more input TIF formats

Update uclouvain/openjpeg#322
Update uclouvain/openjpeg#264

8 years agoMerge pull request #529 from renevanderark/master
mayeut [Sun, 12 Jul 2015 17:20:57 +0000 (19:20 +0200)]
Merge pull request #529 from renevanderark/master

fix Suspicious code in j2k.c
Fixes #517

8 years agoMerge pull request #531 from mayeut/issue-289
mayeut [Sat, 11 Jul 2015 09:42:58 +0000 (11:42 +0200)]
Merge pull request #531 from mayeut/issue-289

Add option to force component splitting in imagetopnm

8 years agoAdd option to force component splitting in imagetopnm 531/head
mayeut [Sat, 11 Jul 2015 09:35:21 +0000 (11:35 +0200)]
Add option to force component splitting in imagetopnm

Update uclouvain/openjpeg#289

8 years agoupdated doxygen website references
Antonin Descampe [Fri, 10 Jul 2015 16:03:28 +0000 (18:03 +0200)]
updated doxygen website references

8 years agofix Suspicious code in j2k.c #517 529/head
Rene van der Ark [Wed, 8 Jul 2015 09:13:31 +0000 (11:13 +0200)]
fix Suspicious code in j2k.c #517

8 years agoFix CMake warning when testing for LFS
mayeut [Sat, 4 Jul 2015 15:33:28 +0000 (17:33 +0200)]
Fix CMake warning when testing for LFS

Update issue #442

8 years agoMerge pull request #514 from mayeut/issue-254
mayeut [Fri, 3 Jul 2015 22:47:59 +0000 (00:47 +0200)]
Merge pull request #514 from mayeut/issue-254

Correctly decode files with incorrect tile-part header fields (TPsot==TNsot)
Fixes uclouvain/openjpeg#254

8 years agouclouvain/openjpeg#254 Add build option to disable the fix 514/head
mayeut [Fri, 3 Jul 2015 22:04:55 +0000 (00:04 +0200)]
uclouvain/openjpeg#254 Add build option to disable the fix

8 years agouclouvain/openjpeg#254 Update MD5 sums for tests
mayeut [Fri, 3 Jul 2015 21:25:14 +0000 (23:25 +0200)]
uclouvain/openjpeg#254 Update MD5 sums for tests

8 years agoupgraded to libtiff v4.0.4
Aaron Boxer [Tue, 9 Dec 2014 19:33:38 +0000 (14:33 -0500)]
upgraded to libtiff v4.0.4

8 years agocommented out printf line
Antonin Descampe [Fri, 3 Jul 2015 15:36:39 +0000 (17:36 +0200)]
commented out printf line

8 years agocommented out a printf line
Antonin Descampe [Fri, 3 Jul 2015 14:35:16 +0000 (16:35 +0200)]
commented out a printf line

8 years agovarious small T1 optimizations
Aaron Boxer [Tue, 16 Jun 2015 02:38:39 +0000 (22:38 -0400)]
various small T1 optimizations

8 years agofixed a few bugs
Aaron Boxer [Sat, 20 Jun 2015 04:01:19 +0000 (00:01 -0400)]
fixed a few bugs

8 years agovisual studio lrintf is very slow - do not use
Aaron Boxer [Tue, 16 Jun 2015 00:17:01 +0000 (20:17 -0400)]
visual studio lrintf is very slow - do not use

8 years agoadd timing to compress and decompress
Aaron Boxer [Tue, 16 Jun 2015 00:16:32 +0000 (20:16 -0400)]
add timing to compress and decompress

8 years agoUpdate README.md
Antonin Descampe [Wed, 24 Jun 2015 15:11:09 +0000 (17:11 +0200)]
Update README.md

8 years agoUpdate README.md
Antonin Descampe [Wed, 17 Jun 2015 12:24:25 +0000 (14:24 +0200)]
Update README.md

8 years agoUpdate README.md
Antonin Descampe [Wed, 17 Jun 2015 12:15:26 +0000 (14:15 +0200)]
Update README.md

8 years agoMerge pull request #510 from radarhere/patch-1
Antonin Descampe [Tue, 16 Jun 2015 12:01:53 +0000 (14:01 +0200)]
Merge pull request #510 from radarhere/patch-1

Fixed typos

8 years agoFixed typos 510/head
Andrew Murray [Tue, 16 Jun 2015 05:07:20 +0000 (15:07 +1000)]
Fixed typos

8 years agoMerge pull request #507 from htmfilho/master
Antonin Descampe [Mon, 15 Jun 2015 07:56:50 +0000 (09:56 +0200)]
Merge pull request #507 from htmfilho/master

Formatted the readme file

9 years agoUpdate README.md 507/head
Hildeberto Mendonça [Sat, 13 Jun 2015 13:39:03 +0000 (15:39 +0200)]
Update README.md

9 years agoFormatted the readme file
Hildeberto Mendonça [Sat, 13 Jun 2015 13:33:37 +0000 (15:33 +0200)]
Formatted the readme file

Put the extension `md` to allow GitHub to identify the file and transform it to HTML, improving the presentation of the project. Formatted the file to markdown. Put links to references.

9 years agoUpdate README.md
Hildeberto Mendonça [Sat, 13 Jun 2015 13:24:45 +0000 (15:24 +0200)]
Update README.md

9 years agoUpdate and rename README to README.md
Hildeberto Mendonça [Sat, 13 Jun 2015 13:23:02 +0000 (15:23 +0200)]
Update and rename README to README.md

9 years agoMerge branch 'master' into issue-254
mayeut [Fri, 5 Jun 2015 18:42:57 +0000 (20:42 +0200)]
Merge branch 'master' into issue-254

9 years ago[trunk] Fix offset computations in opj_j2k_update_image_data
Matthieu Darbois [Wed, 3 Jun 2015 20:56:13 +0000 (20:56 +0000)]
[trunk] Fix offset computations in opj_j2k_update_image_data

Update issue 481

9 years ago[trunk] Fix wrong return value for opj_setup_encoder & opj_set_decoded_resolution_fac...
Matthieu Darbois [Fri, 29 May 2015 21:58:08 +0000 (21:58 +0000)]
[trunk] Fix wrong return value for opj_setup_encoder & opj_set_decoded_resolution_factor (fixes issue 497)

Thanks Aaron.

9 years ago[trunk] Fix sscanf format specifier (fixes issue 494)
Matthieu Darbois [Thu, 28 May 2015 22:16:49 +0000 (22:16 +0000)]
[trunk] Fix sscanf format specifier (fixes issue 494)

Thanks Aaron.

9 years ago[trunk] Fix overflow in opj_image_comp_header_update (fixes issue 495)
Matthieu Darbois [Wed, 27 May 2015 23:05:16 +0000 (23:05 +0000)]
[trunk] Fix overflow in opj_image_comp_header_update (fixes issue 495)

9 years ago[trunk] Correct potential double free on malloc failure in opj_j2k_copy_default_tcp_a...
Matthieu Darbois [Tue, 19 May 2015 21:57:27 +0000 (21:57 +0000)]
[trunk] Correct potential double free on malloc failure in opj_j2k_copy_default_tcp_and_create_tcp (fixes issue 492)

9 years ago[trunk] Add check for number of layers & cblkw/cblkh values (fixes issue 475)
Matthieu Darbois [Tue, 19 May 2015 21:24:44 +0000 (21:24 +0000)]
[trunk] Add check for number of layers & cblkw/cblkh values (fixes issue 475)

9 years ago[trunk] Add check for at most 1 COD marker per tile. 1 COD marker for MH (fixes issue...
Matthieu Darbois [Tue, 19 May 2015 20:13:37 +0000 (20:13 +0000)]
[trunk] Add check for at most 1 COD marker per tile. 1 COD marker for MH (fixes issue 476)

9 years agoRevert "Correct overflows in opj_j2k_update_image_data"
mayeut [Sat, 16 May 2015 12:22:16 +0000 (14:22 +0200)]
Revert "Correct overflows in opj_j2k_update_image_data"

This reverts commit 1fb24aba4b29b7cd1b6880d8f0b08196a12efc2c.

9 years agoImplement TNsot correction for non conforming files
mayeut [Sat, 16 May 2015 09:15:29 +0000 (11:15 +0200)]
Implement TNsot correction for non conforming files

9 years agoCorrect overflows in opj_j2k_update_image_data
mayeut [Sat, 16 May 2015 00:51:31 +0000 (02:51 +0200)]
Correct overflows in opj_j2k_update_image_data

9 years ago[trunk] added overflow checks (fixes issue 431)
Antonin Descampe [Mon, 2 Feb 2015 16:11:31 +0000 (16:11 +0000)]
[trunk] added overflow checks (fixes issue 431)

Thanks mdarbois

9 years ago[trunk] fixes a bug that prevented opj_decompress to take directory as input (fixes...
Antonin Descampe [Mon, 2 Feb 2015 16:11:23 +0000 (16:11 +0000)]
[trunk] fixes a bug that prevented opj_decompress to take directory as input (fixes issue 463)

Thanks Aaron.

9 years ago[trunk] use hidden visibility for static library (fixes issue 354)
Matthieu Darbois [Sun, 25 Jan 2015 16:59:39 +0000 (16:59 +0000)]
[trunk] use hidden visibility for static library (fixes issue 354)

9 years ago[trunk] fixed a bug encoutntered when multiple MCT markers are provided
Antonin Descampe [Tue, 20 Jan 2015 16:29:16 +0000 (16:29 +0000)]
[trunk] fixed a bug encoutntered when multiple MCT markers are provided

Update issue 430
Cc: savmickael@gmail.com
@Mickael: this revision affects your work on custom MCT. Is there a way
you could provide test data to add to our test suite ? Thanks

9 years ago[trunk] checks for JP2 signature and file type boxes more carefully
Antonin Descampe [Tue, 20 Jan 2015 14:27:20 +0000 (14:27 +0000)]
[trunk] checks for JP2 signature and file type boxes more carefully

Update issue 430

9 years ago[trunk] fixed a buffer overflow in opj_tcd_init_decode_tile
Antonin Descampe [Thu, 15 Jan 2015 18:16:29 +0000 (18:16 +0000)]
[trunk] fixed a buffer overflow in opj_tcd_init_decode_tile

Update issue 431

9 years ago[trunk] removed warning from convertbmp.c
Matthieu Darbois [Sat, 27 Dec 2014 11:31:43 +0000 (11:31 +0000)]
[trunk] removed warning from convertbmp.c

Update  issue 442

9 years ago[trunk] fixed typo in opj_decompress (fixes issue 465)
Matthieu Darbois [Fri, 26 Dec 2014 15:37:16 +0000 (15:37 +0000)]
[trunk] fixed typo in opj_decompress (fixes issue 465)

9 years ago[trunk] removed unnecessary operation in opj_bio_flush (fixes issue 461)
Matthieu Darbois [Tue, 23 Dec 2014 16:05:19 +0000 (16:05 +0000)]
[trunk] removed unnecessary operation in opj_bio_flush (fixes issue 461)

9 years ago[trunk] removed warning from convert.c
Matthieu Darbois [Tue, 23 Dec 2014 16:03:45 +0000 (16:03 +0000)]
[trunk] removed warning from convert.c

Update  issue 442

9 years ago[trunk] fixed imagetoraw unsigned 16bits conversion (fixes issue 460)
Matthieu Darbois [Tue, 23 Dec 2014 15:06:23 +0000 (15:06 +0000)]
[trunk] fixed imagetoraw unsigned 16bits conversion (fixes issue 460)

9 years ago[trunk] removed warning from convertbmp.c
Matthieu Darbois [Tue, 23 Dec 2014 10:13:28 +0000 (10:13 +0000)]
[trunk] removed warning from convertbmp.c

Update  issue 442

9 years ago[trunk] fixed colorspace mapping for raw grayscale images (fixes issue 456)
Matthieu Darbois [Mon, 22 Dec 2014 18:39:14 +0000 (18:39 +0000)]
[trunk] fixed colorspace mapping for raw grayscale images (fixes issue 456)

9 years ago[trunk] fixed component precision upscaling in opj_decompress (fixes issue 458)
Matthieu Darbois [Mon, 22 Dec 2014 15:50:32 +0000 (15:50 +0000)]
[trunk] fixed component precision upscaling in opj_decompress (fixes issue 458)

9 years ago[trunk] fixed compression check for 1 bit unsigned component (fixes issue 457)
Matthieu Darbois [Mon, 22 Dec 2014 15:00:12 +0000 (15:00 +0000)]
[trunk] fixed compression check for 1 bit unsigned component (fixes issue 457)

9 years ago[trunk] updated BMP format input support
Matthieu Darbois [Mon, 22 Dec 2014 14:40:31 +0000 (14:40 +0000)]
[trunk] updated BMP format input support

Update  issue 203

9 years ago[trunk] updated BMP format input support
Matthieu Darbois [Mon, 22 Dec 2014 13:14:37 +0000 (13:14 +0000)]
[trunk] updated BMP format input support

Update  issue 203

9 years ago[trunk] updated tests to get BMP RLE8 tested
Matthieu Darbois [Sat, 20 Dec 2014 18:58:28 +0000 (18:58 +0000)]
[trunk] updated tests to get BMP RLE8 tested

Update  issue 203

9 years ago[trunk] fixed BMP reading for 8bpp when width & 3 == 1
Matthieu Darbois [Sat, 20 Dec 2014 18:45:53 +0000 (18:45 +0000)]
[trunk] fixed BMP reading for 8bpp when width & 3 == 1

Update  issue 203

9 years ago[trunk] updated tests
Matthieu Darbois [Sat, 20 Dec 2014 15:08:55 +0000 (15:08 +0000)]
[trunk] updated tests

Update  issue 415

9 years ago[trunk] fixed test issues (fixes issue 454)
Matthieu Darbois [Sat, 20 Dec 2014 13:27:30 +0000 (13:27 +0000)]
[trunk] fixed test issues (fixes issue 454)

9 years ago[trunk] fixed a possible overflow in opj_t1_encode_cblks call to opj_int_fix_mul...
Matthieu Darbois [Sat, 20 Dec 2014 13:03:11 +0000 (13:03 +0000)]
[trunk] fixed a possible overflow in opj_t1_encode_cblks call to opj_int_fix_mul (fixes issue 141)

9 years ago[trunk] fixed return value for compare_raw_files (fixes issue 453)
Matthieu Darbois [Sat, 20 Dec 2014 12:42:40 +0000 (12:42 +0000)]
[trunk] fixed return value for compare_raw_files (fixes issue 453)

9 years ago[trunk] Updated checks regarding number of decomposition levels when compressing
Matthieu Darbois [Fri, 19 Dec 2014 22:56:00 +0000 (22:56 +0000)]
[trunk] Updated checks regarding number of decomposition levels when compressing

Update  issue 215

9 years ago[trunk] Fixed a crash on illegal tile offset when decoding
Matthieu Darbois [Thu, 18 Dec 2014 22:56:38 +0000 (22:56 +0000)]
[trunk] Fixed a crash on illegal tile offset when decoding

Update  issue 427

9 years ago[trunk] Fixed a crash on 0xh or wx0 image size decoding
Matthieu Darbois [Thu, 18 Dec 2014 22:19:52 +0000 (22:19 +0000)]
[trunk] Fixed a crash on 0xh or wx0 image size decoding

Update  issue 427

9 years ago[trunk] removed warnings when building tcd.c (Update issue 442)
Matthieu Darbois [Mon, 15 Dec 2014 18:48:50 +0000 (18:48 +0000)]
[trunk] removed warnings when building tcd.c (Update issue 442)

9 years ago[trunk] Add SSE2/SSE41 implementations for mct.c (fixes issue 451)
Matthieu Darbois [Sat, 13 Dec 2014 12:29:22 +0000 (12:29 +0000)]
[trunk] Add SSE2/SSE41 implementations for mct.c (fixes issue 451)

9 years ago[trunk] Speed-up opj_int_fix_mul by removing unneeded operation
Matthieu Darbois [Sat, 13 Dec 2014 10:27:21 +0000 (10:27 +0000)]
[trunk] Speed-up opj_int_fix_mul by removing unneeded operation

Update  issue 220

9 years ago[trunk] Reduce encoder code block memory usage for non 64x64 code block sizes (fixes...
Matthieu Darbois [Fri, 12 Dec 2014 21:54:22 +0000 (21:54 +0000)]
[trunk] Reduce encoder code block memory usage for non 64x64 code block sizes (fixes issue 444)

9 years ago[trunk] Fixed invalid check in in tiff reading method (fixes issue 449)
Matthieu Darbois [Thu, 11 Dec 2014 20:21:26 +0000 (20:21 +0000)]
[trunk] Fixed invalid check in in tiff reading method (fixes issue 449)

9 years ago[trunk] add test for compression using MCT with alpha channel
Matthieu Darbois [Tue, 9 Dec 2014 19:45:12 +0000 (19:45 +0000)]
[trunk] add test for compression using MCT with alpha channel

Update  issue 415

9 years ago[trunk] check number of components when getting mct norm (fixes issue 436)
Antonin Descampe [Tue, 9 Dec 2014 12:09:08 +0000 (12:09 +0000)]
[trunk] check number of components when getting mct norm (fixes issue 436)

9 years ago[trunk] Fixed compilation error under Visual Studio 2003 (fixes issue 351)
Matthieu Darbois [Tue, 9 Dec 2014 05:44:55 +0000 (05:44 +0000)]
[trunk] Fixed compilation error under Visual Studio 2003 (fixes issue 351)

9 years ago[trunk] Fixed typo in opj_compress error report (fixes issue 350)
Matthieu Darbois [Tue, 2 Dec 2014 20:18:50 +0000 (20:18 +0000)]
[trunk] Fixed typo in opj_compress error report (fixes issue 350)

9 years ago[trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes issue 443)
Matthieu Darbois [Tue, 25 Nov 2014 23:57:37 +0000 (23:57 +0000)]
[trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes issue 443)

9 years ago[trunk] removed some warnings when configuring with CMake 3.x on MacOS
Matthieu Darbois [Tue, 25 Nov 2014 21:52:24 +0000 (21:52 +0000)]
[trunk] removed some warnings when configuring with CMake 3.x on MacOS

Update  issue 443

Warnings related to OPJ_USE_DSYMUTIL are fixed

9 years ago[trunk] removed some warnings when building src/bin/jp2/convert.c
Matthieu Darbois [Tue, 25 Nov 2014 20:06:12 +0000 (20:06 +0000)]
[trunk] removed some warnings when building src/bin/jp2/convert.c

Update  issue 442

9 years ago[trunk] removed warnings when building jp2.c (Update issue 442)
Matthieu Darbois [Mon, 24 Nov 2014 21:31:09 +0000 (21:31 +0000)]
[trunk] removed warnings when building jp2.c (Update issue 442)

9 years ago[trunk] added an option to upsample image components in opj_decompress
Matthieu Darbois [Sat, 22 Nov 2014 17:59:07 +0000 (17:59 +0000)]
[trunk] added an option to upsample image components in opj_decompress

Update  issue 289

Issue is left open since there's still one image failing the tests.

9 years ago[trunk] fixed pnmtoimage for odd pgm files (fixes issue 294)
Matthieu Darbois [Sat, 22 Nov 2014 14:09:16 +0000 (14:09 +0000)]
[trunk] fixed pnmtoimage for odd pgm files (fixes issue 294)

9 years ago[trunk] fixed warning in option to force rgb output in opj_decompress (fixes issue...
Matthieu Darbois [Sat, 22 Nov 2014 12:30:04 +0000 (12:30 +0000)]
[trunk] fixed warning in option to force rgb output in opj_decompress (fixes issue 282)

9 years ago[trunk] added option to force rgb output in opj_decompress (fixes issue 282 , fixes...
Matthieu Darbois [Sat, 22 Nov 2014 00:04:39 +0000 (00:04 +0000)]
[trunk] added option to force rgb output in opj_decompress (fixes issue 282 , fixes issue 286)

9 years ago[trunk] added check for tile component data size overflow (fixes issue 432)
Matthieu Darbois [Fri, 21 Nov 2014 21:35:43 +0000 (21:35 +0000)]
[trunk] added check for tile component data size overflow (fixes issue 432)

9 years ago[trunk] added check for pclr box validity (fixes issue 429)
Matthieu Darbois [Thu, 20 Nov 2014 23:47:09 +0000 (23:47 +0000)]
[trunk] added check for pclr box validity (fixes issue 429)

9 years ago[trunk] fixed memleak in abnormal condition (fixes issue 437)
Matthieu Darbois [Thu, 20 Nov 2014 20:13:47 +0000 (20:13 +0000)]
[trunk] fixed memleak in abnormal condition (fixes issue 437)

9 years ago[trunk] added option to force output bit depth in opj_decompress (fixes issue 283)
Matthieu Darbois [Wed, 19 Nov 2014 20:05:39 +0000 (20:05 +0000)]
[trunk] added option to force output bit depth in opj_decompress (fixes issue 283)

9 years ago[trunk] replace OPJ_MACRO_TCD_ALLOCATE macro by inlined function (fixes issue 433)
Matthieu Darbois [Wed, 19 Nov 2014 19:08:09 +0000 (19:08 +0000)]
[trunk] replace OPJ_MACRO_TCD_ALLOCATE macro by inlined function (fixes issue 433)

9 years ago[trunk] remove warning during build (fixes issue 435)
Matthieu Darbois [Tue, 18 Nov 2014 18:30:44 +0000 (18:30 +0000)]
[trunk] remove warning during build (fixes issue 435)

9 years ago[trunk] fixed a bug leading to jpwl build failure & add related odd width/height...
Matthieu Darbois [Tue, 18 Nov 2014 00:07:50 +0000 (00:07 +0000)]
[trunk] fixed a bug leading to jpwl build failure & add related odd width/height sYCC tests (fixes issue 422)

9 years ago[data] added new non-regression tests from foxit
Matthieu Darbois [Mon, 17 Nov 2014 22:02:38 +0000 (22:02 +0000)]
[data] added new non-regression tests from foxit

Update issue 415
Issue not closed as in the mean time there are other images to include

9 years ago[trunk] fixed a bug preventing palette image with cdef to decode properly using opj_g...
Matthieu Darbois [Mon, 17 Nov 2014 21:46:43 +0000 (21:46 +0000)]
[trunk] fixed a bug preventing palette image with cdef to decode properly using opj_get_decoded_tile (fixes issue 428)

9 years ago[trunk] significantly reduces memory for single tile RGB encoding (fixes
Antonin Descampe [Mon, 3 Nov 2014 14:51:41 +0000 (14:51 +0000)]
[trunk] significantly reduces memory for single tile RGB encoding (fixes
issue 375)

9 years ago[trunk] add a cdef box when alpha component is present (fixes issue 416)
Antonin Descampe [Mon, 3 Nov 2014 14:12:01 +0000 (14:12 +0000)]
[trunk] add a cdef box when alpha component is present (fixes issue 416)

9 years ago[trunk] fixed a bug preventing palette image with cdef to decode properly (fixes...
Antonin Descampe [Thu, 30 Oct 2014 18:26:10 +0000 (18:26 +0000)]
[trunk] fixed a bug preventing palette image with cdef to decode properly (fixes issue 412)