Home
last modified time | relevance | path

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

/third_party/glfw/src/
Dmonitor.c231 unsigned int colorDiff, leastColorDiff = UINT_MAX; in _glfwChooseVideoMode() local
242 colorDiff = 0; in _glfwChooseVideoMode()
245 colorDiff += abs(current->redBits - desired->redBits); in _glfwChooseVideoMode()
247 colorDiff += abs(current->greenBits - desired->greenBits); in _glfwChooseVideoMode()
249 colorDiff += abs(current->blueBits - desired->blueBits); in _glfwChooseVideoMode()
261 if ((colorDiff < leastColorDiff) || in _glfwChooseVideoMode()
262 (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || in _glfwChooseVideoMode()
263 (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) in _glfwChooseVideoMode()
268 leastColorDiff = colorDiff; in _glfwChooseVideoMode()
Dcontext.c163 unsigned int colorDiff, leastColorDiff = UINT_MAX; in _glfwChooseFBConfig() local
217 colorDiff = 0; in _glfwChooseFBConfig()
221 colorDiff += (desired->redBits - current->redBits) * in _glfwChooseFBConfig()
227 colorDiff += (desired->greenBits - current->greenBits) * in _glfwChooseFBConfig()
233 colorDiff += (desired->blueBits - current->blueBits) * in _glfwChooseFBConfig()
302 if ((colorDiff < leastColorDiff) || in _glfwChooseFBConfig()
303 (colorDiff == leastColorDiff && extraDiff < leastExtraDiff)) in _glfwChooseFBConfig()
312 leastColorDiff = colorDiff; in _glfwChooseFBConfig()
/third_party/vk-gl-cts/modules/internal/
DditFrameworkTests.cpp826 const UVec4 colorDiff = ulpDiff(color, subCase.varying); in runCase() local
827 const bool colorOk = boolAll(lessThanEqual(colorDiff, tcu::UVec4(maxColorUlpDiff))); in runCase()
844 << " color ulp diff = " << colorDiff in runCase()
/third_party/vk-gl-cts/modules/gles2/stress/
Des2sSpecialFloatTests.cpp321 const tcu::IVec4 colorDiff = tcu::abs(col.toIVec() - refCol.toIVec()); in drawTestPattern() local
323 if (colorDiff.x() > formatThreshold.getRed() + colorThreshold || in drawTestPattern()
324 colorDiff.y() > formatThreshold.getGreen() + colorThreshold || in drawTestPattern()
325 colorDiff.z() > formatThreshold.getBlue() + colorThreshold) in drawTestPattern()
/third_party/astc-encoder/Source/
Dastcenc_compress_symbolic.cpp1475 vint4 colorDiff = colorRef - colorTest; in compress_block() local
1476 colorSumDiff += colorDiff * colorDiff; in compress_block()
/third_party/vk-gl-cts/modules/gles3/stress/
Des3sSpecialFloatTests.cpp329 const tcu::IVec4 colorDiff = tcu::abs(col.toIVec() - refCol.toIVec()); in drawTestPattern() local
331 if (colorDiff.x() > formatThreshold.getRed() + colorThreshold || in drawTestPattern()
332 colorDiff.y() > formatThreshold.getGreen() + colorThreshold || in drawTestPattern()
333 colorDiff.z() > formatThreshold.getBlue() + colorThreshold) in drawTestPattern()