Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

FileSystemImageSource::ImageInfo Class Reference

#include <FileSystemImageSource.h>

Inheritance diagram for FileSystemImageSource::ImageInfo:

List of all members.


Detailed Description

extends FileInfo to provide image decompression and some additional fields for image meta-data

Definition at line 32 of file FileSystemImageSource.h.


Public Member Functions

 ImageInfo (const FileSystemImageSource &ds, const std::string &name, float time)
 constructor
virtual void prepare ()
 uses FileInfo's prepare to load file into memory, and then replaces with a decompressed version
virtual size_t getHeaderSize () const
 size of the header containing image meta data
virtual size_t writeHeader (char *buf, size_t size) const
 encodes the file meta-data into the buffer: FileSystemImageSource::layer, width, height, components; raw image data will then follow

Public Attributes

const FileSystemImageSourcedataSource
 reference back to the containing data source so we can access FileSystemImageSource::layer
size_t width
 width of image
size_t height
 height of image
size_t components
 number of color channels

Constructor & Destructor Documentation

ImageInfo ( const FileSystemImageSource ds,
const std::string &  name,
float  time 
) [inline]

constructor

Definition at line 35 of file FileSystemImageSource.h.


Member Function Documentation

void prepare (  )  [virtual]

uses FileInfo's prepare to load file into memory, and then replaces with a decompressed version

Reimplemented from FileSystemDataSource::FileInfo.

Definition at line 10 of file FileSystemImageSource.cc.

size_t getHeaderSize (  )  const [virtual]

size of the header containing image meta data

Definition at line 60 of file FileSystemImageSource.cc.

Referenced by prepare().

size_t writeHeader ( char *  buf,
size_t  size 
) const [virtual]

encodes the file meta-data into the buffer: FileSystemImageSource::layer, width, height, components; raw image data will then follow

Definition at line 64 of file FileSystemImageSource.cc.

Referenced by prepare().


Member Data Documentation

reference back to the containing data source so we can access FileSystemImageSource::layer

Definition at line 46 of file FileSystemImageSource.h.

Referenced by writeHeader().

size_t width

width of image

Definition at line 47 of file FileSystemImageSource.h.

Referenced by prepare(), and writeHeader().

size_t height

height of image

Definition at line 48 of file FileSystemImageSource.h.

Referenced by prepare(), and writeHeader().

size_t components

number of color channels

Definition at line 49 of file FileSystemImageSource.h.

Referenced by prepare(), and writeHeader().


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

Tekkotsu Hardware Abstraction Layer 4.0
Generated Thu Nov 22 01:01:21 2007 by Doxygen 1.5.4