24 #ifndef __FIREVISION_UTILS_COMPRESSION_JPEG_COMPRESSOR_H_
25 #define __FIREVISION_UTILS_COMPRESSION_JPEG_COMPRESSOR_H_
27 #include <fvutils/compression/imagecompressor.h>
29 namespace firevision {
46 virtual void set_image_dimensions(
unsigned int width,
unsigned int height);
47 virtual void set_image_buffer(colorspace_t cspace,
unsigned char *buffer);
48 virtual void set_destination_buffer(
unsigned char *buf,
unsigned int buf_size);
49 virtual size_t compressed_size();
50 virtual void set_filename(
const char *filename);
53 virtual void compress();
54 virtual size_t recommended_compressed_buffer_size();
57 unsigned char *jpeg_buffer;
58 unsigned int jpeg_buffer_size;
59 unsigned char *buffer;
66 unsigned int jpeg_bytes;
70 JpegColorspace jpeg_cs;
71 CompressionDestination compdest;
JpegColorspace
JPEG color space.
CompressionDestination
Where to put the compressed image.
Image compressor interface.