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