public class JPEGTurboServiceImpl extends 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 RandomAccessInputStream |
in |
private static boolean |
libraryLoaded |
private Logger |
logger |
private static String |
NATIVE_LIB_CLASS |
private long |
offset |
private int |
restartInterval |
private ArrayList<Long> |
restartMarkers |
private static int |
RST0 |
private static int |
RST7 |
private static int |
SOF0 |
private long |
sos |
private static int |
SOS |
private int |
tileDim |
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(RandomAccessInputStream jpeg,
int width,
int height) |
void |
setRestartMarkers(long[] markers) |
private static final 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 Logger logger
private int imageWidth
private int imageHeight
private long offset
private RandomAccessInputStream in
private int restartInterval
private long sos
private long imageDimensions
private int tileDim
private int xTiles
private int yTiles
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(RandomAccessInputStream jpeg, int width, int height) throws ServiceException, IOException
initialize
in interface JPEGTurboService
ServiceException
IOException
public byte[] getTile(byte[] buf, int xCoordinate, int yCoordinate, int width, int height) throws IOException
getTile
in interface JPEGTurboService
IOException
public byte[] getTile(int tileX, int tileY) throws IOException
getTile
in interface JPEGTurboService
IOException
public void close() throws IOException
close
in interface JPEGTurboService
IOException
private byte[] getFixedHeader() throws IOException
IOException
Copyright © 2015 Open Microscopy Environment