aboutsummaryrefslogtreecommitdiff
path: root/overlay.h
blob: f2ff27e5b43e29d28bbbac01d675e4b6755d0349 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef FACEDET_OVERLAY_H
#define FACEDET_OVERLAY_H

#include "facedet.h"

/* Draws on RGB8 pixels in place and writes a P6 image at the original size.
 * Detection coordinates are clipped for drawing without modifying the records.
 * Returns 0 on success or -1 on invalid arguments or a file write failure. */
int overlay_write_ppm(const char *path, unsigned char *rgb, int width, int height,
                      const facedet_detection *faces, int count);

#endif