Lines Matching refs:Int
36 var x: Int = 0,
37 var y: Int = 0,
38 var z: Int = 0,
39 var w: Int = 0
42 operator fun plus(n: Int) = Int4(x + n, y + n, z + n, w + n) in plus()
45 operator fun minus(n: Int) = Int4(x - n, y - n, z - n, w - n) in plus()
48 operator fun times(n: Int) = Int4(x * n, y * n, z * n, w * n) in plus()
102 data class Dimension(val sizeX: Int, val sizeY: Int, val sizeZ: Int)
113 var r: Int = 0,
114 var g: Int = 0,
115 var b: Int = 0,
116 var a: Int = 0
125 operator fun times(scalar: Int) = Rgba(r * scalar, g * scalar, b * scalar, a * scalar) shr 8 in plus()
129 infix fun shr(other: Int) = Rgba(r shr other, g shr other, b shr other, a shr other) in plus()
147 val vectorSize: Int, in plus()
148 val sizeX: Int, in plus()
149 val sizeY: Int in plus()
158 operator fun get(x: Int, y: Int): UByteArray { in plus()
171 operator fun set(x: Int, y: Int, value: UByteArray) { in plus()
180 private fun indexOfVector(x: Int, y: Int) = ((y * sizeX) + x) * paddedSize(vectorSize) in plus()
184 fun forEach(restriction: Range2d?, work: (Int, Int) -> (Unit)) { in plus()
196 val vectorSize: Int,
197 val sizeX: Int,
198 val sizeY: Int
207 operator fun get(x: Int, y: Int): FloatArray { in get()
220 operator fun set(x: Int, y: Int, value: FloatArray) { in set()
228 private fun indexOfVector(x: Int, y: Int) = ((y * sizeX) + x) * paddedSize(vectorSize) in indexOfVector()
232 fun forEach(restriction: Range2d?, work: (Int, Int) -> (Unit)) { in indexOfVector()
243 val sizeX: Int,
244 val sizeY: Int
246 operator fun get(x: Int, y: Int): Rgba { in get()
256 operator fun set(x: Int, y: Int, value: Rgba) { in set()
269 private fun indexOfVector(x: Int, y: Int) = ((y * sizeX) + x) * 4 in indexOfVector()
271 fun forEachCell(restriction: Range2d?, work: (Int, Int) -> (Unit)) = in indexOfVector()
293 fun paddedSize(vectorSize: Int) = if (vectorSize == 3) 4 else vectorSize in indexOfVector()
298 fun randomByteArray(seed: Long, sizeX: Int, sizeY: Int, elementSize: Int): ByteArray { in indexOfVector()
310 sizeX: Int, in randomFloatArray()
311 sizeY: Int, in randomFloatArray()
312 elementSize: Int, in randomFloatArray()
352 fun randomYuvArray(seed: Long, sizeX: Int, sizeY: Int, format: YuvFormat): ByteArray { in randomYuvArray()
385 fun Int.clampToUByteRange(): Int = min(255, max(0, this)) in clampToUByteRange() method
391 fun Int.clampToUByte(): UByte = this.clampToUByteRange().toUByte() in clampToUByteRange() method
412 fun forEachCell(sizeX: Int, sizeY: Int, restriction: Range2d?, work: (Int, Int) -> (Unit)) { in forEachCell()
429 fun renderScriptVectorElementForU8(rs: RenderScript?, vectorSize: Int): Element { in renderScriptVectorElementForU8()
439 fun renderScriptVectorElementForI32(rs: RenderScript?, vectorSize: Int): Element { in renderScriptVectorElementForI32()
474 fun vectorSizeOfBitmap(bitmap: Bitmap): Int { in vectorSizeOfBitmap()
490 fun logArray(prefix: String, array: ByteArray, number: Int = 20) { in logArray()
495 fun logArray(prefix: String, array: IntArray, number: Int = 20) { in logArray()
500 fun logArray(prefix: String, array: FloatArray?, number: Int = 20) { in logArray()
505 fun roundUpTo16(value: Int): Int { in roundUpTo16()