public class JPEGXRServiceImpl extends loci.common.services.AbstractService implements JPEGXRService
Modifier and Type | Field and Description |
---|---|
private static short |
BGR_24 |
private static short |
BGR_32 |
private static short |
BGRA_32 |
private static org.slf4j.Logger |
LOGGER |
private static short |
PBGRA_32 |
private static int |
PIXEL_FORMAT_TAG |
Constructor and Description |
---|
JPEGXRServiceImpl() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decompress(byte[] compressed)
Decompress the given JPEG-XR compressed byte array and return as a byte array.
|
private int |
getBGRComponents(short[] format) |
private short[] |
getPixelFormat(byte[] stream) |
private boolean |
isBGR(short[] format) |
private static final int PIXEL_FORMAT_TAG
private static final short BGR_24
private static final short BGR_32
private static final short BGRA_32
private static final short PBGRA_32
private static final org.slf4j.Logger LOGGER
public byte[] decompress(byte[] compressed) throws FormatException
JPEGXRService
decompress
in interface JPEGXRService
compressed
- the complete JPEG-XR compressed dataFormatException
- if an error occurs during decompressiondecompress(byte[])
private short[] getPixelFormat(byte[] stream) throws FormatException, java.io.IOException
FormatException
java.io.IOException
private boolean isBGR(short[] format)
private int getBGRComponents(short[] format)
Copyright © 2023 Open Microscopy Environment