Changeset 2465


Ignore:
Timestamp:
03/16/07 14:15:54 (13 years ago)
Author:
melissa
Message:

If needed, swap endianness in ZeissLSMReader.openBytes.

Location:
trunk/loci/formats/in
Files:
2 edited

Legend:

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

    r2455 r2465  
    746746   * @throws FormatException if there is an error during metadata parsing. 
    747747   */ 
    748   private byte[] swapIfRequired(byte[] byteArray) 
     748  protected byte[] swapIfRequired(byte[] byteArray) 
    749749    throws FormatException, IOException 
    750750  { 
  • trunk/loci/formats/in/ZeissLSMReader.java

    r2455 r2465  
    149149      System.arraycopy(p[i], 0, b, i*p[0].length, p[i].length); 
    150150    } 
     151     
     152    b = swapIfRequired(b);  
    151153    updateMinMax(b, no); 
    152154    return b; 
Note: See TracChangeset for help on using the changeset viewer.