Searched refs:LERP (Results 1 – 4 of 4) sorted by relevance
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
D | cmsintrp.c | 334 # define LERP(a,l,h) (cmsFloat32Number) ((l)+(((h)-(l))*(a))) in BilinearInterpFloat() macro 367 dx0 = LERP(fx, d00, d10); in BilinearInterpFloat() 368 dx1 = LERP(fx, d01, d11); in BilinearInterpFloat() 370 dxy = LERP(fy, dx0, dx1); in BilinearInterpFloat() 376 # undef LERP in BilinearInterpFloat() 388 #define LERP(a,l,h) (cmsUInt16Number) (l + ROUND_FIXED_TO_INT(((h-l)*a))) in BilinearInterp16() macro 425 dx0 = LERP(rx, d00, d10); in BilinearInterp16() 426 dx1 = LERP(rx, d01, d11); in BilinearInterp16() 428 dxy = LERP(ry, dx0, dx1); in BilinearInterp16() 434 # undef LERP in BilinearInterp16() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_fxt1.c | 1404 #define LERP(n, t, c0, c1) (((n) - (t)) * (c0) + (t) * (c1) + (n) / 2) / (n) macro 1430 b = LERP(6, t, UP5(CC_SEL(cc, 0)), UP5(CC_SEL(cc, 15))); in fxt1_decode_1HI() 1431 g = LERP(6, t, UP5(CC_SEL(cc, 5)), UP5(CC_SEL(cc, 20))); in fxt1_decode_1HI() 1432 r = LERP(6, t, UP5(CC_SEL(cc, 10)), UP5(CC_SEL(cc, 25))); in fxt1_decode_1HI() 1538 b = LERP(3, t, UP5(col[0][BCOMP]), UP5(col[1][BCOMP])); in fxt1_decode_1MIXED() 1539 g = LERP(3, t, UP6(col[0][GCOMP], glsb ^ selb), in fxt1_decode_1MIXED() 1541 r = LERP(3, t, UP5(col[0][RCOMP]), UP5(col[1][RCOMP])); in fxt1_decode_1MIXED() 1590 b = LERP(3, t, UP5(col0[BCOMP]), UP5(CC_SEL(cc, 79))); in fxt1_decode_1ALPHA() 1591 g = LERP(3, t, UP5(col0[GCOMP]), UP5(CC_SEL(cc, 84))); in fxt1_decode_1ALPHA() 1592 r = LERP(3, t, UP5(col0[RCOMP]), UP5(CC_SEL(cc, 89))); in fxt1_decode_1ALPHA() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blit.c | 356 #define LERP(T, A, B) ( (A) + (T) * ((B) - (A)) ) macro 362 const GLfloat temp0 = LERP(a, v00, v10); in lerp_2d() 363 const GLfloat temp1 = LERP(a, v01, v11); in lerp_2d() 364 return LERP(b, temp0, temp1); in lerp_2d()
|
D | s_texfilter.c | 51 #define LERP(T, A, B) ( (A) + (T) * ((B) - (A)) ) macro 66 const GLfloat temp0 = LERP(a, v00, v10); in lerp_2d() 67 const GLfloat temp1 = LERP(a, v01, v11); in lerp_2d() 68 return LERP(b, temp0, temp1); in lerp_2d() 81 const GLfloat temp00 = LERP(a, v000, v100); in lerp_3d() 82 const GLfloat temp10 = LERP(a, v010, v110); in lerp_3d() 83 const GLfloat temp01 = LERP(a, v001, v101); in lerp_3d() 84 const GLfloat temp11 = LERP(a, v011, v111); in lerp_3d() 85 const GLfloat temp0 = LERP(b, temp00, temp10); in lerp_3d() 86 const GLfloat temp1 = LERP(b, temp01, temp11); in lerp_3d() [all …]
|