if (isBitSet(delegate.filterMask, i)) { if (debug) System.out.println("skip for chunk " + delegate); continue; data = inflate(data); } else if (f.id == 2) { data = shuffle(data, f.data[0]); } else if (f.id == 3) { data = checkfletcher32(data);
public ByteBuffer getByteBuffer() throws IOException { // read the data byte[] data = new byte[delegate.size]; raf.seek(delegate.filePos); raf.readFully(data); // apply filters backwards for (int i = filters.length - 1; i >= 0; i--) { H5header.Filter f = filters[i]; if (isBitSet(delegate.filterMask, i)) { if (debug) System.out.println("skip for chunk " + delegate); continue; } if (f.id == 1) { data = inflate(data); } else if (f.id == 2) { data = shuffle(data, f.data[0]); } else if (f.id == 3) { data = checkfletcher32(data); } else if (f.id == 307) { data = unbzip2(data); } else throw new RuntimeException("Unknown filter type="+f.id); } ByteBuffer result = ByteBuffer.wrap(data); result.order(byteOrder); return result; }
public ByteBuffer getByteBuffer() throws IOException { // read the data byte[] data = new byte[delegate.size]; raf.seek(delegate.filePos); raf.readFully(data); // apply filters backwards for (int i = filters.length - 1; i >= 0; i--) { H5header.Filter f = filters[i]; if (isBitSet(delegate.filterMask, i)) { if (debug) System.out.println("skip for chunk " + delegate); continue; } if (f.id == 1) { data = inflate(data); } else if (f.id == 2) { data = shuffle(data, f.data[0]); } else if (f.id == 3) { data = checkfletcher32(data); } else throw new RuntimeException("Unknown filter type="+f.id); } ByteBuffer result = ByteBuffer.wrap(data); result.order(byteOrder); return result; }
public LayoutBBTiled.DataChunk next() throws IOException { return new DataChunk(delegate.next()); } }
public LayoutBBTiled.DataChunk next() throws IOException { return new DataChunk(delegate.next()); } }
public LayoutBBTiled.DataChunk next() throws IOException { return new DataChunk(delegate.next()); } }