Tiny 5x7 RGB565 text renderer for the camera statistics band.
More...
#include <stddef.h>
#include <string.h>
#include "camera_overlay.h"
|
| void | camera_overlay_line (uint8_t *tile_pixels, const char *text) |
| | Render one line of overlay text into a camera tile.
|
| |
| void | camera_overlay_color_key (uint8_t *tile_pixels) |
| | Draw red, green, blue and white reference swatches into a tile.
|
| |
Tiny 5x7 RGB565 text renderer for the camera statistics band.
- Author
- Victor Pascu (victo.nosp@m.r.pa.nosp@m.scu@a.nosp@m.nalo.nosp@m.g.com)
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ COLOR_KEY_WIDTH
| #define COLOR_KEY_WIDTH 12U |
◆ COLOR_KEY_X
◆ GLYPH_ADVANCE
◆ GLYPH_HEIGHT
◆ GLYPH_WIDTH
◆ OVERLAY_BG_BYTE
| #define OVERLAY_BG_BYTE 0x00U |
◆ OVERLAY_FG_BYTE
| #define OVERLAY_FG_BYTE 0xffU |
◆ camera_overlay_color_key()
| void camera_overlay_color_key |
( |
uint8_t * | tile_pixels | ) |
|
Draw red, green, blue and white reference swatches into a tile.
- Parameters
-
| tile_pixels | - RGB565 tile buffer, CAMERA_TILE_BYTES long. |
◆ camera_overlay_line()
| void camera_overlay_line |
( |
uint8_t * | tile_pixels, |
|
|
const char * | text ) |
Render one line of overlay text into a camera tile.
- Parameters
-
| tile_pixels | - RGB565 tile buffer, CAMERA_TILE_BYTES long. |
| text | - NUL-terminated text; it is truncated at the frame width. |