Companion

Properties

Link copied to clipboard
open override val bpp: Int = 32
Link copied to clipboard

Functions

Link copied to clipboard
fun ColorFormat.convertTo(color: Int, target: ColorFormat): Int
Link copied to clipboard
fun ColorFormat.decode(data: ByteArray, dataOffset: Int = 0, size: Int = (data.size / bytesPerPixel).toInt(), littleEndian: Boolean = true): RgbaArray
fun ColorFormat.decode(data: ByteArray, dataOffset: Int, out: RgbaArray, outOffset: Int, size: Int, littleEndian: Boolean = true)
Link copied to clipboard
inline fun ColorFormat.decodeInternal(data: ByteArray, dataOffset: Int, out: RgbaArray, outOffset: Int, size: Int, read: (data: ByteArray, io: Int) -> Int)
Link copied to clipboard
fun ColorFormat.decodeToBitmap32(bmp: Bitmap32, data: ByteArray, dataOffset: Int = 0, littleEndian: Boolean = true): Bitmap32
fun ColorFormat.decodeToBitmap32(width: Int, height: Int, data: ByteArray, dataOffset: Int = 0, littleEndian: Boolean = true): Bitmap32
Link copied to clipboard
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int = 0, size: Int = colors.size, littleEndian: Boolean = true): ByteArray
fun ColorFormat32.encode(colors: IntArray, colorsOffset: Int, out: IntArray, outOffset: Int, size: Int)
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int, out: ByteArray, outOffset: Int, size: Int, littleEndian: Boolean = true)
Link copied to clipboard
open override fun getA(v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getB(v: Int): Int
fun getB(y: Int, u: Int, v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getG(v: Int): Int
fun getG(y: Int, u: Int, v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getR(v: Int): Int
fun getR(y: Int, u: Int, v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getU(v: Int): Int
fun getU(r: Int, g: Int, b: Int): Int
Link copied to clipboard
fun getV(v: Int): Int
fun getV(r: Int, g: Int, b: Int): Int
Link copied to clipboard
fun getY(v: Int): Int
fun getY(r: Int, g: Int, b: Int): Int
Link copied to clipboard
Link copied to clipboard
open override fun pack(r: Int, g: Int, b: Int, a: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun YUVtoRGB(out: RgbaArray, outPos: Int, inY: ByteArray, inU: ByteArray, inV: ByteArray, inPos: Int, count: Int)