microscope-ring-light-remot.../include/gamma.h

13 lines
233 B
C
Raw Normal View History

2022-10-22 00:16:33 +02:00
#ifndef _GAMMA_H_
#define _GAMMA_H_
#include <stdint.h>
extern const uint8_t global_gamma_correction_table[256];
static inline uint8_t gamma_corr(uint8_t raw)
{
return global_gamma_correction_table[raw];
}
#endif /* _GAMMA_H_ */