KRA

object KRA : ImageFormat

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun check(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Boolean
Link copied to clipboard
suspend fun decode(file: VfsFile): Bitmap
open suspend override fun decode(file: VfsFile, props: ImageDecodingProps): Bitmap
suspend fun decode(s: AsyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
suspend fun decode(s: AsyncStream, filename: String): Bitmap
fun decode(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap

fun decode(data: ByteArray, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap

Decodes a given data byte array to a bitmap based on the image format with optional extra prop properties.

Link copied to clipboard
open override fun decodeHeader(s: SyncStream, props: ImageDecodingProps): ImageInfo?
Link copied to clipboard
suspend fun decodeHeaderSuspend(file: VfsFile, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
open suspend fun decodeHeaderSuspend(s: AsyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
Link copied to clipboard
open suspend override fun decodeSuspend(data: ByteArray, props: ImageDecodingProps): Bitmap
Link copied to clipboard
fun encode(bitmap: Bitmap, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
fun encode(image: ImageData, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
fun encode(frames: List<ImageFrame>, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
Link copied to clipboard
open suspend override fun encodeSuspend(image: ImageDataContainer, props: ImageEncodingProps): ByteArray
Link copied to clipboard
suspend fun ImageFormatEncoder.encodeSuspend(bitmap: Bitmap, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
Link copied to clipboard
Link copied to clipboard
fun lzfDecompress(in_data: UByteArrayInt, in_len: Int, out_data: UByteArrayInt, out_len: Int): Int
Link copied to clipboard
operator fun ImageFormat.plus(format: ImageFormat): ImageFormat
operator fun ImageFormat.plus(formats: List<ImageFormat>): ImageFormat
Link copied to clipboard
suspend fun read(file: VfsFile): Bitmap
suspend fun read(file: VfsFile, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageData
fun read(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
fun read(s: SyncStream, filename: String = "unknown"): Bitmap
fun read(s: ByteArray, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
fun read(s: ByteArray, filename: String): Bitmap
Link copied to clipboard
open override fun readImage(s: SyncStream, props: ImageDecodingProps): ImageData
Link copied to clipboard
open fun readImageContainer(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageDataContainer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ImageFormat.toProps(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageDecodingProps
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun writeImage(image: ImageData, s: SyncStream, props: ImageEncodingProps)