Home
last modified time | relevance | path

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

/external/chromium_org/third_party/skia/tools/skpdiff/
DSkPMetric.cpp160 static float contrast_sensitivity(float cyclesPerDegree, float luminance) { in contrast_sensitivity() argument
163 float exp = expf(-b * cyclesPerDegree); in contrast_sensitivity()
164 float root = sqrtf(1.0f + 0.06f * expf(b * cyclesPerDegree)); in contrast_sensitivity()
168 return a * cyclesPerDegree * exp * root; in contrast_sensitivity()
299 float* cyclesPerDegree = SkNEW_ARRAY(float, maxLevels); in pmetric() local
307 cyclesPerDegree[0] = 0.5f * pixelsPerDegree; in pmetric()
309 cyclesPerDegree[levelIndex] = cyclesPerDegree[levelIndex - 1] * 0.5f; in pmetric()
318 contrast_sensitivity(cyclesPerDegree[levelIndex], (float)csLum / 10.0f + 1e-5f); in pmetric()
334 float cpd = cyclesPerDegree[levelIndex]; in pmetric()
438 SkDELETE_ARRAY(cyclesPerDegree); in pmetric()
/external/skia/tools/skpdiff/
DSkPMetric.cpp160 static float contrast_sensitivity(float cyclesPerDegree, float luminance) { in contrast_sensitivity() argument
163 float exp = expf(-b * cyclesPerDegree); in contrast_sensitivity()
164 float root = sqrtf(1.0f + 0.06f * expf(b * cyclesPerDegree)); in contrast_sensitivity()
168 return a * cyclesPerDegree * exp * root; in contrast_sensitivity()
299 float* cyclesPerDegree = SkNEW_ARRAY(float, maxLevels); in pmetric() local
307 cyclesPerDegree[0] = 0.5f * pixelsPerDegree; in pmetric()
309 cyclesPerDegree[levelIndex] = cyclesPerDegree[levelIndex - 1] * 0.5f; in pmetric()
318 contrast_sensitivity(cyclesPerDegree[levelIndex], (float)csLum / 10.0f + 1e-5f); in pmetric()
334 float cpd = cyclesPerDegree[levelIndex]; in pmetric()
438 SkDELETE_ARRAY(cyclesPerDegree); in pmetric()