Lines Matching refs:ip
866 horizontalDifferenceF(float *ip, int n, int stride, uint16 *wp, uint16 *FromLT2)
880 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
881 b2 = wp[2] = CLAMP(ip[2]);
886 ip += 3;
887 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
888 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
889 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
892 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
893 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]);
898 ip += 4;
899 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
900 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
901 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
902 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1;
905 ip += n - 1; /* point to last one */
909 REPEAT(stride, wp[0] = CLAMP(ip[0]);
912 wp--; ip--)
915 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--)
921 horizontalDifference16(unsigned short *ip, int n, int stride,
933 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
934 b2 = wp[2] = CLAMP(ip[2]);
939 ip += 3;
940 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
941 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
942 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
945 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
946 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]);
951 ip += 4;
952 r1 = CLAMP(ip[0]); wp[0] = (r1-r2) & mask; r2 = r1;
953 g1 = CLAMP(ip[1]); wp[1] = (g1-g2) & mask; g2 = g1;
954 b1 = CLAMP(ip[2]); wp[2] = (b1-b2) & mask; b2 = b1;
955 a1 = CLAMP(ip[3]); wp[3] = (a1-a2) & mask; a2 = a1;
958 ip += n - 1; /* point to last one */
962 REPEAT(stride, wp[0] = CLAMP(ip[0]);
965 wp--; ip--)
968 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--)
975 horizontalDifference8(unsigned char *ip, int n, int stride,
986 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
987 b2 = wp[2] = CLAMP(ip[2]);
991 r1 = CLAMP(ip[3]); wp[3] = (r1-r2) & mask; r2 = r1;
992 g1 = CLAMP(ip[4]); wp[4] = (g1-g2) & mask; g2 = g1;
993 b1 = CLAMP(ip[5]); wp[5] = (b1-b2) & mask; b2 = b1;
995 ip += 3;
998 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]);
999 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]);
1003 r1 = CLAMP(ip[4]); wp[4] = (r1-r2) & mask; r2 = r1;
1004 g1 = CLAMP(ip[5]); wp[5] = (g1-g2) & mask; g2 = g1;
1005 b1 = CLAMP(ip[6]); wp[6] = (b1-b2) & mask; b2 = b1;
1006 a1 = CLAMP(ip[7]); wp[7] = (a1-a2) & mask; a2 = a1;
1008 ip += 4;
1012 ip += n + stride - 1; /* point to last one */
1015 REPEAT(stride, wp[0] = CLAMP(ip[0]);
1018 wp--; ip--)
1021 REPEAT(stride, wp[0] = CLAMP(ip[0]); wp--; ip--)