Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

IMGFUN.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IMGFUN.H

Go to the documentation of this file.
00001 // Filename    : IMGFUN.H
00002 // Description : Declaration of assembly functions
00003 
00004 #ifndef __IMGFUN_H
00005 #define __IMGFUN_H
00006 
00007 // ----- define enum type PixelFormatFlag16 -------//
00008 
00009 enum PixelFormatFlag {
00010     PIXFORM_RGB_555 = 0,                            // red on low bits
00011     PIXFORM_RGB_565 = 1,
00012     PIXFORM_BGR_555 = 2,                            // blue on low bits
00013     PIXFORM_BGR_565 = 3,
00014 };
00015 
00016 extern "C" {
00017     // basic functions
00018 
00019     void _stdcall INITeffect(int pixelFormatFlag);
00020     void _stdcall INITbright(int pixelFormatFlag);
00021     void _stdcall IMGbar( short *imageBuf, int pitch, int x1, int y1, int x2, int y2, int color);
00022     void _stdcall IMGline( short *imageBuf, int pitch, int w, int h, int x1, int y1, int x2, int y2, int color);
00023 
00024     // 16-bit <-> 24 bit pixel conversion
00025     int _stdcall IMGmakePixel(int);                 // RGB_888 to pixel format specified by pixel_format_flag
00026     int _stdcall IMGdecodePixel(int);               // backward
00027 
00028   // 8->16 blt
00029 
00030     void _stdcall IMGbltRemap( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00031                                short *colorTable );
00032     void _stdcall IMGbltRemapHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00033                                       short *colorTable );
00034     void _stdcall IMGbltAreaRemap( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00035                                    int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable );
00036     void _stdcall IMGbltAreaRemapHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00037                                           int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable );
00038 
00039     // functions with transparent color keying
00040 
00041     void _stdcall IMGbltTransRemap( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00042                                     short *colorRemapTable );
00043     void _stdcall IMGbltTransRemapHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00044                                            short *colorRemapTable );
00045     void _stdcall IMGbltAreaTransRemap( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00046                                         int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable );
00047     void _stdcall IMGbltAreaTransRemapHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00048                                                int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable);
00049 
00050     // functions with run-length transparent key decompression
00051 
00052     void _stdcall IMGbltTransRemapDecompress( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00053                                               short *colorTable);
00054     void _stdcall IMGbltTransRemapDecompressHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00055                                                      short *colorTable);
00056     void _stdcall IMGbltAreaTransRemapDecompress( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00057                                                   int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable);
00058     void _stdcall IMGbltAreaTransRemapDecompressHMirror( short *imageBuf, int pitch, int x, int y, char *bitmapBuf,
00059                                                          int srcX1, int srcY1, int srcX2, int srcY2, short *colorTable);
00060 
00061     // 16->16 blt
00062 
00063     void _stdcall IMGreadW( short *imageBuf, int pitch, int x1, int y1, int x2, int y2, short *bitmapBuf );
00064     void _stdcall IMGbltW( short *imageBuf, int pitch, int x, int y, short *bitmapBuf );
00065     void _stdcall IMGbltWArea( short *imageBuf, int pitch, int x, int y, short *bitmapBuf,
00066                                int srcX1, int srcY1, int srcX2, int srcY2 );
00067 
00068     // functions with transparent color keying
00069 
00070     void _stdcall IMGbltWTrans( short *imageBuf, int pitch, int x, int y, short *bitmapBuf );
00071     void _stdcall IMGbltWAreaTrans( short *imageBuf, int pitch, int x, int y, short *bitmapBuf,
00072                                     int srcX1, int srcY1, int srcX2, int srcY2 );
00073 
00074     // 16 bit buffer to 16 bit buffer blt
00075 
00076     void _stdcall IMGcopyW( short *imageBuf, int imgPitch, short *backBuf, int backPitch,
00077                             int srcX1, int srcY1, int srcX2, int srcY2);
00078     void _stdcall IMGcopyWbright( short *imageBuf, int imgPitch, short *backBuf, int backPitch,
00079                                   int srcX1, int srcY1, int srcX2, int srcY2, int brightness);
00080 
00081     void _stdcall IMGbrightBar( short *imageBuf, int pitch, int x1, int y1, int x2, int y2, int brightness);
00082 
00083   // join bitmap and back buffer to front buffer
00084 
00085     void _stdcall IMGjoinTransRemap( short *imageBuf, int imgPitch, short *backBuf, int backPitch,
00086                                      int x, int y, char *bitmapBuf, short *colorRemapTable );
00087 
00088     int _stdcall IMGgetTransDecompress(char *bitmapBuf,int srcX1, int srcY1);
00089 
00090 };
00091 #endif

Generated on Fri Aug 23 01:37:02 2002 for VirtualU by doxygen1.2.17