Lines Matching full:yidx
839 int xidx, yidx, yidx_max = (bgscale-1);
879 yidx = row % bgscale;
882 r1 = r1_min + (r1_diff * yidx) / yidx_max;
883 g1 = g1_min + (g1_diff * yidx) / yidx_max;
884 b1 = b1_min + (b1_diff * yidx) / yidx_max;
885 r1_inv = r1_min + (r1_diff * (yidx_max-yidx)) / yidx_max;
886 g1_inv = g1_min + (g1_diff * (yidx_max-yidx)) / yidx_max;
887 b1_inv = b1_min + (b1_diff * (yidx_max-yidx)) / yidx_max;
889 r2 = r2_min + (r2_diff * yidx) / yidx_max;
890 g2 = g2_min + (g2_diff * yidx) / yidx_max;
891 b2 = b2_min + (b2_diff * yidx) / yidx_max;
892 r2_inv = r2_min + (r2_diff * (yidx_max-yidx)) / yidx_max;
893 g2_inv = g2_min + (g2_diff * (yidx_max-yidx)) / yidx_max;
894 b2_inv = b2_min + (b2_diff * (yidx_max-yidx)) / yidx_max;
946 yidx = row % bgscale;
947 if (yidx > hmax)
948 yidx = bgscale-1 - yidx;
954 k = xidx + yidx;