Changeset 2060


Ignore:
Timestamp:
01/10/07 11:04:29 (13 years ago)
Author:
nor
Message:

Updated to use LZWCompressor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/TiffTools.java

    r2052 r2060  
    17681768        "(Group 4 Fax) compression mode is not supported"); 
    17691769    } 
    1770     else if (compression == LZW) return Compression.lzwUncompress(input); 
     1770    else if (compression == LZW) { 
     1771      LZWCompressor c = new LZWCompressor(); 
     1772      return c.decompress(input); 
     1773      // return Compression.lzwUncompress(input); 
     1774    } 
    17711775    else if (compression == JPEG) { 
    17721776      throw new FormatException( 
     
    24062410        "(Group 4 Fax) compression mode is not supported"); 
    24072411    } 
    2408     else if (compression == LZW) return Compression.lzwCompress(input); 
     2412    else if (compression == LZW) { 
     2413      LZWCompressor c = new LZWCompressor(); 
     2414      return c.compress(input, null, null); 
     2415      // return Compression.lzwCompress(input); 
     2416    } 
     2417 
    24092418    else if (compression == JPEG) { 
    24102419      throw new FormatException( 
Note: See TracChangeset for help on using the changeset viewer.