Lines Matching refs:CLAMP

940 #define  CLAMP(v) ( (v<(float)0.)   ? 0				\  in horizontalDifferenceF()  macro
948 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
949 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
950 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
956 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
957 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
958 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
961 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
962 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
963 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
964 a2 = wp[3] = (uint16) CLAMP(ip[3]); in horizontalDifferenceF()
970 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
971 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
972 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
973 a1 = (int32) CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifferenceF()
980 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
986 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp--; ip--) in horizontalDifferenceF()
998 #undef CLAMP in horizontalDifference16()
999 #define CLAMP(v) From14[(v) >> 2] in horizontalDifference16() macro
1004 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1005 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference16()
1011 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
1012 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
1013 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1016 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1017 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16()
1023 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
1024 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
1025 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1026 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifference16()
1033 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference16()
1039 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference16()
1051 #undef CLAMP in horizontalDifference8()
1052 #define CLAMP(v) (From8[(v)]) in horizontalDifference8() macro
1057 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1058 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference8()
1062 r1 = CLAMP(ip[3]); wp[3] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1063 g1 = CLAMP(ip[4]); wp[4] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1064 b1 = CLAMP(ip[5]); wp[5] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1069 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1070 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8()
1074 r1 = CLAMP(ip[4]); wp[4] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1075 g1 = CLAMP(ip[5]); wp[5] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1076 b1 = CLAMP(ip[6]); wp[6] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1077 a1 = CLAMP(ip[7]); wp[7] = (a1-a2) & mask; a2 = a1; in horizontalDifference8()
1086 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference8()
1092 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference8()