24 #include <fvfilters/compare.h> 26 #include <fvutils/color/yuv.h> 45 :
Filter(
"FilterCompare", 2)
57 register unsigned int h = 0;
58 register unsigned int w = 0;
68 register unsigned char *fup = YUV422_PLANAR_U_PLANE(
src[FOREGROUND],
src_roi[FOREGROUND]->image_width,
src_roi[FOREGROUND]->image_height)
71 register unsigned char *fvp = YUV422_PLANAR_V_PLANE(
src[FOREGROUND],
src_roi[FOREGROUND]->image_width,
src_roi[FOREGROUND]->image_height)
85 unsigned char *lbyp = byp;
86 unsigned char *lfyp = fyp;
87 unsigned char *lfup = fup;
88 unsigned char *lfvp = fvp;
89 unsigned char *ldyp = dyp;
90 unsigned char *ldup = dup;
91 unsigned char *ldvp = dvp;
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
static const unsigned int FOREGROUND
Foreground image.
FilterCompare()
Constructor.
unsigned int image_width
width of image that contains this ROI
virtual void apply()
Apply the filter.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned int image_height
height of image that contains this ROI
static const unsigned int BACKGROUND
Background image.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned int height
ROI height.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.