/** Reads a frame at a given position in the file, returns pixels array */ private Object readFrame (RandomAccessFile rFile, long filePos, int size) throws Exception, IOException { rFile.seek(filePos); //if (verbose) //IJ.log("virtual AVI: readFrame @"+posSizeString(filePos, size)+" varlength="+variableLength); if (variableLength) //JPEG or PNG-compressed frames return readCompressedFrame(rFile, size); else return readFixedLengthFrame(rFile, size); }
/** Reads a frame at a given position in the file, returns pixels array */ private Object readFrame (RandomAccessFile rFile, long filePos, int size) throws Exception, IOException { rFile.seek(filePos); //if (verbose) //IJ.log("virtual AVI: readFrame @"+posSizeString(filePos, size)+" varlength="+variableLength); if (variableLength) //JPEG or PNG-compressed frames return readCompressedFrame(rFile, size); else return readFixedLengthFrame(rFile, size); }