# C API

## Headers

| Header | Description |
| --- | --- |
| [`dsp.h`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/dsp-h/index.md>) | Mobilint SP500 DSP offload - status codes, lifecycle and shared memory. |
| [`letterbox.h`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/letterbox-h/index.md>) | Aspect-preserving resize with constant padding, on the SP500 DSP. |
| [`log_mel.h`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/log-mel-h/index.md>) | Whisper-style log-mel spectrogram on the SP500 DSP. |
| [`yolo.h`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/yolo-h/index.md>) | YOLO decode and postprocess on the SP500 DSP. |

## Data structures

| Name | Description |
| --- | --- |
| [`sp500_buffer`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_buffer/index.md>) | A tensor handed to or received from the DSP. |
| [`sp500_letterbox_params`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_letterbox_params/index.md>) | Letterbox geometry and options. |
| [`sp500_letterbox_result`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_letterbox_result/index.md>) | Values the DSP computed for a letterbox call. |
| [`sp500_log_mel_params`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_log_mel_params/index.md>) | Front-end parameters. |
| [`sp500_log_mel_result`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_log_mel_result/index.md>) | Values reported by a log-mel call. |
| [`sp500_yolo_detection`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_detection/index.md>) | One detection. 6 floats; the layout of a [SP500\_YOLO\_TASK\_DETECT](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/yolo-h/#sp500-yolo-task-detect>) record. |
| [`sp500_yolo_keypoint`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_keypoint/index.md>) | One keypoint of a pose record. |
| [`sp500_yolo_output`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_output/index.md>) | Where the results go. |
| [`sp500_yolo_params`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_params/index.md>) | Model shape and thresholds. |
| [`sp500_yolo_pose`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_pose/index.md>) | One pose result. 57 floats; the layout of a [SP500\_YOLO\_TASK\_POSE](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/yolo-h/#sp500-yolo-task-detect>) record. |
| [`sp500_yolo_raw`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_raw/index.md>) | Raw head tensors as separate planes, one set per feature level. |
| [`sp500_yolo_raw_anchor`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_raw_anchor/index.md>) | Raw head tensors as one combined tensor per level. SP500\_YOLO\_HEAD\_ANCHOR only. |
| [`sp500_yolo_result`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_result/index.md>) | What a YOLO call produced. |
| [`sp500_yolo_segmentation`](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/sp500_yolo_segmentation/index.md>) | One segmentation result. 11 floats; the layout of a [SP500\_YOLO\_TASK\_SEGMENT](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/yolo-h/#sp500-yolo-task-detect>) record. |
