24 #include <fvmodels/color/colormodel.h> 25 #include <fvutils/color/color_object_map.h> 55 ColorModel::~ColorModel()
73 ColorModel::uv_to_image(
unsigned char *yuv422_planar_buffer,
unsigned int y)
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) {
82 c = ColorObjectMap::get_color(determine(y, u, v));
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.
unsigned char U
U component.