blip  0.1
PNGImageDecoder.hpp
Go to the documentation of this file.
1 #ifndef __blip_PNGImageDecoder_hpp
2 #define __blip_PNGImageDecoder_hpp
3 
4 #include <blip/Blip.hpp>
5 #include <blip/ImageDecoder.hpp>
6 
7 namespace blip {
8 
14 {
15  public:
16 
20  PNGImageDecoder(ccxx::DataReader* reader);
21 
23  virtual ~PNGImageDecoder();
24 
25  protected:
26 
27  virtual void readMetadata(ccxx::DataReader* reader);
28  virtual void readPixmap(ccxx::DataReader* reader, Pixmap* pixmap);
29 
30  private:
31 
32  struct Private;
33  Private* _private;
34 
35  CCXX_COPY_DECLS(PNGImageDecoder);
36 };
37 
38 } // namespace blip
39 
40 #endif // __blip_PNGImageDecoder_hpp
virtual void readPixmap(ccxx::DataReader *reader, Pixmap *pixmap)
This method must be implemented to perform the image data decoding.
Definition: PNGImageDecoder.cpp:157
An abstract base class for image decoders.
Definition: ImageDecoder.hpp:28
PNGImageDecoder(ccxx::DataReader *reader)
Construct a new PNGImageDecoder that will read a PNG image from the given DataReader.
Definition: PNGImageDecoder.cpp:48
An ImageDecoder for PNG images.
Definition: PNGImageDecoder.hpp:13
virtual ~PNGImageDecoder()
Destructor.
Definition: PNGImageDecoder.cpp:57
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
virtual void readMetadata(ccxx::DataReader *reader)
This method must be implemented to perform the image metadata decoding.
Definition: PNGImageDecoder.cpp:67
A buffer for two-dimensional pixel data, stored in inverted row order (bottom row first...
Definition: Pixmap.hpp:58