Changeset 1214


Ignore:
Timestamp:
08/02/06 17:14:24 (14 years ago)
Author:
curtis
Message:

More bugfixes; turn off debugging flag.

File:
1 edited

Legend:

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

    r1213 r1214  
    4141  // -- Constants -- 
    4242 
    43   public static final boolean DEBUG = true; 
     43  public static final boolean DEBUG = false; 
    4444 
    4545  // non-IFD tags (for internal use) 
     
    17041704 
    17051705        // extract new directory entry parameters 
    1706         int newTag = DataTools.bytesToInt(bytes, 0, 2, little); 
    1707         int newType = DataTools.bytesToInt(bytes, 2, 2, little); 
    1708         int newCount = DataTools.bytesToInt(bytes, 4, little); 
    1709         int newOffset = DataTools.bytesToInt(bytes, 8, little); 
     1706        int newTag = DataTools.bytesToInt(bytes, 0, 2, false); 
     1707        int newType = DataTools.bytesToInt(bytes, 2, 2, false); 
     1708        int newCount = DataTools.bytesToInt(bytes, 4, false); 
     1709        int newOffset = DataTools.bytesToInt(bytes, 8, false); 
     1710        if (DEBUG) { 
     1711          debug("overwriteIFDValue:\n\told: (tag=" + oldTag + "; type=" + 
     1712            oldType + "; count=" + oldCount + "; offset=" + oldOffset + 
     1713            ");\n\tnew: (tag=" + newTag + "; type=" + newType + "; count=" + 
     1714            newCount + "; offset=" + newOffset + ")"); 
     1715        } 
    17101716 
    17111717        // determine the best way to overwrite the old entry 
Note: See TracChangeset for help on using the changeset viewer.