AppleCoreImageFormatProvider

Properties

Link copied to clipboard

Whether this provider is valid or not.

Functions

Link copied to clipboard
fun CGRectMakeExt(x: Double, y: Double, width: Double, height: Double): CValue<CGRect>
fun CGRectMakeExt(x: Int, y: Int, width: Int, height: Int): CValue<CGRect>
Link copied to clipboard
open suspend override fun decode(data: ByteArray): CoreImage

Decodes a data ByteArray into a CoreImage

Link copied to clipboard
open suspend override fun encode(image: CoreImage, format: CoreImageFormat, level: Double = 1.0): ByteArray

Encodes a CoreImage into a ByteArray in the specified format (PNG, JPEG, etc.)

Link copied to clipboard
open suspend override fun info(data: ByteArray): CoreImageInfo

Gets the CoreImageInfo of a data ByteArray. Potentially without decoding the pixels.

Link copied to clipboard
fun swapRB(ptr: CPointer<IntVar>?, count: Int)
Link copied to clipboard
fun transferBitmap32CGContext(bmp: CoreImage32, ctx: CGContextRef?, toBitmap: Boolean)
Link copied to clipboard
fun transferBitmap32ToCGImage(bmp: CoreImage32, colorSpace: CGColorSpaceRef? = null): CGImageRef?

Returned image must be deallocated with CGImageRelease