26 #include <fvutils/color/colorspaces.h>
27 #include <fvutils/color/yuv.h>
28 #include <fvutils/ipc/shm_image.h>
33 using namespace firevision;
39 main(
int argc,
char **argv)
41 unsigned char *yuv422_packed = malloc_buffer(YUV422_PACKED, WIDTH, HEIGHT);
46 unsigned char *yuv422_planar = shm->
buffer();
48 yuv422packed_to_yuv422planar(yuv422_packed, yuv422_planar, WIDTH, HEIGHT);
Shared memory image buffer.
unsigned char * buffer() const
Get image buffer.