corona  1.0.2
Classes | Namespaces | Defines | Functions
Convert.cpp File Reference
#include <map>
#include <utility>
#include <string.h>
#include "corona.h"
#include "Debug.h"
#include "SimpleImage.h"
#include "Utility.h"
Include dependency graph for Convert.cpp:

Go to the source code of this file.

Classes

struct  corona::FormatDesc

Namespaces

namespace  corona
namespace  corona::hidden
 

PRIVATE API - for internal use only.


Defines

#define DEFINE_DESC(format, desc)

Functions

Image * corona::ExpandPalette (Image *image)
FormatDesc * corona::GetDescription (PixelFormat format)
bool corona::ConvertPixels (byte *out, PixelFormat out_format, const byte *in, PixelFormat in_format, int pixel_count)
Image * corona::DirectConversion (Image *image, PixelFormat target_format)
 corona::hidden::COR_EXPORT (Image *) CorConvertImage(Image *image

Detailed Description

Todo:
allow conversions from direct color images to palettized images

Definition in file Convert.cpp.


Define Documentation

#define DEFINE_DESC (   format,
  desc 
)
Value:
case format: {                           \
      COR_LOG(#format);                      \
      static FormatDesc format##_desc desc;  \
      return &format##_desc;                 \
    }

Definition at line 60 of file Convert.cpp.