Home
last modified time | relevance | path

Searched refs:clampToUByte (Results 1 – 5 of 5) sorted by relevance

/frameworks/rs/toolkit/test/
DReferenceLut3d.kt73 return ubyteArrayOf(v.x.clampToUByte(), v.y.clampToUByte(), v.z.clampToUByte(), input[3]) in lookup()
DReferenceConvolve.kt67 return sum.clampToUByte() in convolveOne()
DBufferUtils.kt374 fun Float.clampToUByte(): UByte = min(255, max(0, (this + 0.5f).toInt())).toUByte() in Float() method
380 fun FloatArray.clampToUByte() = UByteArray(size) { this[it].clampToUByte() } in Float() method
391 fun Int.clampToUByte(): UByte = this.clampToUByteRange().toUByte() in clampToUByteRange() method
397 fun unitFloatClampedToUByte(num: Float): UByte = (num * 255f).clampToUByte() in clampToUByteRange()
DReferenceYuvToRgb.kt95 return UByteArray(4) { p[it].clampToUByte() } in yuvToRGBA4()
DReferenceResize.kt46 out[x, y] = o.clampToUByte() in <lambda>()