Searched defs:wr (Results 1 - 2 of 2) sorted by relevance

/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp876 float wr = 0.2126, wg = 0.7152, wb = 0.0722; // ITU709 recommended constants local
879 float y = wr * r + wg * g + wb * b;
881 float v = 0.5 * ((r - y) / (1.0 - wr)) + 0.5;
904 // v = 0.5 * ((r -y) / (1.0 - wr)) + 0.5
905 // 0.5 * ((r - y) / (1.0 - wr)) = v - 0.5
906 // (r - y) / (1.0 - wr) = 2 * (v - 0.5)
907 // r - y = 2 * (v - 0.5) * (1.0 - wr)
908 // r = 2 * (v - 0.5) * (1.0 - wr) + y
910 // y = wr * r + wg * g + wb * b
911 // wr *
[all...]
/frameworks/native/opengl/libagl/
H A Degl.cpp1643 int wr = surface->getHorizontalResolution(); local
1645 *value = (wr * EGL_DISPLAY_SCALING) / hr;

Completed in 3920 milliseconds