Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

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.

Parameters:
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)
Returns:
a gphoto error code

Definition at line 61 of file gamma.c.

{
      return (gp_gamma_correct_triple (table, table, table, data, size));
}


Generated by  Doxygen 1.6.0   Back to index