Changeset 3303


Ignore:
Timestamp:
10/22/07 09:07:41 (12 years ago)
Author:
melissa
Message:

Minor adjustment to offset calculation.

File:
1 edited

Legend:

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

    r3268 r3303  
    329329            } 
    330330            offsets[ndx] = in.getFilePointer() - len + sb.length() + 21; 
     331            while (offsets[ndx] - in.getFilePointer() + 
     332              len - 14 - sb.length() < 8) 
     333            { 
     334              offsets[ndx]++; 
     335            } 
    331336          } 
    332337          else if (len >= 5 && b[0] == 'I' && b[1] == 'm' && b[2] == 'a' && 
     
    379384      } 
    380385 
    381       if (isLossless) { 
    382         for (int i=0; i<offsets.length; i++) { 
    383           offsets[i]++; 
    384         } 
    385       } 
    386  
    387386      if (core.sizeC[0] == 0) core.sizeC[0] = 1; 
    388387      core.currentOrder[0] = "XYCZT"; 
     
    392391        core.sizeZ[0] /= 3; 
    393392      } 
    394       core.littleEndian[0] = isLossless; 
     393      core.littleEndian[0] = true; 
    395394      core.interleaved[0] = true; 
    396395      core.indexed[0] = false; 
     
    732731    core.rgb[0] = core.sizeC[0] >= 3; 
    733732    core.interleaved[0] = false; 
    734     core.littleEndian[0] = false; 
     733    core.littleEndian[0] = true; 
    735734    core.metadataComplete[0] = true; 
    736735 
Note: See TracChangeset for help on using the changeset viewer.