| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
PNGGenerator Class Reference#include <PNGGenerator.h>
Inheritance diagram for PNGGenerator: ![]() Detailed DescriptionGenerates FilterBankEvents containing PNG compressed images.This class shares a lot of non-PNG specific code with JPEGGenerator, so you may want to replicate any changes made in that class as well.
Definition at line 19 of file PNGGenerator.h.
Member Enumeration Documentationdefines how to interpret the source images (see srcMode and curMode)
Definition at line 24 of file PNGGenerator.h.
Constructor & Destructor Documentation
don't call
Member Function Documentation
should calculate new image data, called by getImage() only when imageValids indicates the image being requested is dirty (and only after getImage() has already called createImageCache()) This is where you'll want to put your user-specific code for calculating the image data Implements FilterBankGenerator. Definition at line 206 of file PNGGenerator.cc.
create new image data storage area for the cache - this called by getImage() only when the corresponding entry in images is NULL You should return the pointer you want stored in images to be returned by any calls to getFirstRow. Interpretation of the data it points to is dependant on the the generator which creates it Implements FilterBankGenerator. Definition at line 201 of file PNGGenerator.cc. Referenced by loadBuffer().
deletes the arrays
Reimplemented from FilterBankGenerator. Definition at line 270 of file PNGGenerator.cc. Referenced by ~PNGGenerator().
if we don't already know bytesUsed, let's assume the size will be smaller than the original uncompressed. If we fail this assumption, probably better to fail anyway.
Reimplemented from FilterBankGenerator. Definition at line 97 of file PNGGenerator.cc.
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 45 of file PNGGenerator.h.
returns curMode
Definition at line 43 of file PNGGenerator.h. Referenced by calcImage(), getBinSize(), loadBuffer(), and saveBuffer().
returns the number of bytes used for the image returned by getImage() - will return 0 if the image hasn't been calculated yet (so call it after getImage())
Definition at line 59 of file PNGGenerator.h.
The loadBuffer() functions of the included subclasses aren't tested, so don't assume they'll work without a little debugging... Reimplemented from FilterBankGenerator. Definition at line 117 of file PNGGenerator.cc.
don't call
should receive FilterBankEvents from a RawCameraGenerator (or a subclass thereof) The const casts in this function are regretable but necessary since the corresponding OPEN-R functions require mutable arguments, even though they shouldn't be modifying the data Reimplemented from FilterBankGenerator. Definition at line 78 of file PNGGenerator.cc.
you probably don't want to be calling this to access the PNG -- use getImage() instead (saveBuffer will prepend some header information before the actual image data)
Reimplemented from FilterBankGenerator. Definition at line 149 of file PNGGenerator.cc.
resizes the filter bank information storage area, you should override this to do your setup and call it from your constructor In general, it isn't expected that FilterBankGenerator's should necessarily be dynamically resizeable (although it would be nice), which is why this isn't public. If yours is, just add some pubic accessor functions which call this. In general, the included subclasses should be able to handle being resized, but there's no reason to do so since the system won't be changing its available resolutions at run time. The default implementation is a no-op if(numLayers==nLayers && numChannels==nChannels) Reimplemented from FilterBankGenerator. Definition at line 185 of file PNGGenerator.cc. Referenced by PNGGenerator().
Member Data Documentation
number of bytes used per image to actually store data;
Definition at line 70 of file PNGGenerator.h. Referenced by calcImage(), destruct(), getBinSize(), getImageSize(), loadBuffer(), saveBuffer(), and setNumImages().
how to interpret getImage's current image
Definition at line 68 of file PNGGenerator.h. Referenced by getCurrentSourceFormat(), PNGGenerator(), processEvent(), and setSourceMode().
add a bit to the expected size in getBinSize just to leave a little extra room for small images
Definition at line 21 of file PNGGenerator.h. Referenced by calcImage(), createImageCache(), and getBinSize().
how to interpret source channel of next filter bank event
Definition at line 67 of file PNGGenerator.h. Referenced by getSourceMode(), PNGGenerator(), and setSourceMode().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:10 2006 by Doxygen 1.4.7 |