|
RDFU
1.0
|
Functions for 24-bit bitmap loading. More...

Go to the source code of this file.
Classes | |
| struct | tagBITMAPFILEHEADER |
| struct | tagBITMAPINFOHEADER |
| struct | _BITMAPMAINHEADER |
Macros | |
| #define | PIXEL_INDEX BMPHdr->biWidth * (BMPHdr->biHeight - 1 - y) |
Typedefs | |
| typedef struct tagBITMAPFILEHEADER | BITMAPFILEHEADER |
| typedef struct tagBITMAPFILEHEADER * | PBITMAPFILEHEADER |
| typedef struct tagBITMAPINFOHEADER | BITMAPINFOHEADER |
| typedef struct tagBITMAPINFOHEADER * | PBITMAPINFOHEADER |
| typedef struct _BITMAPMAINHEADER | BITMAPMAINHEADER |
| typedef struct _BITMAPMAINHEADER * | PBITMAPMAINHEADER |
Functions | |
| GIMAGE * | ImageAllocateStruct (UINTN Width, UINTN Height) |
| VOID | ImageFree (GIMAGE *Image) |
| VOID | ImageApplyAlphaChannel (GIMAGE *Image, UINTN Alpha) |
| GIMAGE * | ImageLoadBMPFromMem (UINT8 *BMPInMem, UINTN BMPSize) |
Functions for 24-bit bitmap loading.
Definition in file LoadBMP.c.
| #define PIXEL_INDEX BMPHdr->biWidth * (BMPHdr->biHeight - 1 - y) |
Referenced by ImageLoadBMPFromMem().
| typedef struct tagBITMAPFILEHEADER BITMAPFILEHEADER |
| typedef struct tagBITMAPINFOHEADER BITMAPINFOHEADER |
| typedef struct _BITMAPMAINHEADER BITMAPMAINHEADER |
| typedef struct tagBITMAPFILEHEADER * PBITMAPFILEHEADER |
| typedef struct tagBITMAPINFOHEADER * PBITMAPINFOHEADER |
| typedef struct _BITMAPMAINHEADER * PBITMAPMAINHEADER |
| GIMAGE* ImageAllocateStruct | ( | UINTN | Width, |
| UINTN | Height | ||
| ) |
Function allocates memory and initializes the GIMAGE structure.
| Width | Width of BMP |
| Height | Height of BMP |
| Pointer | On success function returns pointer to created GIMAGE structure |
| NULL | On error |
Definition at line 69 of file LoadBMP.c.
References _GIMAGE::Data, _GIMAGE::Height, MemAllocate(), MemFree(), and _GIMAGE::Width.
Referenced by ImageLoadBMPFromMem().


| VOID ImageApplyAlphaChannel | ( | GIMAGE * | Image, |
| UINTN | Alpha | ||
| ) |
Function applies the Alpha value to each pixel. (this function is never used)
| Image | Pointer to the GIMAGE structure allocated by ImageAllocateStruct |
| Alpha | Alpha value |
| NONE |
Definition at line 121 of file LoadBMP.c.
References _RGBPIXEL::alpha, _GIMAGE::Data, _GIMAGE::Height, and _GIMAGE::Width.
| VOID ImageFree | ( | GIMAGE * | Image | ) |
Function frees the allocated Image.
| Image | Pointer to the GIMAGE structure allocated by ImageAllocateStruct |
| NONE |
Definition at line 102 of file LoadBMP.c.
References _GIMAGE::Data, and MemFree().

| GIMAGE* ImageLoadBMPFromMem | ( | UINT8 * | BMPInMem, |
| UINTN | BMPSize | ||
| ) |
Function loads 24bit BMP from memory.
| BMPInMem | Pointer to BMP data in memory |
| BMPSize | Size of the BMP data |
| GIMAGE* | On success pointer to created GIMAGE structure |
| NULL | On error |
Definition at line 146 of file LoadBMP.c.
References _RGBPIXEL::alpha, _RGBPIXEL::b, _BITMAPMAINHEADER::bFile, tagBITMAPFILEHEADER::bfOffBits, tagBITMAPFILEHEADER::bfType, tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biCompression, tagBITMAPINFOHEADER::biHeight, _BITMAPMAINHEADER::bInfo, tagBITMAPINFOHEADER::biWidth, _GIMAGE::Data, _RGBPIXEL::g, ImageAllocateStruct(), PIXEL_INDEX, and _RGBPIXEL::r.
Referenced by ScreenShowSplashLogo().

