Package loci.formats.codec
Class JPEGTileDecoder
java.lang.Object
loci.formats.codec.JPEGTileDecoder
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intbyte[]getScanline(int y) intgetWidth()(package private) ome.codecs.JPEGTileDecodervoidinitialize(String id, int imageWidth) voidinitialize(loci.common.RandomAccessInputStream in, int imageWidth) voidinitialize(loci.common.RandomAccessInputStream in, int y, int h, int imageWidth) int[]preprocess(loci.common.RandomAccessInputStream in) Pre-process the stream to make sure that the image width and height are non-zero.
-
Field Details
-
decoder
private ome.codecs.JPEGTileDecoder decoder
-
-
Constructor Details
-
JPEGTileDecoder
public JPEGTileDecoder()
-
-
Method Details
-
initialize
-
initialize
public void initialize(loci.common.RandomAccessInputStream in, int imageWidth) -
initialize
public void initialize(loci.common.RandomAccessInputStream in, int y, int h, int imageWidth) -
preprocess
public int[] preprocess(loci.common.RandomAccessInputStream in) Pre-process the stream to make sure that the image width and height are non-zero. Returns an array containing the image width and height. -
getScanline
public byte[] getScanline(int y) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getWrapped
ome.codecs.JPEGTileDecoder getWrapped()
-