Package ome.codecs
Class JPEGTileDecoder
- java.lang.Object
-
- ome.codecs.JPEGTileDecoder
-
- All Implemented Interfaces:
AutoCloseable
public class JPEGTileDecoder extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description JPEGTileDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getHeight()
byte[]
getScanline(int y)
int
getWidth()
void
initialize(String id, int imageWidth)
void
initialize(loci.common.RandomAccessInputStream in, int imageWidth)
void
initialize(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.
-
-
-
Method Detail
-
initialize
public void initialize(String id, int imageWidth)
-
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:
close
in interfaceAutoCloseable
-
-