#include <psppixelformat.h>
Public Types | |
enum | Type { Type_None, Type_4444, Type_5551, Type_5650, Type_8888, Type_8888_RGBA, Type_Palette_8bit, Type_Palette_4bit, Type_Unknown } |
Static Public Member Functions | |
static void | convertFromScummvmPixelFormat (const Graphics::PixelFormat *pf, PSPPixelFormat::Type &bufferType, PSPPixelFormat::Type &paletteType, bool &swapRedBlue) |
static Graphics::PixelFormat | convertToScummvmPixelFormat (PSPPixelFormat::Type type) |
Public Attributes | |
Type | format |
uint32 | bitsPerPixel |
Must match bpp of selected type. | |
bool | swapRB |
Swap red and blue values when reading and writing. | |
Specialized PixelFormat class Supports only those formats which the PSP allows, including 4 bit palettes. Also provides accurate color conversion (needed for color masking) As well as swapping of red and blue channels (needed by HE games, for example)