Namespaces | Defines | Functions

wave-image.cpp File Reference

#include "wave-image.h"
#include "common/wave_ex.h"
#include "nstream/nstream.h"
#include "perf/perf.h"
#include "threadsafe/smart_ptr.h"
#include "wave-jpeg/wave-jpeg.h"
#include "wave-png/wave-png.h"
Include dependency graph for wave-image.cpp:

Go to the source code of this file.

Namespaces

namespace  media

Defines

#define ADD_IMAGE_LOADER(reg, type)

Functions

static Registry * media::getRegistry (void)

bool media::loadImage (nstream::Manager *mgr,const char *name,image_t &image)
 use this nstream-based routine to load images (see Named Stream Management).

Define Documentation

#define ADD_IMAGE_LOADER (   reg,
  type 
)
Value:
{                                                               \
                DPRINTF("Adding image loader: '%s'...", #type );        \
                smart_ptr<ImageLoader> loader =                         \
                        create ##type ##ImageLoader();                  \
                ASSERT(loader, "Failed to create loader of type: %s",   \
                    #type );                                            \
                reg->addLoader(loader);                                 \
        }

Definition at line 138 of file wave-image.cpp.