anyone wanting to support loading an image type must provide this interface. More...
#include <image-base.h>
Public Member Functions | |
virtual | ~ImageLoader (void) throw () |
virtual const char * | getLoaderName (void) const =0 throw () |
tell us the name of yourself | |
virtual bool | canLoadImage (IN nstream::Manager *mgr, IN const char *name) const =0 |
image loader should return true if this is an image this loader can load. | |
virtual void | load (IN nstream::Stream *stream, OUT image_t &image) const =0 |
here the loader actually loads |
anyone wanting to support loading an image type must provide this interface.
Warning to implementers: keep your image loaders entirely stateless! ImageLoader objects can be called on any thread, so they should be threadsafe. In practice that is easy so long as the loader is stateless. (stateless means no static or class member variables--the only state is the image being loaded, or other state on the stack).
Definition at line 155 of file image-base.h.
media::ImageLoader::~ImageLoader | ( | void | ) | throw () [virtual] |
Definition at line 40 of file image-base.cpp.