Changeset 2076


Ignore:
Timestamp:
01/12/07 12:38:27 (13 years ago)
Author:
nor
Message:
  • Modified to use LZOCompressor as part of Compressor interface changes.
  • Since LZOCompressor does not know size of output before decompressing, added a warning if size of output doesn't match expected.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/OpenlabReader.java

    r2033 r2076  
    304304      in.read(c); 
    305305 
    306       Compression.lzoUncompress(c, size, b); 
     306//      Compression.lzoUncompress(c, size, b); 
     307      LZOCompressor lzoc = new LZOCompressor(); 
     308      b = lzoc.decompress(c); 
     309      if(b.length != size) { 
     310        System.err.println("LZOCompressor failed to predict image size"); 
     311        System.err.println(size + " expected, got " + b.length + 
     312                           ". The image displayed may not be correct."); 
     313      } 
    307314 
    308315      if (volumeType == MAC_24_BIT) { 
Note: See TracChangeset for help on using the changeset viewer.