24 #include <fvmodels/color/colormodel.h> 25 #include <fvutils/color/color_object_map.h> 75 unsigned char *yp = yuv422_planar_buffer;
76 unsigned char *up = YUV422_PLANAR_U_PLANE(yuv422_planar_buffer, 512, 512);
77 unsigned char *vp = YUV422_PLANAR_V_PLANE(yuv422_planar_buffer, 512, 512);
80 for (
unsigned int v = 256; v > 0 ; --v) {
81 for (
unsigned int u = 0; u < 256; ++u) {
90 memcpy(yp, (yp - 512), 512);
92 memcpy(up, (up - 256), 256);
93 memcpy(vp, (vp - 256), 256);
unsigned char V
V component.
unsigned char Y
Y component.
virtual ~ColorModel()
Virtual empty destructor.
virtual void uv_to_image(unsigned char *yuv422_planar_buffer, unsigned int y)
Create image from color model.
unsigned char U
U component.
static YUV_t get_color(color_t color)
YUV_t getter.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const =0
Determine classification of YUV pixel.