42#include "freertos/FreeRTOS.h"
43#include "freertos/queue.h"
55class CVBS16Controller :
public CVBSPalettedController {
62 CVBS16Controller(CVBS16Controller
const&) =
delete;
63 void operator=(CVBS16Controller
const&) =
delete;
65 static CVBS16Controller * instance() {
return s_instance; }
67 void readScreen(Rect
const & rect, RGB888 * destBuf);
69 void setPaletteItem(
int index, RGB888
const & color);
71 void setMonochrome(
bool value);
72 bool monochrome() {
return m_monochrome; }
77 void setupDefaultPalette();
78 void checkViewPortSize();
79 void allocateViewPort();
86 void setPixelAt(PixelDesc
const & pixelDesc, Rect & updateRect);
89 void drawEllipse(Size
const & size, Rect & updateRect);
92 void clear(Rect & updateRect);
95 void VScroll(
int scroll, Rect & updateRect);
98 void HScroll(
int scroll, Rect & updateRect);
101 void drawGlyph(Glyph
const & glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect & updateRect);
104 void invertRect(Rect
const & rect, Rect & updateRect);
107 void copyRect(Rect
const & source, Rect & updateRect);
110 void swapFGBG(Rect
const & rect, Rect & updateRect);
113 void rawDrawBitmap_Native(
int destX,
int destY, Bitmap
const * bitmap,
int X1,
int Y1,
int XCount,
int YCount);
116 void rawDrawBitmap_Mask(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
119 void rawDrawBitmap_RGBA2222(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
122 void rawDrawBitmap_RGBA8888(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount);
125 void rawFillRow(
int y,
int x1,
int x2, RGB888 color);
126 void rawFillRow(
int y,
int x1,
int x2, uint8_t colorIndex);
128 void rawInvertRow(
int y,
int x1,
int x2);
130 void rawCopyRow(
int x1,
int x2,
int srcY,
int dstY);
132 void swapRows(
int yA,
int yB,
int x1,
int x2);
135 void absDrawLine(
int X1,
int Y1,
int X2,
int Y2, RGB888 color);
138 int getBitmapSavePixelSize() {
return 1; }
140 static void drawScanlineX1(
void * arg, uint16_t * dest,
int destSample,
int scanLine);
141 static void drawScanlineX2(
void * arg, uint16_t * dest,
int destSample,
int scanLine);
142 static void drawScanlineX3(
void * arg, uint16_t * dest,
int destSample,
int scanLine);
145 static CVBS16Controller * s_instance;
147 static volatile uint16_t * * s_paletteToRawPixel[2];
This file contains fabgl::CVBSPalettedController definition.
This file contains FabGL library configuration settings, like number of supported colors,...
This file contains some utility classes and functions.