public class JPEGTurboServiceImpl extends java.lang.Object implements JPEGTurboService
Modifier and Type | Field and Description |
---|---|
private static int |
DRI |
private static int |
EOI |
private byte[] |
header |
private long |
imageDimensions |
private int |
imageHeight |
private int |
imageWidth |
private loci.common.RandomAccessInputStream |
in |
private static boolean |
libraryLoaded |
private java.util.logging.Logger |
logger |
private static org.slf4j.Logger |
LOGGER |
private static java.lang.String |
NATIVE_LIB_CLASS |
private long |
offset |
private int |
restartInterval |
private java.util.ArrayList<java.lang.Long> |
restartMarkers |
private static int |
RST0 |
private static int |
RST7 |
private static int |
SOF0 |
private long |
sos |
private static int |
SOS |
private int |
tileHeight |
private int |
tileWidth |
private int |
xTiles |
private int |
yTiles |
Constructor and Description |
---|
JPEGTurboServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private byte[] |
getFixedHeader() |
long[] |
getRestartMarkers() |
byte[] |
getTile(byte[] buf,
int xCoordinate,
int yCoordinate,
int width,
int height) |
byte[] |
getTile(int tileX,
int tileY) |
void |
initialize(loci.common.RandomAccessInputStream jpeg,
int width,
int height) |
void |
setRestartMarkers(long[] markers) |
private static final org.slf4j.Logger LOGGER
private static final java.lang.String NATIVE_LIB_CLASS
private static final int SOF0
private static final int DRI
private static final int SOS
private static final int RST0
private static final int RST7
private static final int EOI
private transient java.util.logging.Logger logger
private int imageWidth
private int imageHeight
private long offset
private loci.common.RandomAccessInputStream in
private int restartInterval
private long sos
private long imageDimensions
private int tileWidth
private int tileHeight
private int xTiles
private int yTiles
private java.util.ArrayList<java.lang.Long> restartMarkers
private byte[] header
private static boolean libraryLoaded
public void setRestartMarkers(long[] markers)
setRestartMarkers
in interface JPEGTurboService
public long[] getRestartMarkers()
getRestartMarkers
in interface JPEGTurboService
public void initialize(loci.common.RandomAccessInputStream jpeg, int width, int height) throws loci.common.services.ServiceException, java.io.IOException
initialize
in interface JPEGTurboService
loci.common.services.ServiceException
java.io.IOException
public byte[] getTile(byte[] buf, int xCoordinate, int yCoordinate, int width, int height) throws java.io.IOException
getTile
in interface JPEGTurboService
java.io.IOException
public byte[] getTile(int tileX, int tileY) throws java.io.IOException
getTile
in interface JPEGTurboService
java.io.IOException
public void close() throws java.io.IOException
close
in interface JPEGTurboService
java.io.IOException
private byte[] getFixedHeader() throws java.io.IOException
java.io.IOException
Copyright © 2023 Open Microscopy Environment