Changeset 6509


Ignore:
Timestamp:
06/09/10 12:20:31 (10 years ago)
Author:
melissa
Message:

Adjust strip offsets if 32-bit signed values are being used in > 2 GB files.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/tiff/IFD.java

    r6495 r6509  
    711711    } 
    712712 
     713    for (int i=0; i<offsets.length; i++) { 
     714      if (offsets[i] < 0) { 
     715        offsets[i] += 0x100000000L; 
     716      } 
     717    } 
     718 
    713719    if (isTiled()) return offsets; 
    714720    long rowsPerStrip = getRowsPerStrip()[0]; 
  • trunk/components/bio-formats/src/loci/formats/tiff/IFD.java

    r6495 r6509  
    711711    } 
    712712 
     713    for (int i=0; i<offsets.length; i++) { 
     714      if (offsets[i] < 0) { 
     715        offsets[i] += 0x100000000L; 
     716      } 
     717    } 
     718 
    713719    if (isTiled()) return offsets; 
    714720    long rowsPerStrip = getRowsPerStrip()[0]; 
Note: See TracChangeset for help on using the changeset viewer.