24 #ifndef __FIREVISION_UTILS_COMPRESSION_JPEG_COMPRESSOR_LIBJPEG_H_ 25 #define __FIREVISION_UTILS_COMPRESSION_JPEG_COMPRESSOR_LIBJPEG_H_ 27 #ifndef __FIREVISION_UTILS_COMPRESSION_JPEG_COMPRESSOR_H_ 28 # error Do not include jpeg_compressor_libjpeg.h directly, use jpeg_compressor.h 31 #include <fvutils/compression/imagecompressor.h> 45 virtual void set_image_dimensions(
unsigned int width,
unsigned int height);
46 virtual void set_image_buffer(colorspace_t cspace,
unsigned char *buffer);
47 virtual void set_destination_buffer(
unsigned char *buf,
unsigned int buf_size);
48 virtual size_t compressed_size();
49 virtual void set_filename(
const char *filename);
52 virtual void compress();
53 virtual size_t recommended_compressed_buffer_size();
54 virtual bool supports_vflip();
55 virtual void set_vflip(
bool enable);
58 unsigned char *jpeg_buffer;
59 unsigned int jpeg_buffer_size;
60 unsigned char *buffer;
68 unsigned int jpeg_bytes;
JpegColorspace
JPEG color space.
CompressionDestination
Where to put the compressed image.
Image compressor interface.