BurgerLib
Functions | Variables
imimagemanager.cpp File Reference
#include "imimage.h"
#include "mmmemory.h"
#include "clstdlib.h"
#include "plpalette.h"
#include "brdebug.h"
Include dependency graph for imimagemanager.cpp:

Functions

Word BURGER_API ImageInit (Image_t *Output, Word Width, Word Height, ImageTypes_e Depth)
Image_t *BURGER_API ImageNew (Word Width, Word Height, ImageTypes_e Depth)
Word BURGER_API ImageInitCopy (Image_t *Output, const Image_t *Input)
Image_t *BURGER_API ImageNewCopy (const Image_t *Input)
void BURGER_API ImageDelete (Image_t *Input)
void BURGER_API ImageDestroy (Image_t *ImagePtr)
void BURGER_API ImageVerticalFlip (Image_t *ImagePtr)
void BURGER_API ImageHorizontalFlip (Image_t *ImagePtr)
void BURGER_API ImageRemove0And255 (Image_t *ImagePtr)
void BURGER_API ImageRepaletteIndexed (Image_t *ImagePtr, const Word8 *PalettePtr)
void BURGER_API ImageRemapIndexed (Image_t *ImagePtr, const Word8 *RemapPtr)
void BURGER_API ImageSwapBGRToRGB (Image_t *ImagePtr)
Word BURGER_API ImageValidateToSave (Image_t *ImagePtr)
Word BURGER_API ImageStore332 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore8Pal (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore4444 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore555 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore565 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore1555 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore888 (Image_t *Output, const Image_t *Input)
Word BURGER_API ImageStore8888 (Image_t *Output, const Image_t *Input)
void BURGER_API ImageColorKey8888 (Image_t *SrcImagePtr, Word r, Word g, Word b, Word a)
Word BURGER_API ImageSubImage (Image_t *Output, Word x, Word y, const Image_t *Input)
Word BURGER_API ImageStore (Image_t *Output, const Image_t *Input)

Variables

const Word RGB2ToRGB3Table [4] = {0x00,0x02,0x05,0x07}
const Word RGB2ToRGB4Table [4] = {0x00,0x05,0x0A,0x0F}
const Word RGB2ToRGB5Table [4] = {0x00,0x0A,0x15,0x1F}
const Word RGB2ToRGB6Table [4] = {0x00,0x15,0x2A,0x3F}
const Word RGB2ToRGB8Table [4] = {0x00,0x55,0xAA,0xFF}
const Word RGB3ToRGB4Table [8] = {0x00,0x02,0x04,0x06,0x09,0x0B,0x0D,0x0F}
const Word RGB3ToRGB5Table [8] = {0x00,0x04,0x09,0x0D,0x12,0x16,0x1B,0x1F}
const Word RGB3ToRGB6Table [8] = {0x00,0x09,0x12,0x1B,0x24,0x2D,0x36,0x3F}
const Word RGB3ToRGB8Table [8] = {0x00,0x24,0x49,0x6D,0x92,0xB6,0xDB,0xFF}
const Word RGB4ToRGB5Table [16]
const Word RGB4ToRGB6Table [16]
const Word RGB4ToRGB8Table [16]
const Word RGB5ToRGB6Table [32]

Function Documentation

void BURGER_API ImageColorKey8888 ( Image_t SrcImagePtr,
Word  r,
Word  g,
Word  b,
Word  a 
)
Word BURGER_API ImageInit ( Image_t Output,
Word  Width,
Word  Height,
ImageTypes_e  Depth 
)
Word BURGER_API ImageInitCopy ( Image_t Output,
const Image_t Input 
)
Image_t* BURGER_API ImageNew ( Word  Width,
Word  Height,
ImageTypes_e  Depth 
)
Image_t* BURGER_API ImageNewCopy ( const Image_t Input)
void BURGER_API ImageRemapIndexed ( Image_t ImagePtr,
const Word8 RemapPtr 
)
void BURGER_API ImageRepaletteIndexed ( Image_t ImagePtr,
const Word8 PalettePtr 
)
Word BURGER_API ImageStore ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore1555 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore332 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore4444 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore555 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore565 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore888 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore8888 ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageStore8Pal ( Image_t Output,
const Image_t Input 
)
Word BURGER_API ImageSubImage ( Image_t Output,
Word  x,
Word  y,
const Image_t Input 
)

Variable Documentation

const Word RGB2ToRGB3Table[4] = {0x00,0x02,0x05,0x07}
const Word RGB2ToRGB4Table[4] = {0x00,0x05,0x0A,0x0F}
const Word RGB2ToRGB5Table[4] = {0x00,0x0A,0x15,0x1F}
const Word RGB2ToRGB6Table[4] = {0x00,0x15,0x2A,0x3F}
const Word RGB2ToRGB8Table[4] = {0x00,0x55,0xAA,0xFF}
const Word RGB3ToRGB4Table[8] = {0x00,0x02,0x04,0x06,0x09,0x0B,0x0D,0x0F}
const Word RGB3ToRGB5Table[8] = {0x00,0x04,0x09,0x0D,0x12,0x16,0x1B,0x1F}
const Word RGB3ToRGB6Table[8] = {0x00,0x09,0x12,0x1B,0x24,0x2D,0x36,0x3F}
const Word RGB3ToRGB8Table[8] = {0x00,0x24,0x49,0x6D,0x92,0xB6,0xDB,0xFF}
const Word RGB4ToRGB5Table[16]
Initial value:
 {
    0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,
    0x11,0x13,0x15,0x17,0x19,0x1B,0x1D,0x1F}
const Word RGB4ToRGB6Table[16]
Initial value:
 {
    0x00,0x04,0x08,0x0D,0x11,0x15,0x19,0x1D,
    0x22,0x26,0x2A,0x2E,0x32,0x37,0x3B,0x3F}
const Word RGB4ToRGB8Table[16]
Initial value:
 {
    0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,
    0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF}
const Word RGB5ToRGB6Table[32]
Initial value:
 {
    0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,
    0x10,0x12,0x14,0x16,0x18,0x1A,0x1C,0x1E,
    0x21,0x23,0x25,0x27,0x29,0x2B,0x2D,0x2F,
    0x31,0x33,0x35,0x37,0x39,0x3B,0x3D,0x3F}