Changeset 3903


Ignore:
Timestamp:
04/09/08 09:28:38 (12 years ago)
Author:
melissa
Message:

Fixed endian problem.

File:
1 edited

Legend:

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

    r3891 r3903  
    151151          DataTools.unpackShort( 
    152152            ((short[][][]) previousImage)[zct[0]][row + y][x + i], buf, 
    153             2 * (row * w + i), core.littleEndian[0]); 
     153            2 * (row * w + i), !core.littleEndian[0]); 
    154154        } 
    155155      } 
     
    158158          DataTools.unpackBytes( 
    159159            ((int[][][]) previousImage)[zct[0]][row + y][x + i], buf, 
    160             4 * (row * w + i), 4, core.littleEndian[0]); 
     160            4 * (row * w + i), 4, !core.littleEndian[0]); 
    161161        } 
    162162      } 
     
    166166        for (int i=0; i<w; i++) { 
    167167          int v = Float.floatToIntBits(s[x + i]); 
    168           DataTools.unpackBytes(v, buf, base + i*4, 4, core.littleEndian[0]); 
     168          DataTools.unpackBytes(v, buf, base + i*4, 4, !core.littleEndian[0]); 
    169169        } 
    170170      } 
Note: See TracChangeset for help on using the changeset viewer.