92 {
95 auto interesting = {0, 1, 2, 3, 4, 5, 6, 7, 8, 60, 61, 62, 63, 64, 65, 66, 67, 68, 124, 125,
96 126, 127, 128, 129, 130, 131, 132, 188, 189, 190, 191, 192, 193, 194,
97 195, 196, 248, 249, 250, 251, 252, 253, 254, 255};
98 for (float tx : {0.0f, 0.25f, 0.5f, 0.75f, 1.0f - 1.0f/65536.0f})
99 for (float ty : {0.0f, 0.25f, 0.5f, 0.75f, 1.0f - 1.0f/65536.0f})
100 for (int p00 : interesting)
101 for (int p01 : interesting)
102 for (int p10 : interesting)
103 for (int p11 : interesting) {
104
106 int16_t golden =
floor(l + 0.5);
107
108
109 int16_t candidate =
bilerp(tx, ty, p00, p10, p01, p11);
110 stats.log(golden, candidate);
111 }
113}
static int step(int x, SkScalar min, SkScalar max)
static SkScalar bilerp(SkScalar tx, SkScalar ty, SkScalar c00, SkScalar c10, SkScalar c01, SkScalar c11)
static double golden_bilerp2(float tx, float ty, int16_t p00, int16_t p10, int16_t p01, int16_t p11)