Lines Matching refs:CLAMP
924 #define CLAMP(v) ( (v<(float)0.) ? 0 \ in horizontalDifferenceF() macro
932 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
933 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
934 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
940 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
941 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
942 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
945 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
946 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
947 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
948 a2 = wp[3] = (uint16) CLAMP(ip[3]); in horizontalDifferenceF()
954 r1 = (int32) CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifferenceF()
955 g1 = (int32) CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifferenceF()
956 b1 = (int32) CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifferenceF()
957 a1 = (int32) CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifferenceF()
964 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
970 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp--; ip--) in horizontalDifferenceF()
982 #undef CLAMP in horizontalDifference16()
983 #define CLAMP(v) From14[(v) >> 2] in horizontalDifference16() macro
988 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
989 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference16()
995 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
996 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
997 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1000 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16()
1001 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16()
1007 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1; in horizontalDifference16()
1008 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1; in horizontalDifference16()
1009 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1; in horizontalDifference16()
1010 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1; in horizontalDifference16()
1017 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference16()
1023 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference16()
1035 #undef CLAMP in horizontalDifference8()
1036 #define CLAMP(v) (From8[(v)]) in horizontalDifference8() macro
1041 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1042 b2 = wp[2] = CLAMP(ip[2]); in horizontalDifference8()
1046 r1 = CLAMP(ip[3]); wp[3] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1047 g1 = CLAMP(ip[4]); wp[4] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1048 b1 = CLAMP(ip[5]); wp[5] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1053 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8()
1054 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8()
1058 r1 = CLAMP(ip[4]); wp[4] = (r1-r2) & mask; r2 = r1; in horizontalDifference8()
1059 g1 = CLAMP(ip[5]); wp[5] = (g1-g2) & mask; g2 = g1; in horizontalDifference8()
1060 b1 = CLAMP(ip[6]); wp[6] = (b1-b2) & mask; b2 = b1; in horizontalDifference8()
1061 a1 = CLAMP(ip[7]); wp[7] = (a1-a2) & mask; a2 = a1; in horizontalDifference8()
1070 REPEAT(stride, wp[0] = CLAMP(ip[0]); in horizontalDifference8()
1076 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--) in horizontalDifference8()