ESP32 motion
deflicker.h
Go to the documentation of this file.
1
5
#ifndef DEFLICKER_H
6
#define DEFLICKER_H
7
8
#define MAXSIZE 10
9
10
typedef
unsigned
char
uint8_t
;
11
15
typedef
struct
queue
{
16
float
brightness
[
MAXSIZE
];
17
int
available
;
18
}
queue_t
;
19
23
float
get_factor
();
24
31
bool
deflicker
(
uint8_t
*img,
int
w,
int
h);
32
33
#endif
MAXSIZE
#define MAXSIZE
Definition:
deflicker.h:8
get_factor
float get_factor()
calculate brightness ratio related to previous brightness
Definition:
deflicker.c:38
queue_t
struct queue queue_t
queue::available
int available
Definition:
deflicker.h:17
queue::brightness
float brightness[MAXSIZE]
rolling brightness
Definition:
deflicker.h:16
queue
simple queue
Definition:
deflicker.h:15
uint8_t
unsigned char uint8_t
Definition:
deflicker.h:10
deflicker
bool deflicker(uint8_t *img, int w, int h)
perform deflickering
Definition:
deflicker.c:48
include
deflicker.h
Generated by
1.8.17