Searched refs:COLOR_RANGE (Results 1 – 2 of 2) sorted by relevance
308 final float COLOR_RANGE = 255f; in convertPixelYuvToRgb() local324 rgb[0] = r / COLOR_RANGE; in convertPixelYuvToRgb()325 rgb[1] = g / COLOR_RANGE; in convertPixelYuvToRgb()326 rgb[2] = b / COLOR_RANGE; in convertPixelYuvToRgb()
568 final float COLOR_RANGE = 255f; in convertPixelYuvToRgba() local631 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()