32#include "freertos/FreeRTOS.h"
33#include "freertos/task.h"
35#include "esp_spi_flash.h"
42#pragma GCC optimize ("O2")
53static inline __attribute__((always_inline))
void CVBS16_SETPIXELINROW(uint8_t * row,
int x,
int value) {
55 row[brow] = (x & 1) ? ((row[brow] & 0xf0) | value) : ((row[brow] & 0x0f) | (value << 4));
58static inline __attribute__((always_inline))
int CVBS16_GETPIXELINROW(uint8_t * row,
int x) {
60 return ((x & 1) ? (row[brow] & 0x0f) : ((row[brow] & 0xf0) >> 4));
63#define CVBS16_INVERTPIXELINROW(row, x) (row)[(x) >> 1] ^= (0xf0 >> (((x) & 1) << 2))
65static inline __attribute__((always_inline))
void CVBS16_SETPIXEL(
int x,
int y,
int value) {
66 auto row = (uint8_t*) CVBS16Controller::sgetScanline(y);
68 row[brow] = (x & 1) ? ((row[brow] & 0xf0) | value) : ((row[brow] & 0x0f) | (value << 4));
71#define CVBS16_GETPIXEL(x, y) CVBS16_GETPIXELINROW((uint8_t*)CVBS16Controller::s_viewPort[(y)], (x))
73#define CVBS16_INVERT_PIXEL(x, y) CVBS16_INVERTPIXELINROW((uint8_t*)CVBS16Controller::s_viewPort[(y)], (x))
76#define CVBS16_COLUMNSQUANTUM 16
83CVBS16Controller * CVBS16Controller::s_instance =
nullptr;
84volatile uint16_t * * CVBS16Controller::s_paletteToRawPixel[2];
87CVBS16Controller::CVBS16Controller()
92 s_paletteToRawPixel[0] = s_paletteToRawPixel[1] =
nullptr;
96void CVBS16Controller::allocateViewPort()
98 CVBSPalettedController::allocateViewPort();
100 for (
int line = 0; line < 2; ++line) {
101 s_paletteToRawPixel[line] = (
volatile uint16_t * *) heap_caps_malloc(
sizeof(uint16_t *) * 16, MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
102 for (
int index = 0; index < 16; ++index)
103 s_paletteToRawPixel[line][index] = (uint16_t *) heap_caps_malloc(
sizeof(uint16_t) * CVBS_SUBCARRIERPHASES * 2, MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
106 switch (horizontalRate()) {
108 setDrawScanlineCallback(drawScanlineX1);
111 setDrawScanlineCallback(drawScanlineX2);
114 setDrawScanlineCallback(drawScanlineX3);
123void CVBS16Controller::checkViewPortSize()
125 CVBSPalettedController::checkViewPortSize();
129void CVBS16Controller::setupDefaultPalette()
131 for (
int colorIndex = 0; colorIndex < 16; ++colorIndex) {
132 RGB888 rgb888((
Color)colorIndex);
133 setPaletteItem(colorIndex, rgb888);
138void CVBS16Controller::setMonochrome(
bool value)
140 m_monochrome = value;
141 setupDefaultPalette();
145void CVBS16Controller::setPaletteItem(
int index, RGB888
const & color)
147 if (s_paletteToRawPixel[0]) {
149 m_palette[index] = color;
151 double range = params()->whiteLevel - params()->blackLevel + 1;
153 double r = color.R / 255.;
154 double g = color.G / 255.;
155 double b = color.B / 255.;
157 for (
int line = 0; line < 2; ++line) {
158 for (
int sample = 0; sample < CVBS_SUBCARRIERPHASES * 2; ++sample) {
160 double phase = 2. * M_PI * sample / CVBS_SUBCARRIERPHASES;
163 double chroma = params()->getComposite(line == 0, phase, r, g, b, &
Y);
169 s_paletteToRawPixel[line][index][sample] = (uint16_t)(params()->blackLevel + (
Y + chroma) * range) << 8;
176void CVBS16Controller::setPixelAt(PixelDesc
const & pixelDesc, Rect & updateRect)
178 genericSetPixelAt(pixelDesc, updateRect,
179 [&] (RGB888
const & color) {
return RGB888toPaletteIndex(color); },
187void CVBS16Controller::absDrawLine(
int X1,
int Y1,
int X2,
int Y2, RGB888 color)
189 genericAbsDrawLine(
X1,
Y1,
X2,
Y2, color,
190 [&] (RGB888
const & color) {
return RGB888toPaletteIndex(color); },
191 [&] (
int Y,
int X1,
int X2, uint8_t colorIndex) { rawFillRow(
Y,
X1,
X2, colorIndex); },
192 [&] (
int Y,
int X1,
int X2) { rawInvertRow(
Y,
X1,
X2); },
194 [&] (
int X,
int Y) { CVBS16_INVERT_PIXEL(
X,
Y); }
200void CVBS16Controller::rawFillRow(
int y,
int x1,
int x2, RGB888 color)
202 rawFillRow(y, x1, x2, RGB888toPaletteIndex(color));
207void CVBS16Controller::rawFillRow(
int y,
int x1,
int x2, uint8_t colorIndex)
209 uint8_t * row = (uint8_t*) m_viewPort[y];
212 for (; x <= x2 && (x & 3) != 0; ++x) {
213 CVBS16_SETPIXELINROW(row, x, colorIndex);
217 int sz = (x2 & ~3) - x;
218 memset((
void*)(row + x / 2), colorIndex | (colorIndex << 4), sz / 2);
222 for (; x <= x2; ++x) {
223 CVBS16_SETPIXELINROW(row, x, colorIndex);
229void CVBS16Controller::rawInvertRow(
int y,
int x1,
int x2)
231 auto row = m_viewPort[y];
232 for (
int x = x1; x <= x2; ++x)
233 CVBS16_INVERTPIXELINROW(row, x);
237void CVBS16Controller::rawCopyRow(
int x1,
int x2,
int srcY,
int dstY)
239 auto srcRow = (uint8_t*) m_viewPort[srcY];
240 auto dstRow = (uint8_t*) m_viewPort[dstY];
243 for (; x <= x2 && (x & 3) != 0; ++x) {
244 CVBS16_SETPIXELINROW(dstRow, x, CVBS16_GETPIXELINROW(srcRow, x));
247 auto src = (uint16_t*)(srcRow + x / 2);
248 auto dst = (uint16_t*)(dstRow + x / 2);
249 for (
int right = (x2 & ~3); x < right; x += 4)
252 for (x = (x2 & ~3); x <= x2; ++x) {
253 CVBS16_SETPIXELINROW(dstRow, x, CVBS16_GETPIXELINROW(srcRow, x));
258void CVBS16Controller::swapRows(
int yA,
int yB,
int x1,
int x2)
260 auto rowA = (uint8_t*) m_viewPort[yA];
261 auto rowB = (uint8_t*) m_viewPort[yB];
264 for (; x <= x2 && (x & 3) != 0; ++x) {
265 uint8_t a = CVBS16_GETPIXELINROW(rowA, x);
266 uint8_t b = CVBS16_GETPIXELINROW(rowB, x);
267 CVBS16_SETPIXELINROW(rowA, x, b);
268 CVBS16_SETPIXELINROW(rowB, x, a);
271 auto a = (uint16_t*)(rowA + x / 2);
272 auto b = (uint16_t*)(rowB + x / 2);
273 for (
int right = (x2 & ~3); x < right; x += 4)
276 for (x = (x2 & ~3); x <= x2; ++x) {
277 uint8_t a = CVBS16_GETPIXELINROW(rowA, x);
278 uint8_t b = CVBS16_GETPIXELINROW(rowB, x);
279 CVBS16_SETPIXELINROW(rowA, x, b);
280 CVBS16_SETPIXELINROW(rowB, x, a);
285void CVBS16Controller::drawEllipse(Size
const & size, Rect & updateRect)
287 genericDrawEllipse(size, updateRect,
288 [&] (RGB888
const & color) {
return RGB888toPaletteIndex(color); },
294void CVBS16Controller::clear(Rect & updateRect)
296 hideSprites(updateRect);
297 uint8_t paletteIndex = RGB888toPaletteIndex(getActualBrushColor());
298 uint8_t pattern = paletteIndex | (paletteIndex << 4);
299 for (
int y = 0; y < m_viewPortHeight; ++y)
300 memset((uint8_t*) m_viewPort[y], pattern, m_viewPortWidth / 2);
306void CVBS16Controller::VScroll(
int scroll, Rect & updateRect)
308 genericVScroll(scroll, updateRect,
309 [&] (
int yA,
int yB,
int x1,
int x2) { swapRows(yA, yB, x1, x2); },
310 [&] (
int yA,
int yB) { tswap(m_viewPort[yA], m_viewPort[yB]); },
311 [&] (
int y,
int x1,
int x2, RGB888 color) { rawFillRow(y, x1, x2, color); }
316void CVBS16Controller::HScroll(
int scroll, Rect & updateRect)
318 hideSprites(updateRect);
319 uint8_t back4 = RGB888toPaletteIndex(getActualBrushColor());
321 int Y1 = paintState().scrollingRegion.Y1;
322 int Y2 = paintState().scrollingRegion.Y2;
323 int X1 = paintState().scrollingRegion.X1;
324 int X2 = paintState().scrollingRegion.X2;
327 bool HScrolllingRegionAligned = ((
X1 & 3) == 0 && (
width & 3) == 0);
331 for (
int y =
Y1; y <=
Y2; ++y) {
332 if (HScrolllingRegionAligned) {
334 uint8_t * row = (uint8_t*) (m_viewPort[y]) +
X1 / 2;
335 for (
int s = -scroll; s > 0;) {
339 auto sz =
width & ~1;
340 memmove(row, row + sc / 2, (sz - sc) / 2);
341 rawFillRow(y,
X2 - sc + 1,
X2, back4);
349 auto w = (uint16_t *) (row +
width / 2) - 1;
350 for (
int i = 0; i <
width; i += 4) {
351 const uint16_t p4 = *w;
352 *w-- = (p4 << 4 & 0xf000) | (prev << 8 & 0x0f00) | (p4 << 4 & 0x00f0) | (p4 >> 12 & 0x000f);
353 prev = p4 >> 4 & 0x000f;
360 auto row = (uint8_t*) m_viewPort[y];
361 for (
int x =
X1; x <=
X2 + scroll; ++x)
362 CVBS16_SETPIXELINROW(row, x, CVBS16_GETPIXELINROW(row, x - scroll));
364 rawFillRow(y,
X2 + 1 + scroll,
X2, back4);
367 }
else if (scroll > 0) {
369 for (
int y =
Y1; y <=
Y2; ++y) {
370 if (HScrolllingRegionAligned) {
372 uint8_t * row = (uint8_t*) (m_viewPort[y]) +
X1 / 2;
373 for (
int s = scroll; s > 0;) {
377 auto sz =
width & ~1;
378 memmove(row + sc / 2, row, (sz - sc) / 2);
379 rawFillRow(y,
X1,
X1 + sc - 1, back4);
387 auto w = (uint16_t *) row;
388 for (
int i = 0; i <
width; i += 4) {
389 const uint16_t p4 = *w;
390 *w++ = (p4 << 12 & 0xf000) | (p4 >> 4 & 0x0f00) | (prev << 4) | (p4 >> 4 & 0x000f);
391 prev = p4 >> 8 & 0x000f;
398 auto row = (uint8_t*) m_viewPort[y];
399 for (
int x =
X2 - scroll; x >=
X1; --x)
400 CVBS16_SETPIXELINROW(row, x + scroll, CVBS16_GETPIXELINROW(row, x));
402 rawFillRow(y,
X1,
X1 + scroll - 1, back4);
410void CVBS16Controller::drawGlyph(Glyph
const & glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect & updateRect)
412 genericDrawGlyph(glyph, glyphOptions, penColor, brushColor, updateRect,
413 [&] (RGB888
const & color) {
return RGB888toPaletteIndex(color); },
414 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
420void CVBS16Controller::invertRect(Rect
const & rect, Rect & updateRect)
422 genericInvertRect(rect, updateRect,
423 [&] (
int Y,
int X1,
int X2) { rawInvertRow(
Y,
X1,
X2); }
430 genericSwapFGBG(rect, updateRect,
431 [&] (RGB888
const & color) {
return RGB888toPaletteIndex(color); },
432 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
433 CVBS16_GETPIXELINROW,
441void CVBS16Controller::copyRect(Rect
const & source, Rect & updateRect)
443 genericCopyRect(source, updateRect,
444 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
445 CVBS16_GETPIXELINROW,
452void CVBS16Controller::readScreen(Rect
const & rect, RGB888 * destBuf)
454 for (
int y = rect.Y1; y <= rect.Y2; ++y) {
455 auto row = (uint8_t*) m_viewPort[y];
456 for (
int x = rect.X1; x <= rect.X2; ++x, ++destBuf) {
457 const RGB222 v = m_palette[CVBS16_GETPIXELINROW(row, x)];
458 *destBuf = RGB888(v.R * 85, v.G * 85, v.B * 85);
464void CVBS16Controller::rawDrawBitmap_Native(
int destX,
int destY, Bitmap
const * bitmap,
int X1,
int Y1,
int XCount,
int YCount)
466 genericRawDrawBitmap_Native(destX, destY, (uint8_t*) bitmap->data, bitmap->width,
X1,
Y1, XCount, YCount,
467 [&] (
int y) { return (uint8_t*) m_viewPort[y]; },
473void CVBS16Controller::rawDrawBitmap_Mask(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount)
475 auto foregroundColorIndex = RGB888toPaletteIndex(bitmap->foregroundColor);
476 genericRawDrawBitmap_Mask(destX, destY, bitmap, (uint8_t*)saveBackground,
X1,
Y1, XCount, YCount,
477 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
478 CVBS16_GETPIXELINROW,
479 [&] (uint8_t * row,
int x) { CVBS16_SETPIXELINROW(row, x, foregroundColorIndex); }
484void CVBS16Controller::rawDrawBitmap_RGBA2222(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount)
486 genericRawDrawBitmap_RGBA2222(destX, destY, bitmap, (uint8_t*)saveBackground,
X1,
Y1, XCount, YCount,
487 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
488 CVBS16_GETPIXELINROW,
489 [&] (uint8_t * row,
int x, uint8_t src) { CVBS16_SETPIXELINROW(row, x, RGB2222toPaletteIndex(src)); }
494void CVBS16Controller::rawDrawBitmap_RGBA8888(
int destX,
int destY, Bitmap
const * bitmap,
void * saveBackground,
int X1,
int Y1,
int XCount,
int YCount)
496 genericRawDrawBitmap_RGBA8888(destX, destY, bitmap, (uint8_t*)saveBackground,
X1,
Y1, XCount, YCount,
497 [&] (
int y) {
return (uint8_t*) m_viewPort[y]; },
498 [&] (uint8_t * row,
int x) {
return CVBS16_GETPIXELINROW(row, x); },
499 [&] (uint8_t * row,
int x,
RGBA8888 const & src) { CVBS16_SETPIXELINROW(row, x, RGB8888toPaletteIndex(src)); }
504void IRAM_ATTR CVBS16Controller::drawScanlineX1(
void * arg, uint16_t * dest,
int destSample,
int scanLine)
506 auto ctrl = (CVBS16Controller *) arg;
508 auto const width = ctrl->m_viewPortWidth;
510 auto src = (uint8_t
const *) s_viewPortVisible[scanLine];
511 auto dest32 = (uint32_t*) (dest + destSample);
513 int subCarrierPhaseSam = CVBSGenerator::subCarrierPhase();
514 auto paletteToRaw = (uint16_t * *) s_paletteToRawPixel[CVBSGenerator::lineSwitch()];
515 auto sampleLUT = CVBSGenerator::lineSampleToSubCarrierSample() + destSample;
518 for (
int col = 0; col <
width; col += 16) {
520 auto src1 = *(src + 0);
521 auto src2 = *(src + 1);
522 auto src3 = *(src + 2);
523 auto src4 = *(src + 3);
524 auto src5 = *(src + 4);
525 auto src6 = *(src + 5);
526 auto src7 = *(src + 6);
527 auto src8 = *(src + 7);
531 *dest32++ = (paletteToRaw[src1 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src1 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
533 *dest32++ = (paletteToRaw[src2 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src2 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
535 *dest32++ = (paletteToRaw[src3 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src3 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
537 *dest32++ = (paletteToRaw[src4 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src4 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
539 *dest32++ = (paletteToRaw[src5 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src5 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
541 *dest32++ = (paletteToRaw[src6 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src6 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
543 *dest32++ = (paletteToRaw[src7 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src7 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
545 *dest32++ = (paletteToRaw[src8 >> 4][*sampleLUT + subCarrierPhaseSam] << 16) | (paletteToRaw[src8 & 0x0f][*(sampleLUT + 1) + subCarrierPhaseSam]);
552 if (CVBSGenerator::VSync() && !ctrl->m_primitiveProcessingSuspended && spi_flash_cache_enabled() && ctrl->m_primitiveExecTask) {
555 vTaskNotifyGiveFromISR(ctrl->m_primitiveExecTask, NULL);
560void IRAM_ATTR CVBS16Controller::drawScanlineX2(
void * arg, uint16_t * dest,
int destSample,
int scanLine)
562 auto ctrl = (CVBS16Controller *) arg;
564 auto const width = ctrl->m_viewPortWidth * 2;
566 auto src = (uint8_t
const *) s_viewPortVisible[scanLine];
567 auto dest32 = (uint32_t*) (dest + destSample);
569 int subCarrierPhaseSam = CVBSGenerator::subCarrierPhase();
570 auto paletteToRaw = (uint16_t * *) s_paletteToRawPixel[CVBSGenerator::lineSwitch()];
571 auto sampleLUT = CVBSGenerator::lineSampleToSubCarrierSample() + destSample;
582 for (
int col = 0; col <
width; col += 16) {
584 auto src1 = *(src + 0);
585 auto src2 = *(src + 1);
586 auto src3 = *(src + 2);
587 auto src4 = *(src + 3);
591 auto praw = paletteToRaw[src1 >> 4] + subCarrierPhaseSam;
592 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
595 praw = paletteToRaw[src1 & 0x0f] + subCarrierPhaseSam;
596 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
599 praw = paletteToRaw[src2 >> 4] + subCarrierPhaseSam;
600 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
603 praw = paletteToRaw[src2 & 0x0f] + subCarrierPhaseSam;
604 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
607 praw = paletteToRaw[src3 >> 4] + subCarrierPhaseSam;
608 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
611 praw = paletteToRaw[src3 & 0x0f] + subCarrierPhaseSam;
612 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
615 praw = paletteToRaw[src4 >> 4] + subCarrierPhaseSam;
616 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
619 praw = paletteToRaw[src4 & 0x0f] + subCarrierPhaseSam;
620 *dest32++ = (praw[*sampleLUT] << 16) | (praw[*(sampleLUT + 1)]);
627 if (CVBSGenerator::VSync() && !ctrl->m_primitiveProcessingSuspended && spi_flash_cache_enabled() && ctrl->m_primitiveExecTask) {
630 vTaskNotifyGiveFromISR(ctrl->m_primitiveExecTask, NULL);
636void IRAM_ATTR CVBS16Controller::drawScanlineX3(
void * arg, uint16_t * dest,
int destSample,
int scanLine)
638 auto ctrl = (CVBS16Controller *) arg;
640 auto const width = ctrl->m_viewPortWidth * 3;
642 auto src = (uint8_t
const *) s_viewPortVisible[scanLine];
643 auto dest32 = (uint32_t*) (dest + destSample);
645 int subCarrierPhaseSam = CVBSGenerator::subCarrierPhase();
646 auto paletteToRaw = (uint16_t * *) s_paletteToRawPixel[CVBSGenerator::lineSwitch()];
647 auto sampleLUT = CVBSGenerator::lineSampleToSubCarrierSample() + destSample;
650 for (
int col = 0; col <
width; col += 24) {
652 auto src1 = *(src + 0);
653 auto src2 = *(src + 1);
654 auto src3 = *(src + 2);
655 auto src4 = *(src + 3);
659 auto prawl = paletteToRaw[src1 >> 4] + subCarrierPhaseSam;
660 auto prawr = paletteToRaw[src1 & 0x0f] + subCarrierPhaseSam;
661 *dest32++ = (prawl[*sampleLUT] << 16) | (prawl[*(sampleLUT + 1)]);
663 *dest32++ = (prawl[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
665 *dest32++ = (prawr[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
668 prawl = paletteToRaw[src2 >> 4] + subCarrierPhaseSam;
669 prawr = paletteToRaw[src2 & 0x0f] + subCarrierPhaseSam;
670 *dest32++ = (prawl[*sampleLUT] << 16) | (prawl[*(sampleLUT + 1)]);
672 *dest32++ = (prawl[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
674 *dest32++ = (prawr[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
677 prawl = paletteToRaw[src3 >> 4] + subCarrierPhaseSam;
678 prawr = paletteToRaw[src3 & 0x0f] + subCarrierPhaseSam;
679 *dest32++ = (prawl[*sampleLUT] << 16) | (prawl[*(sampleLUT + 1)]);
681 *dest32++ = (prawl[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
683 *dest32++ = (prawr[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
686 prawl = paletteToRaw[src4 >> 4] + subCarrierPhaseSam;
687 prawr = paletteToRaw[src4 & 0x0f] + subCarrierPhaseSam;
688 *dest32++ = (prawl[*sampleLUT] << 16) | (prawl[*(sampleLUT + 1)]);
690 *dest32++ = (prawl[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
692 *dest32++ = (prawr[*sampleLUT] << 16) | (prawr[*(sampleLUT + 1)]);
699 if (CVBSGenerator::VSync() && !ctrl->m_primitiveProcessingSuspended && spi_flash_cache_enabled() && ctrl->m_primitiveExecTask) {
702 vTaskNotifyGiveFromISR(ctrl->m_primitiveExecTask, NULL);
This file contains fabgl::CVBS16Controller definition.
This file contains some utility classes and functions.
NativePixelFormat
This enum defines the display controller native pixel format.
Color
This enum defines named colors.