Home
last modified time | relevance | path

Searched refs:Rgba (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp28 union Rgba { union
46 static inline Rgba convertYuvToRgba(int32 y, int32 u, int32 v) { in convertYuvToRgba()
47 Rgba color; in convertYuvToRgba()
59 Rgba* const pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); in JNI_COLORSPACE_METHOD()
66 Rgba* pOutColor = pOutput; in JNI_COLORSPACE_METHOD()
97 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input)); in JNI_COLORSPACE_METHOD()
98 Rgba* pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); in JNI_COLORSPACE_METHOD()
101 Rgba color_in = *pInput++; in JNI_COLORSPACE_METHOD()
102 Rgba& color_out = *pOutput++; in JNI_COLORSPACE_METHOD()
112 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input)); in JNI_COLORSPACE_METHOD()
[all …]
/frameworks/rs/toolkit/test/
DReferenceBlend.kt43 fun blendEachPair(blendFunction: (src: Rgba, dst: Rgba) -> Rgba) { in <lambda>()
50 BlendingMode.CLEAR -> blendEachPair { _, _ -> Rgba(0, 0, 0, 0) } in <lambda>()
69 private fun blendOver(src: Rgba, dst: Rgba) = src + (dst * (255 - src.a)) in blendOver()
72 private fun blendIn(src: Rgba, dst: Rgba) = src * dst.a in blendOver()
75 private fun blendOut(src: Rgba, dst: Rgba) = src * (255 - dst.a) in blendOver()
78 private fun blendAtop(src: Rgba, dst: Rgba): Rgba { in blendOver()
DBufferUtils.kt112 data class Rgba( dataClass
118 operator fun plus(other: Rgba) = in plus()
119 Rgba(r + other.r, g + other.g, b + other.b, a + other.a).clampToUByteRange() in plus()
121 operator fun minus(other: Rgba) = in plus()
122 Rgba(r - other.r, g - other.g, b - other.b, a - other.a).clampToUByteRange() in plus()
124 operator fun times(other: Rgba) = Rgba(r * other.r, g * other.g, b * other.b, a * other.a) shr 8 in plus()
125 operator fun times(scalar: Int) = Rgba(r * scalar, g * scalar, b * scalar, a * scalar) shr 8 in plus()
127 infix fun xor(other: Rgba) = Rgba(r xor other.r, g xor other.g, b xor other.b, a xor other.a) in plus()
129 infix fun shr(other: Int) = Rgba(r shr other, g shr other, b shr other, a shr other) in plus()
131 private fun clampToUByteRange() = Rgba( in plus()
[all …]