ImageFrame

actual data class ImageFrame(val argb: IntArray, val width: Int, val height: Int, val duration: Duration, val timestamp: Duration, val index: Int) : Comparable<ImageFrame> (source)

Stores a single frame's data.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.size or duration is negative.

expect class ImageFrame(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int) : Comparable<ImageFrame> (source)

Stores a single frame's data.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.size or duration is negative.

actual data class ImageFrame(val argb: IntArray, val width: Int, val height: Int, val duration: Duration, val timestamp: Duration, val index: Int) : Comparable<ImageFrame> (source)

Stores a single frame's data.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.sizeor duration is negative.

actual data class ImageFrame(val argb: IntArray, val width: Int, val height: Int, val duration: Duration, val timestamp: Duration, val index: Int) : Comparable<ImageFrame> (source)

Stores a single frame's data.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.size or duration is negative.

Constructors

Link copied to clipboard
constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)

Constructs an ImageFrame.

constructor(image: Bitmap, duration: Duration, timestamp: Duration, index: Int)

Constructs an ImageFrame from a Bitmap.

constructor(image: Bitmap, duration: Duration, timestamp: Duration, index: Int)

Constructs an ImageFrame from a Bitmap.

actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)
expect constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)
constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)

Stores a single frame's data.

constructor(image: BufferedImage, duration: Duration, timestamp: Duration, index: Int)

Constructs an ImageFrame from a BufferedImage.

constructor(image: BufferedImage, duration: Duration, timestamp: Duration, index: Int)

Constructs an ImageFrame from a BufferedImage.

actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)
actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)

Properties

Link copied to clipboard
actual val argb: IntArray
expect val argb: IntArray

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

actual val argb: IntArray
actual val argb: IntArray
Link copied to clipboard
actual val duration: Duration
expect val duration: Duration

The duration of the frame.

actual val duration: Duration
actual val duration: Duration
Link copied to clipboard
actual val height: Int
expect val height: Int

The height of the frame in pixels.

actual val height: Int
actual val height: Int
Link copied to clipboard
actual val index: Int
expect val index: Int

The index of the frame.

actual val index: Int
actual val index: Int
Link copied to clipboard

The duration of the frame.

The duration of the frame.

Link copied to clipboard

The timestamp of the frame.

The timestamp of the frame.

Link copied to clipboard
actual val timestamp: Duration
expect val timestamp: Duration

The timestamp of the frame.

actual val timestamp: Duration
actual val timestamp: Duration
Link copied to clipboard
actual val width: Int
expect val width: Int

The width of the frame in pixels.

actual val width: Int
actual val width: Int

Functions

Link copied to clipboard
actual open operator override fun compareTo(other: ImageFrame): Int

Compares this frame to another frame based on their indices.

expect open operator override fun compareTo(other: ImageFrame): Int

Compares this frame to another frame based on their indices.

actual open operator override fun compareTo(other: ImageFrame): Int

Compares this frame to another frame based on their indices.

actual open operator override fun compareTo(other: ImageFrame): Int

Compares this frame to another frame based on their indices.

Link copied to clipboard
expect operator fun component1(): IntArray

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

Link copied to clipboard
expect operator fun component2(): Int

The width of the frame in pixels.

Link copied to clipboard
expect operator fun component3(): Int

The height of the frame in pixels.

Link copied to clipboard
expect operator fun component4(): Duration

The duration of the frame.

Link copied to clipboard
expect operator fun component5(): Duration

The timestamp of the frame.

Link copied to clipboard
expect operator fun component6(): Int

The index of the frame.

Link copied to clipboard
fun ImageFrame.copy(argb: IntArray = this.argb, width: Int = this.width, height: Int = this.height, duration: Duration = this.duration, timestamp: Duration = this.timestamp, index: Int = this.index): ImageFrame

Creates a copy of this ImageFrame with the specified properties.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard

Converts this frame to a BufferedImage.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String