1 #ifndef BITMAPCONVERTER_HH
2 #define BITMAPCONVERTER_HH
16 template<
typename Pixel>
42 const Pixel* palette256,
43 const Pixel* palette32768);
59 const byte* vramPtr0,
const byte* vramPtr1);
73 dPaletteValid =
false;
79 inline void renderGraphic4(
Pixel* pixelPtr,
const byte* vramPtr0);
80 inline void renderGraphic5(
Pixel* pixelPtr,
const byte* vramPtr0);
81 inline void renderGraphic6(
82 Pixel* pixelPtr,
const byte* vramPtr0,
const byte* vramPtr1);
83 inline void renderGraphic7(
84 Pixel* pixelPtr,
const byte* vramPtr0,
const byte* vramPtr1);
85 inline void renderYJK(
86 Pixel* pixelPtr,
const byte* vramPtr0,
const byte* vramPtr1);
87 inline void renderYAE(
88 Pixel* pixelPtr,
const byte* vramPtr0,
const byte* vramPtr1);
89 inline void renderBogus(
Pixel* pixelPtr);
92 const Pixel*
const __restrict palette16;
93 const Pixel*
const __restrict palette256;
94 const Pixel*
const __restrict palette32768;
97 DPixel dPalette[16 * 16];
Utility class for converting VRAM contents to host pixels.
void convertLinePlanar(Pixel *linePtr, const byte *vramPtr0, const byte *vramPtr1)
Convert a line of V9938 VRAM to 512 host pixels.
void setDisplayMode(DisplayMode mode_)
Select the display mode to use for scanline conversion.
BitmapConverter(const Pixel *palette16, const Pixel *palette256, const Pixel *palette32768)
Create a new bitmap scanline converter.
void convertLine(Pixel *linePtr, const byte *vramPtr)
Convert a line of V9938 VRAM to 512 host pixels.
void palette16Changed()
Inform this class about changes in the palette16 array.
Represents a VDP display mode.
This file implemented 3 utility functions: