ESP32 motion
deflicker.h File Reference

Go to the source code of this file.

Data Structures

struct  queue
 simple queue More...
 

Macros

#define MAXSIZE   10
 

Typedefs

typedef unsigned char uint8_t
 
typedef struct queue queue_t
 

Functions

float get_factor ()
 calculate brightness ratio related to previous brightness More...
 
bool deflicker (uint8_t *img, int w, int h)
 perform deflickering More...
 

Detailed Description

Took from ffmpeg but simplified

Macro Definition Documentation

◆ MAXSIZE

#define MAXSIZE   10

Typedef Documentation

◆ queue_t

typedef struct queue queue_t

◆ uint8_t

typedef unsigned char uint8_t

Function Documentation

◆ deflicker()

bool deflicker ( uint8_t img,
int  w,
int  h 
)

perform deflickering

Parameters
imguint8 pointer to image
wwidth
hheight
Returns
true if deflickering else return false (not enough image queued)

◆ get_factor()

float get_factor ( )

calculate brightness ratio related to previous brightness

Returns
ratio (float)