Searched refs:clampToUByte (Results 1 – 5 of 5) sorted by relevance
73 return ubyteArrayOf(v.x.clampToUByte(), v.y.clampToUByte(), v.z.clampToUByte(), input[3]) in lookup()
67 return sum.clampToUByte() in convolveOne()
374 fun Float.clampToUByte(): UByte = min(255, max(0, (this + 0.5f).toInt())).toUByte() in Float() method380 fun FloatArray.clampToUByte() = UByteArray(size) { this[it].clampToUByte() } in Float() method391 fun Int.clampToUByte(): UByte = this.clampToUByteRange().toUByte() in clampToUByteRange() method397 fun unitFloatClampedToUByte(num: Float): UByte = (num * 255f).clampToUByte() in clampToUByteRange()
95 return UByteArray(4) { p[it].clampToUByte() } in yuvToRGBA4()
46 out[x, y] = o.clampToUByte() in <lambda>()