Fawkes API  Fawkes Development Version
firevision::ImageDecompressor Class Referenceabstract

Image de-compressor interface. More...

#include <>>

Inheritance diagram for firevision::ImageDecompressor:

Public Member Functions

virtual ~ImageDecompressor ()
 Virtual empty destructor. More...
 
virtual void set_image_dimensions (unsigned int width, unsigned int height)
 Set image dimensions. More...
 
virtual void set_compressed_buffer (unsigned char *buf, unsigned int buf_size)
 Set compressed buffer. More...
 
virtual void set_decompressed_buffer (unsigned char *buf, unsigned int buf_size)
 Set decompressed buffer. More...
 
virtual void decompress ()=0
 Decompress image. More...
 

Protected Attributes

unsigned int _width
 Width of image in pixels. More...
 
unsigned int _height
 Height of image in pixels. More...
 
unsigned char * _compressed_buffer
 Buffer containing the compressed image. More...
 
unsigned char * _decompressed_buffer
 Buffer containing the decompressed image after decompression. More...
 
unsigned int _compressed_buffer_size
 Size in bytes of _compressed_buffer. More...
 
unsigned int _decompressed_buffer_size
 Size in bytes of _decompressed_buffer. More...
 

Detailed Description

Image de-compressor interface.

Currently only decompressing from memory to memory is supported.

Author
Tim Niemueller

Definition at line 35 of file imagedecompressor.h.

Constructor & Destructor Documentation

◆ ~ImageDecompressor()

firevision::ImageDecompressor::~ImageDecompressor ( )
virtual

Virtual empty destructor.

Definition at line 67 of file imagedecompressor.cpp.

Member Function Documentation

◆ decompress()

void firevision::ImageDecompressor::decompress ( )
pure virtual

Decompress image.

Implemented in firevision::JpegImageDecompressor.

◆ set_compressed_buffer()

void firevision::ImageDecompressor::set_compressed_buffer ( unsigned char *  buf,
unsigned int  buf_size 
)
virtual

Set compressed buffer.

Parameters
bufbuffer
buf_sizesize of buffer in bytes

Definition at line 89 of file imagedecompressor.cpp.

References _compressed_buffer, and _compressed_buffer_size.

Referenced by firevision::FuseImageContent::decompress().

◆ set_decompressed_buffer()

void firevision::ImageDecompressor::set_decompressed_buffer ( unsigned char *  buf,
unsigned int  buf_size 
)
virtual

Set decompressed buffer.

Parameters
bufdecompressed buffer
buf_sizebuffer size

Definition at line 101 of file imagedecompressor.cpp.

References _decompressed_buffer, and _decompressed_buffer_size.

Referenced by firevision::FuseImageContent::decompress().

◆ set_image_dimensions()

void firevision::ImageDecompressor::set_image_dimensions ( unsigned int  width,
unsigned int  height 
)
virtual

Set image dimensions.

Parameters
widthwidth of image in pixels
heightheight of image in pixels

Definition at line 77 of file imagedecompressor.cpp.

References _height, and _width.

Member Data Documentation

◆ _compressed_buffer

int firevision::ImageDecompressor::_compressed_buffer
protected

Buffer containing the compressed image.

Definition at line 56 of file imagedecompressor.h.

Referenced by set_compressed_buffer().

◆ _compressed_buffer_size

int firevision::ImageDecompressor::_compressed_buffer_size
protected

Size in bytes of _compressed_buffer.

Definition at line 58 of file imagedecompressor.h.

Referenced by set_compressed_buffer().

◆ _decompressed_buffer

int firevision::ImageDecompressor::_decompressed_buffer
protected

Buffer containing the decompressed image after decompression.

Definition at line 57 of file imagedecompressor.h.

Referenced by set_decompressed_buffer().

◆ _decompressed_buffer_size

int firevision::ImageDecompressor::_decompressed_buffer_size
protected

Size in bytes of _decompressed_buffer.

Definition at line 59 of file imagedecompressor.h.

Referenced by set_decompressed_buffer().

◆ _height

int firevision::ImageDecompressor::_height
protected

Height of image in pixels.

Definition at line 55 of file imagedecompressor.h.

Referenced by set_image_dimensions().

◆ _width

int firevision::ImageDecompressor::_width
protected

Width of image in pixels.

Definition at line 54 of file imagedecompressor.h.

Referenced by set_image_dimensions().


The documentation for this class was generated from the following files: