Changeset 7353


Ignore:
Timestamp:
12/07/10 13:41:13 (9 years ago)
Author:
melissa
Message:
  • Allow the same plane to be read multiple times in succession.
  • Fixed row indices when cropping images.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/NativeQTReader.java

    r6881 r7353  
    178178      !code.equals(altCodec); 
    179179 
    180     byte[] t = uncompress(pixs, code); 
     180    byte[] t = prevPlane == no && prevPixels != null && !code.equals(altCodec) ? 
     181      prevPixels : uncompress(pixs, code); 
    181182    if (code.equals("rpza")) { 
    182183      for (int i=0; i<t.length; i++) { 
     
    226227      if (bitsPerPixel == 32) { 
    227228        for (int col=0; col<w; col++) { 
    228           int src = row * getSizeX() * bpp * 4 + (x + col) * bpp * 4 + 1; 
     229          int src = (row + y) * getSizeX() * bpp * 4 + (x + col) * bpp * 4 + 1; 
    229230          int dst = row * destRowLen + col * bpp * 3; 
    230231          if (src + 3 <= t.length && dst + 3 <= buf.length) { 
Note: See TracChangeset for help on using the changeset viewer.