Fawkes API
Fawkes Development Version
|
24 #include <core/exceptions/software.h>
25 #include <fvfilters/max.h>
26 #include <fvutils/color/yuv.h>
32 namespace firevision {
40 FilterMax::FilterMax() :
Filter(
"FilterMax", 2)
100 unsigned char *lbyp = byp;
101 unsigned char *lbup = fup;
102 unsigned char *lbvp = fvp;
103 unsigned char *lfyp = fyp;
104 unsigned char *lfup = fup;
105 unsigned char *lfvp = fvp;
106 unsigned char *ldyp = dyp;
107 unsigned char *ldup = dup;
108 unsigned char *ldvp = dvp;
110 unsigned char u1, u2, v1, v2;
112 for (h = 0; (h <
src_roi[1]->
height) && (h < dst_roi->height); ++h) {
113 for (w = 0; (w <
src_roi[1]->
width) && (w < dst_roi->width); w += 2) {
138 *dup++ = (u1 + u2) / 2;
139 *dvp++ = (v1 + v2) / 2;
unsigned int width
ROI width.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned int image_width
width of image that contains this ROI
virtual void apply()
Apply the filter.
unsigned int image_height
height of image that contains this ROI
unsigned int height
ROI height.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
Fawkes library namespace.
unsigned int y
y coordinate
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.
fawkes::upoint_t start
ROI start.
A NULL pointer was supplied where not allowed.
unsigned int line_step
line step
unsigned int x
x coordinate
unsigned char * dst
Destination buffer.