Offline CSV replay utility for validating EARcam heatmaps and fusion. More...
#include "modules/ear_cam/ear_heatmap.h"#include "version.h"#include <stdio.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | _POSIX_C_SOURCE 200809L |
Functions | |
| static int | parse_line (const char *line, struct ear_sample *s) |
| Decode one EAR session row into the shared fusion sample structure. | |
| int | main (int argc, char **argv) |
| Recompute an EAR loudest-spot result and emit decorated/field JPEGs. | |
Variables | |
| static struct ear_sample | samples [EAR_MAX_SAMPLES] |
Detailed Description
Offline CSV replay utility for validating EARcam heatmaps and fusion.
Definition in file ear_heatmap_replay.c.
Macro Definition Documentation
◆ _POSIX_C_SOURCE
| #define _POSIX_C_SOURCE 200809L |
Definition at line 22 of file ear_heatmap_replay.c.
Function Documentation
◆ main()
| int main | ( | int | argc, |
| char ** | argv ) |
Recompute an EAR loudest-spot result and emit decorated/field JPEGs.
- Parameters
-
argc Command-line argument count. argv Expects a session CSV and destination JPEG, or a help/version switch.
- Returns
- 0 on completed output, 2 for usage errors, or 1 when the log has no valid solve.
The undecorated sibling preserves clean heat colors for later map overlay; the decorated JPEG remains the human-readable result and both share one .geo frame.
Definition at line 76 of file ear_heatmap_replay.c.
◆ parse_line()
|
static |
Decode one EAR session row into the shared fusion sample structure.
- Parameters
-
line Comma-separated log row in the order documented by the session header. s Receives the parsed measurement; the caller owns this sample slot.
- Returns
- 0 for all twelve required fields, or -1 for an incomplete/malformed row.
Keeping replay on ear_sample makes the same solver and renderer handle recorded evidence and live USHER snapshots.
Definition at line 49 of file ear_heatmap_replay.c.
Variable Documentation
◆ samples
|
static |
Bounded workspace matches EARcam's runtime sample ceiling; replay never grows with log size.
Definition at line 39 of file ear_heatmap_replay.c.