231 Commits

Author SHA1 Message Date
Harald Kuhr
544d60dabb TMI-JPEG: Fixed ICC profile issue. Now applies profiles when it should.
Profiles with bad indexes are now ignored on read.
Added support for JPEG-LS SOF55 segment (no further JPEG-LS support)
Added class documentation.
2013-06-05 10:54:51 +02:00
Harald Kuhr
f8c40a3748 TMI-JPEG: Better CMYK to RGB algorithm 2013-06-05 10:49:37 +02:00
Harald Kuhr
1d5cc6d266 TMI-JPEG: Refactorings for better separation. 2013-04-22 21:01:30 +02:00
Harald Kuhr
28d8796e54 TMI-JPEG: Simplified logic. 2013-04-22 21:00:33 +02:00
Harald Kuhr
b966254322 TMI-JPEG: More lenient segment parsing, now allows 0xFF padding between segments + fixed an NPE in JPEGImageReader if the parsing fails. 2013-04-19 16:17:01 +02:00
Harald Kuhr
f666610184 TMI-TIFF: New tag + fixed spelling for tag. 2013-01-31 15:40:08 +01:00
Harald Kuhr
6c082353d6 TMI-22: Cleaned up reading of ICC profile, trying to be more lenient about chunk count/chunk index. 2012-06-22 09:57:02 +02:00
Harald Kuhr
73a880a358 TMI-23: Better handling of SOS segment (variable length). Now treats the rest of the stream after SOS as single segment. Not really ideal, but gives better performance than scanning for EOI... 2012-06-21 16:08:03 +02:00
Harald Kuhr
c2245a503d TMI-22: Changed IIOException to warning for images with single chunk ICC_PROFILE with bad index/count. 2012-06-21 16:03:59 +02:00
Harald Kuhr
a4dfb7a009 TMI-21: Implemented getRawImageType and getImageTypes for CMYK/YCCK.
TMI-16: Refactorings, cleaner color space determination + tests for thumbnail readers.
2012-05-07 20:26:26 +02:00
Harald Kuhr
aaef2e4fad TMI-16: Clean-up of thumbnail reading. Removed obsolete code. 2012-05-02 11:59:14 +02:00
Harald Kuhr
241c1882f4 TMI-16: Refactorings. Moved segment classes to upper level. Extracted thumbnail reading to separate classes. 2012-04-24 20:11:04 +02:00
Harald Kuhr
465eb2ecb3 Removed a couple of todos (now done). 2012-04-17 12:28:27 +02:00
Harald Kuhr
0bdb68ea6f TMI-19: Fix for broken JFIF raw RGB thumbnails 2012-04-16 22:55:32 +02:00
Harald Kuhr
c16ffaca13 TMI-18: Fix for images/thumbnails get inverted colors. 2012-04-16 22:53:17 +02:00
Harald Kuhr
2f07329296 TMI-18: Better filtering of APP segments, now only takes 'Exif' APP1 segments into account.
+ Updated failing test.
2012-04-15 22:10:20 +02:00
Harald Kuhr
08b5891298 TMI-18: Preliminary fix for images get inverted colors. 2012-04-13 10:56:26 +02:00
Harald Kuhr
0307237852 Better writer tests.
Fixed a bug in PICTWriter.
Minor changes in ImageReader/WriterBase classes.
2012-03-30 16:58:09 +02:00
Harald Kuhr
e3dcca854b Minor fix to the SOFn recognition + better warnings. 2012-02-07 13:05:49 +01:00
Harald Kuhr
11f9b2bdf8 Added JPEG image writer + spi (for completeness, delegates all the real work) 2012-02-07 13:05:05 +01:00
Harald Kuhr
3efae7cfba Fixed a typo + removed a todo. 2012-02-02 17:00:08 +01:00
Harald Kuhr
c3524adbbc Made EXIFReader more lenient while parsing.
- Now supports empty strings encoded with value count 0.
 - Added Rational.NaN constant to handle bad EXIF data.
Fixed a bug in the JPEGImageReader's raw EXIF thumbnail decoding.
Added test cases.
2012-02-02 16:55:01 +01:00
Harald Kuhr
f2e3f7ed03 Implemented all-new JPEGSegmentIIS that filters out bad JPEG segments before passing on to the native reader.
Implemented JFIF, JFXX and EXIF thumbnail reading.
Added loads of test cases for special cases found in the wild.
2012-02-01 16:01:34 +01:00
Harald Kuhr
7867aeae76 - Fixed issue with subsampling/source regions.
- Experimental support for custom ICC profiles with class output.
- Base work for extracting Exif thumbnail.
2011-12-20 15:33:38 +01:00
Harald Kuhr
905a3da97b Clean-up of reader. Better instantiation of provider in tests. No functional changes. 2011-11-25 12:47:47 +01:00
Harald Kuhr
b5fd17ba24 Test clean-up. Strengthened some tests. Better error messages (stack traces). 2011-11-08 10:16:59 +01:00
Harald Kuhr
18abfcdbc2 Changed default indent from double space to tab. Minor clean-up. 2011-10-30 18:11:52 +01:00
Harald Kuhr
2d04b8d484 Added fast conversion from CMYK to RGB for non-ICC cases. 2011-02-23 19:16:47 +01:00
Harald Kuhr
5accfc9cf0 Fixed a potential NPE. 2011-02-17 21:31:14 +01:00
Harald Kuhr
20b87d155d Mainly new code standard.
A few changes that should have been committed earlier.. :-/
2011-02-17 12:40:49 +01:00
Harald Kuhr
df0d3f90e8 Work in progress: Brand new JPEGImageReader capable of reading CMYK JPEG and images with "broken" color profiles. 2011-02-16 22:24:59 +01:00