26 #include <fvutils/color/colorspaces.h>
27 #include <fvutils/compression/jpeg_compressor.h>
28 #include <utils/time/tracker.h>
35 using namespace firevision;
37 #define IMAGE_WIDTH 500
38 #define IMAGE_HEIGHT 500
40 #define NUM_CYCLES 100
43 #define DEST_BUF_SIZE 500000
46 main(
int argc,
char **argv)
48 unsigned char *yuv422planar = malloc_buffer(YUV422_PLANAR, IMAGE_WIDTH, IMAGE_HEIGHT);
49 unsigned char *compressed = (
unsigned char *)malloc(DEST_BUF_SIZE);
53 JpegImageCompressor::JPEG_CS_RGB);
62 for (
unsigned int i = 0; i < NUM_CYCLES; ++i) {
63 printf(
"Compress %u\n", i);