Changeset 7351


Ignore:
Timestamp:
12/07/10 12:43:51 (9 years ago)
Author:
melissa
Message:

Fixed AVI reader to allow a compressed plane to be accessed multiple times in succession.

File:
1 edited

Legend:

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

    r7286 r7351  
    137137      int inputRowLen = FormatTools.getPlaneSize(this, getSizeX(), 1); 
    138138      for (int row=0; row<h; row++) { 
    139         System.arraycopy(b, (row + y) * inputRowLen, buf, row * rowLen, rowLen); 
     139        System.arraycopy(b, (row + y) * inputRowLen + x * bytes, buf, 
     140          row * rowLen, rowLen); 
    140141      } 
    141142      b = null; 
     
    310311    throws FormatException, IOException 
    311312  { 
     313    if (lastImageNo == no) { 
     314      buf = lastImage; 
     315      return buf; 
     316    } 
    312317    CodecOptions options = new CodecOptions(); 
    313318    options.width = getSizeX(); 
Note: See TracChangeset for help on using the changeset viewer.