Inheritance diagram for Conv8to32:
Public Member Functions | |
Conv8to32 (LPBITMAPINFO pSourceHeader) | |
Constructor to convert 8 to 32. | |
BOOL | Convert (LPBYTE pInput, LPBYTE pOutput, UINT32 Height, BOOL FirstStrip) |
Sub-optimal conversion routine. | |
Protected Attributes | |
LPBITMAPINFO | m_pSourceHeader |
Definition at line 229 of file dibconv.cpp.
|
Constructor to convert 8 to 32.
Definition at line 904 of file dibconv.cpp. 00905 { 00906 ERROR3IF(pSourceHeader->bmiHeader.biBitCount != 8,"Conv8to32 not 8bpp"); 00907 00908 m_pSourceHeader = pSourceHeader; 00909 }
|
|
Sub-optimal conversion routine.
Implements DIBConvert. Definition at line 922 of file dibconv.cpp. 00923 { 00924 ERROR3IF(pInputBits == NULL || pOutputBits == NULL, "Conv8to32: NULL Inputs"); 00925 00926 const RGBQUAD* pPalette = m_pSourceHeader->bmiColors; 00927 const UINT32 Width = m_pSourceHeader->bmiHeader.biWidth; 00928 00929 RGBQUAD* pCurrentOutput = (RGBQUAD*)pOutputBits; 00930 LPBYTE pCurrentInput = pInputBits; 00931 00932 while (Height--) 00933 { 00934 UINT32 CurrentX = Width; 00935 while (CurrentX--) 00936 { 00937 RGBQUAD PaletteEntry = pPalette[*pCurrentInput]; 00938 PaletteEntry.rgbReserved = 0xFF; 00939 00940 *pCurrentOutput = PaletteEntry; 00941 00942 ++pCurrentOutput; 00943 ++pCurrentInput; 00944 } 00945 } 00946 00947 return TRUE; 00948 }
|
|
Definition at line 237 of file dibconv.cpp. |