kmuConvertFBtoBMP

Converts Rectangle Format to Windows BMP Format

KMSTATUS KMAPI
kmuConvertFBtoBMP(
OUT PKMDWORD pOutputData,
IN PKMDWORD pInputData,
IN KMINT32 nWidth,
IN KMINT32 nHeight,
IN KMBPPMODE nBpp
)

Description:

This function converts the contents of the frame buffer (rectangle format) read into main memory by kmGetTexture into pixel data in Windows full-color BMP format (BGR888) and writes it into memory. This is a debug function in that it saves the contents of the frame buffer in Windows BMP format. This function does not create the 54 bytes of the header in Windows BMP format.

Parameters:

pOutputData(output)
Address of main memory into which the converted pixel data is to be written
pInputData(input)
This parameter is a pointer indicating the contents of the frame buffer. Pointer to the pixel data of the frame buffer read by specifying a descriptor of the frame buffer surface by using kmGetTexture.
nWidth, nHeight(input)
This parameter specifies the screen size of the read frame buffer.
nBpp(input)
This parameter specifies the pixel format of the read frame buffer. One of the following can be specified.

KM_DSPBPP_RGB565 | RGB-565 format
KM_DSPBPP_RGB555 | RGB-555 format
KM_DSPBPP_ARGB4444 | ARGB-4444 format
KM_DSPBPP_ARGB1555 | ARGB-1555 format

Return value:

Value | Explanation
--- | ---
KMSTATUS_SUCCESS | Success

kmuConvertFBtoBMP