#include "config.h"#include "gamma.h"#include <math.h>#include <gphoto2/gphoto2-result.h>Include dependency graph for gamma.c:

Functions | |
| int | gp_gamma_correct_single (unsigned char *table, unsigned char *data, unsigned int size) |
| Gamma correction. | |
| int | gp_gamma_fill_table (unsigned char *table, double g) |
| Initialize a Gamma conversion table. | |
| int gp_gamma_correct_single | ( | unsigned char * | table, | |
| unsigned char * | data, | |||
| unsigned int | size | |||
| ) |
Gamma correction.
Corrects size pixels within the table with a given Gamma correction table.
| table | the gamma correction table as generated by gp_gamma_fill_table() | |
| data | the data do process, both input and output | |
| size | in number of pixels (RGB byte pairs) |
| int gp_gamma_fill_table | ( | unsigned char * | table, | |
| double | g | |||
| ) |
Initialize a Gamma conversion table.
Initializes the gamma conversion table for later use by gp_gamma_correct_single(). Requires a 256 byte array as table.
| table | a 256 byte array of unsigned char | |
| g | gamma correction value |
1.5.1