Lines Matching defs:CLAMP

884 #define  CLAMP(v) ( (v<(float)0.)   ? 0				\
892 r2 = wp[0] = (uint16) CLAMP(ip[0]);
893 g2 = wp[1] = (uint16) CLAMP(ip[1]);
894 b2 = wp[2] = (uint16) CLAMP(ip[2]);
900 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
901 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
902 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
905 r2 = wp[0] = (uint16) CLAMP(ip[0]);
906 g2 = wp[1] = (uint16) CLAMP(ip[1]);
907 b2 = wp[2] = (uint16) CLAMP(ip[2]);
908 a2 = wp[3] = (uint16) CLAMP(ip[3]);
914 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
915 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
916 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
917 a1 = (int32) CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1;
924 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]);
930 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp--; ip--)
942 #undef CLAMP
943 #define CLAMP(v) From14[(v) >> 2]
948 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
949 b2 = wp[2] = CLAMP(ip[2]);
955 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
956 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
957 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
960 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
961 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]);
967 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
968 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
969 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
970 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1;
977 REPEAT(stride, wp[0] = CLAMP(ip[0]);
983 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--)
995 #undef CLAMP
996 #define CLAMP(v) (From8[(v)])
1001 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
1002 b2 = wp[2] = CLAMP(ip[2]);
1006 r1 = CLAMP(ip[3]); wp[3] = (r1-r2) & mask; r2 = r1;
1007 g1 = CLAMP(ip[4]); wp[4] = (g1-g2) & mask; g2 = g1;
1008 b1 = CLAMP(ip[5]); wp[5] = (b1-b2) & mask; b2 = b1;
1013 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
1014 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]);
1018 r1 = CLAMP(ip[4]); wp[4] = (r1-r2) & mask; r2 = r1;
1019 g1 = CLAMP(ip[5]); wp[5] = (g1-g2) & mask; g2 = g1;
1020 b1 = CLAMP(ip[6]); wp[6] = (b1-b2) & mask; b2 = b1;
1021 a1 = CLAMP(ip[7]); wp[7] = (a1-a2) & mask; a2 = a1;
1030 REPEAT(stride, wp[0] = CLAMP(ip[0]);
1036 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--)