Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dcolorspace.cpp115 int r, g, b, a, h, s, v, c_max, c_min; in JNI_COLORSPACE_METHOD() local
127 c_max = (r > b) ? r : b; in JNI_COLORSPACE_METHOD()
130 c_max = (g > b) ? g : b; in JNI_COLORSPACE_METHOD()
132 delta = c_max -c_min; in JNI_COLORSPACE_METHOD()
135 if (c_max == r) { in JNI_COLORSPACE_METHOD()
138 } else if (c_max == g) { in JNI_COLORSPACE_METHOD()
143 s = (delta == 0.0f) ? 0 : static_cast<unsigned char>(delta / c_max * 255); in JNI_COLORSPACE_METHOD()
144 v = c_max; in JNI_COLORSPACE_METHOD()