Package-level declarations

Types

Link copied to clipboard
class DecodedJpeg2000Image(val width: Int, val height: Int, val argbPixels: IntArray)

Decoded JPEG 2000 image containing dimensions and packed 32-bit 0xAARRGGBB pixels.

Functions

Link copied to clipboard
expect fun decodeJpeg2000(encodedData: ByteArray): DecodedJpeg2000Image?

Decodes JPEG 2000 encoded image data (either a .jp2 container or a raw .j2k/.j2c codestream) into a DecodedJpeg2000Image with 0xAARRGGBB pixels, or returns null if decoding fails.

actual fun decodeJpeg2000(encodedData: ByteArray): DecodedJpeg2000Image?
actual fun decodeJpeg2000(encodedData: ByteArray): DecodedJpeg2000Image?
actual fun decodeJpeg2000(encodedData: ByteArray): DecodedJpeg2000Image?
Link copied to clipboard

Decodes JPEG 2000 encoded image data (either .jp2 or .j2k) into an Android Bitmap with Bitmap.Config.ARGB_8888, or returns null if decoding fails.

Link copied to clipboard

Decodes JPEG 2000 encoded image data (either .jp2 or .j2k) into a JVM BufferedImage of type BufferedImage.TYPE_INT_ARGB, or returns null if decoding fails.

Link copied to clipboard

Returns true if data starts with a JPEG 2000 JP2 box signature (00 00 00 0C 6A 50 20 20 0D 0A 87 0A) or a raw J2K codestream SOC+SIZ marker (FF 4F FF 51).