24 #include <fvfilters/difference.h>
25 #include <fvutils/color/yuv.h>
29 namespace firevision {
96 unsigned char *lbyp = byp;
97 unsigned char *lbup = fup;
98 unsigned char *lbvp = fvp;
99 unsigned char *lfyp = fyp;
100 unsigned char *lfup = fup;
101 unsigned char *lfvp = fvp;
102 unsigned char *ldyp = dyp;
103 unsigned char *ldup = dup;
104 unsigned char *ldvp = dvp;
106 for (h = 0; (h <
src_roi[1]->
height) && (h < dst_roi->height); ++h) {
107 for (w = 0; (w <
src_roi[1]->
width) && (w < dst_roi->width); w += 2) {
108 *dyp++ = ((*byp - *fyp) < 0) ? 0 : (*byp - *fyp);
111 *dyp++ = ((*byp - *fyp) < 0) ? 0 : (*byp - *fyp);
115 *dup++ = (*fup++ + *bup++) / 2;
116 *dvp++ = (*fvp++ + *bvp++) / 2;