1 #ifndef __blip_ImageDecoder_hpp 2 #define __blip_ImageDecoder_hpp 88 ccxx::DataReader* _reader;
98 #endif // __blip_ImageDecoder_hpp
An abstract base class for image decoders.
Definition: ImageDecoder.hpp:28
A rectangular size that has a width and a height.
Definition: Size.hpp:13
void decodeMetadata()
Decode the metadata for the image.
Definition: ImageDecoder.cpp:33
void setSize(const Size &size)
This method should be called from readMetadata() to store the image size, once it has been determined...
Definition: ImageDecoder.hpp:83
ImageDecoder(ccxx::DataReader *reader)
Construct a new ImageDecoder that will read an image from the given DataReader.
Definition: ImageDecoder.cpp:16
CCXX_FWD_DECL(DataReader)
void decodeImage(Pixmap *pixmap)
Decode the image itself.
Definition: ImageDecoder.cpp:45
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
virtual void readMetadata(ccxx::DataReader *reader)=0
This method must be implemented to perform the image metadata decoding.
Size getSize() const
Get the size of the image, in pixels.
Definition: ImageDecoder.hpp:59
virtual void readPixmap(ccxx::DataReader *reader, Pixmap *pixmap)=0
This method must be implemented to perform the image data decoding.
A buffer for two-dimensional pixel data, stored in inverted row order (bottom row first...
Definition: Pixmap.hpp:58
virtual ~ImageDecoder()
Destructor.
Definition: ImageDecoder.cpp:26