24 #include <fvfilters/max.h> 26 #include <core/exceptions/software.h> 27 #include <fvutils/color/yuv.h> 43 FilterMax::FilterMax()
56 register unsigned int h = 0;
57 register unsigned int w = 0;
62 register unsigned char *bup = YUV422_PLANAR_U_PLANE(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height)
65 register unsigned char *bvp = YUV422_PLANAR_V_PLANE(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height)
72 register unsigned char *fup = YUV422_PLANAR_U_PLANE(
src[1],
src_roi[1]->image_width,
src_roi[1]->image_height)
75 register unsigned char *fvp = YUV422_PLANAR_V_PLANE(
src[1],
src_roi[1]->image_width,
src_roi[1]->image_height)
89 unsigned char *lbyp = byp;
90 unsigned char *lbup = fup;
91 unsigned char *lbvp = fvp;
92 unsigned char *lfyp = fyp;
93 unsigned char *lfup = fup;
94 unsigned char *lfvp = fvp;
95 unsigned char *ldyp = dyp;
96 unsigned char *ldup = dup;
97 unsigned char *ldvp = dvp;
99 unsigned char u1, u2, v1, v2;
101 for (h = 0; (h <
src_roi[1]->
height) && (h < dst_roi->height); ++h) {
102 for (w = 0; (w <
src_roi[1]->
width) && (w < dst_roi->width); w += 2) {
127 *dup++ = (u1 + u2) / 2;
128 *dvp++ = (v1 + v2) / 2;
Fawkes library namespace.
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
A NULL pointer was supplied where not allowed.
virtual void apply()
Apply the filter.
unsigned int image_width
width of image that contains this ROI
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned int image_height
height of image that contains this ROI
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.