Changeset 7459


Ignore:
Timestamp:
12/24/10 14:49:46 (9 years ago)
Author:
melissa
Message:

Fill in IFD values after the IFDs have been parsed, thus reducing the number of seeks and speeding up file reading when the underlying IRandomAccess is an instance of StreamHandle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java

    r7453 r7459  
    215215 
    216216    lastPlane = no; 
     217    tiffParser.fillInIFD(ifds.get(no)); 
    217218    tiffParser.getSamples(ifds.get(no), buf, x, y, w, h); 
    218219 
     
    310311    in = new RandomAccessInputStream(id); 
    311312    tiffParser = new TiffParser(in); 
     313    tiffParser.setDoCaching(false); 
    312314    Boolean littleEndian = tiffParser.checkHeader(); 
    313315    if (littleEndian == null) { 
     
    331333 
    332334    IFD firstIFD = ifds.get(0); 
     335    tiffParser.fillInIFD(firstIFD); 
    333336 
    334337    PhotoInterp photo = firstIFD.getPhotometricInterpretation(); 
Note: See TracChangeset for help on using the changeset viewer.