24 #include <fvfilters/invert.h> 26 #include <core/exceptions/software.h> 27 #include <fvutils/color/yuv.h> 57 register unsigned int h = 0;
58 register unsigned int w = 0;
64 unsigned char *lyp = yp;
77 register unsigned int h = 0;
78 register unsigned int w = 0;
83 register unsigned char *up = YUV422_PLANAR_U_PLANE(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height)
86 register unsigned char *vp = YUV422_PLANAR_V_PLANE(
src[0],
src_roi[0]->image_width,
src_roi[0]->image_height)
99 unsigned char *lyp = yp;
100 unsigned char *lup = up;
101 unsigned char *lvp = vp;
102 unsigned char *ldyp = dyp;
103 unsigned char *ldup = dup;
104 unsigned char *ldvp = dvp;
106 for (h = 0; (h <
src_roi[0]->
height) && (h < dst_roi->height); ++h) {
107 for (w = 0; (w <
src_roi[0]->
width) && (w < dst_roi->width); w += 2) {
108 *dyp++ = 255 - *yp++;
109 *dyp++ = 255 - *yp++;
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.
FilterInvert()
Constructor.
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.
virtual void apply()
Apply the filter.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.