Lines Matching refs:xmul
323 * described by xmul and ymul in the following ratio:
325 * rgbs[0] * (1-xmul) * (1-ymul) +
326 * rgbs[1] * ( xmul) * (1-ymul) +
327 * rgbs[2] * (1-xmul) * ( ymul) +
328 * rgbs[3] * ( xmul) * ( ymul)
330 * xmul and ymul are integer values in the half-open range [0, 2^31)
338 public static int blend(int rgbs[], int xmul, int ymul) {
339 // xmul/ymul are 31 bits wide, (0 => 2^31-1)
341 xmul = (xmul >>> 19);
350 xmul = (1<<12) - xmul;
354 // xmul and ymul are each 12 bits (0 => 2^12)
356 int factor = xmul * ymul;