no-OS
Loading...
Searching...
No Matches
camera_overlay.c File Reference

Tiny 5x7 RGB565 text renderer for the camera statistics band. More...

#include <stddef.h>
#include <string.h>
#include "camera_overlay.h"
Include dependency graph for camera_overlay.c:

Macros

#define GLYPH_WIDTH   5U
 
#define GLYPH_HEIGHT   7U
 
#define GLYPH_ADVANCE   6U
 
#define OVERLAY_FG_BYTE   0xffU
 
#define OVERLAY_BG_BYTE   0x00U
 
#define COLOR_KEY_X   272U
 
#define COLOR_KEY_WIDTH   12U
 

Functions

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.
 

Detailed Description

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

Macro Definition Documentation

◆ COLOR_KEY_WIDTH

#define COLOR_KEY_WIDTH   12U

◆ COLOR_KEY_X

#define COLOR_KEY_X   272U

◆ GLYPH_ADVANCE

#define GLYPH_ADVANCE   6U

◆ GLYPH_HEIGHT

#define GLYPH_HEIGHT   7U

◆ GLYPH_WIDTH

#define GLYPH_WIDTH   5U

◆ OVERLAY_BG_BYTE

#define OVERLAY_BG_BYTE   0x00U

◆ OVERLAY_FG_BYTE

#define OVERLAY_FG_BYTE   0xffU

Function Documentation

◆ 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.