| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
InterleavedYUVGenerator Class Reference#include <InterleavedYUVGenerator.h>
Inheritance diagram for InterleavedYUVGenerator: ![]() Detailed DescriptionGenerates FilterBankEvents containing raw camera images with interleaved pixels (YUVYUVYUV... instead of YYY...UUU...VVV...).There's only one channel, which holds the interleaved data. The increment is set to 3, but if you want to access each component in order, just use 1 instead (as you would expect hopefully, since the very specific memory layout is the whole point of this class) The row skip is always 0, and the row stride is always width*3. But it would be better to use the proper accessor functions to be more general. should receive FilterBankEvents from any standard format FilterBankGenerator (like RawCameraGenerator)
Definition at line 23 of file InterleavedYUVGenerator.h.
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 162 of file InterleavedYUVGenerator.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 149 of file InterleavedYUVGenerator.cc. Referenced by loadBuffer().
deletes storage of cached images and marks it invalid you should override this if the images cache pointer isn't actually an array of bytes... Don't forget to call it in your subclass's destructor or your version won't get called... Reimplemented from FilterBankGenerator. Definition at line 131 of file InterleavedYUVGenerator.cc. Referenced by ~InterleavedYUVGenerator().
Calculates space needed to save - if you can't precisely add up the size, just make sure to overestimate and things will still work. getBinSize is used for reserving buffers during serialization, but does not necessarily determine the actual size of what is written -- the return value of saveBuffer() specifies that after the data actually has been written. If getBinSize overestimates, the extra memory allocation is only temporary, no extra filler bytes are actually stored.
Reimplemented from FilterBankGenerator. Definition at line 43 of file InterleavedYUVGenerator.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 38 of file InterleavedYUVGenerator.h.
marks all of the cached images as invalid (but doesn't free their memory) You probably want to call this right before you send the FilterBankEvent Reimplemented from FilterBankGenerator. Definition at line 139 of file InterleavedYUVGenerator.cc.
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 51 of file InterleavedYUVGenerator.cc.
Save to a given buffer in memory.
Reimplemented from FilterBankGenerator. Definition at line 76 of file InterleavedYUVGenerator.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 117 of file InterleavedYUVGenerator.cc. Referenced by InterleavedYUVGenerator().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:13 2007 by Doxygen 1.4.7 |