Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java308 final float COLOR_RANGE = 255f; in convertPixelYuvToRgb() local
324 rgb[0] = r / COLOR_RANGE; in convertPixelYuvToRgb()
325 rgb[1] = g / COLOR_RANGE; in convertPixelYuvToRgb()
326 rgb[2] = b / COLOR_RANGE; in convertPixelYuvToRgb()
DImageReaderTest.java568 final float COLOR_RANGE = 255f; in convertPixelYuvToRgba() local
631 int r = (int) Math.max(0.0f, Math.min(COLOR_RANGE, y + 1.402f * (cr - 128))); in convertPixelYuvToRgba()
633 Math.min(COLOR_RANGE, y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128))); in convertPixelYuvToRgba()
634 int b = (int) Math.max(0.0f, Math.min(COLOR_RANGE, y + 1.772f * (cb - 128))); in convertPixelYuvToRgba()