|
RDFU
1.0
|
Screen support functions and definitions. More...

Go to the source code of this file.
Classes | |
| struct | _RGBPIXEL |
| struct | _GIMAGE |
Typedefs | |
| typedef struct _RGBPIXEL | RGBPIXEL |
| typedef struct _GIMAGE | GIMAGE |
Functions | |
| GIMAGE * | ImageLoadBMPFromMem (UINT8 *BMPInMem, UINTN BMPSize) |
| GIMAGE * | ImageAllocateStruct (UINTN Width, UINTN Height) |
| VOID | ImageFree (GIMAGE *Image) |
| VOID | ImageApplyAlphaChannel (GIMAGE *Image, UINTN Alpha) |
Screen support functions and definitions.
Definition in file Screen.h.
| 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().

