public class PixelsWriterMultiple extends PixelsWriter
| Modifier and Type | Field and Description |
|---|---|
protected int |
bandNum |
protected CompressorStream[] |
filterBank
bank of compressor estimators, one for each filter and (perhaps) an adaptive strategy
|
protected byte[][] |
filteredRows
stored filtered rows, one for each filter (0=none is not allocated but linked)
|
protected byte[] |
filteredRowTmp |
protected FiltersPerformance |
filtersPerf |
protected int |
firstRowInThisBand |
protected static int |
HINT_MEMORY_DEFAULT_KB |
protected int |
hintMemoryKb |
protected int |
lastRowInThisBand |
protected int |
rowInBand |
protected LinkedList<byte[]> |
rows
unfiltered rowsperband elements, 0 is the current (rowb).
|
protected int |
rowsPerBand |
protected int |
rowsPerBandCurrent |
buflen, bytesPixel, bytesRow, currentRow, deflaterCompLevel, deflaterStrategy, filterType, imgInfo, initdone| Constructor and Description |
|---|
PixelsWriterMultiple(ImageInfo imgInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
cleanup.
|
protected void |
filterAndWrite(byte[] rowb)
This does the filtering and send to stream.
|
FiltersPerformance |
getFiltersPerf()
for tuning memory or other parameters
|
byte[] |
getRowb()
This will be called by the PngWrite to fill the raw pixels for each row.
|
protected void |
initParams()
called by init(); override (calling this first) to do additional initialization
|
void |
setHintMemoryKb(int hintMemoryKb) |
void |
setHintRowsPerBand(int hintRowsPerBand) |
void |
setUseLz4(boolean lz4) |
filterRowWithFilterType, getCompression, getDefaultFilter, getDeflaterCompLevel, getFiltersUsed, getFilterType, getOs, getTotalBytesToWrite, init, processRow, sendToCompressedStream, setCompressorStream, setDeflaterCompLevel, setDeflaterStrategy, setFilterType, setOsprotected LinkedList<byte[]> rows
protected CompressorStream[] filterBank
protected byte[][] filteredRows
protected byte[] filteredRowTmp
protected FiltersPerformance filtersPerf
protected int rowsPerBand
protected int rowsPerBandCurrent
protected int rowInBand
protected int bandNum
protected int firstRowInThisBand
protected int lastRowInThisBand
protected static final int HINT_MEMORY_DEFAULT_KB
protected int hintMemoryKb
public PixelsWriterMultiple(ImageInfo imgInfo)
protected void filterAndWrite(byte[] rowb)
PixelsWriterPixelsWriter.filterRowWithFilterType(FilterType, byte[], byte[], byte[]) and and
PixelsWriter.sendToCompressedStream(byte[])filterAndWrite in class PixelsWriterpublic byte[] getRowb()
PixelsWritergetRowb in class PixelsWriterprotected void initParams()
PixelsWriterinitParams in class PixelsWriterpublic void close()
PixelsWriterclose in class PixelsWriterpublic void setHintMemoryKb(int hintMemoryKb)
public void setHintRowsPerBand(int hintRowsPerBand)
public void setUseLz4(boolean lz4)
public FiltersPerformance getFiltersPerf()
Copyright © 2014. All rights reserved.