Package loci.formats.services
Class JPEGXRServiceImpl
java.lang.Object
loci.common.services.AbstractService
loci.formats.services.JPEGXRServiceImpl
- All Implemented Interfaces:
loci.common.services.Service,JPEGXRService
public class JPEGXRServiceImpl
extends loci.common.services.AbstractService
implements JPEGXRService
Interface defining methods for working with JPEG-XR data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decompress(byte[] compressed) Decompress the given JPEG-XR compressed byte array and return as a byte array.private intgetBGRComponents(short[] format) private short[]getPixelFormat(byte[] stream) private booleanisBGR(short[] format) Methods inherited from class loci.common.services.AbstractService
checkClassDependency
-
Field Details
-
PIXEL_FORMAT_TAG
private static final int PIXEL_FORMAT_TAG- See Also:
-
BGR_24
private static final short BGR_24- See Also:
-
BGR_32
private static final short BGR_32- See Also:
-
BGRA_32
private static final short BGRA_32- See Also:
-
PBGRA_32
private static final short PBGRA_32- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
JPEGXRServiceImpl
public JPEGXRServiceImpl()
-
-
Method Details
-
decompress
Description copied from interface:JPEGXRServiceDecompress the given JPEG-XR compressed byte array and return as a byte array. Opening and closing of decoders and streams is handled internally.- Specified by:
decompressin interfaceJPEGXRService- Parameters:
compressed- the complete JPEG-XR compressed data- Returns:
- raw decompressed bytes
- Throws:
FormatException- if an error occurs during decompression- See Also:
-
getPixelFormat
- Throws:
FormatExceptionIOException
-
isBGR
private boolean isBGR(short[] format) -
getBGRComponents
private int getBGRComponents(short[] format)
-