Lines Matching refs:tx
38 static float golden_bilerp(float tx, float ty, int16_t p00, int16_t p10, int16_t p01, int16_t p11) {
39 return (1.0f-tx) * (1.0f-ty) * p00
40 + (1.0f-tx) * ty * p01
41 + (1.0f-ty) * tx * p10
42 + tx * ty * p11;
46 float tx, float ty, int16_t p00, int16_t p10, int16_t p01, int16_t p11) {
48 double dtx(tx), dty(ty);
57 float tx, float ty, int16_t p00, int16_t p10, int16_t p01, int16_t p11) {
58 int32_t ftx(floor(tx * 65536.0f + 0.5f));
69 static int16_t bilerp_1(float tx, float ty, int16_t p00, int16_t p10, int16_t p01, int16_t p11) {
72 I16 qtx = floor(tx * 65536.0f - 32768.0f + 0.5f);
98 for (float tx : {0.0f, 0.25f, 0.5f, 0.75f, 1.0f - 1.0f/65536.0f})
105 double l = golden_bilerp2(tx, ty, p00, p10, p01, p11);
107 //l = golden_bilerp(tx, ty, p00, p10, p01, p11);
109 int16_t candidate = bilerp(tx, ty, p00, p10, p01, p11);