copy
fun FrameInfo.copy(duration: Duration = this.duration, timestamp: Duration = this.timestamp): FrameInfo(source)
Creates a copy of this FrameInfo with the specified properties.
Parameters
duration
The duration of the frame.
timestamp
The timestamp of the frame.
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(source)
Creates a copy of this ImageFrame with the specified properties.
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.