81#ifndef CORE_GP_GAMMA_CORRECTION_H
82#define CORE_GP_GAMMA_CORRECTION_H
87#include <core/gp_gamma_correction.gen.h>
gp_gamma * gp_gamma_incref(gp_gamma *gamma)
Increases reference counters.
void gp_gamma_decref(gp_gamma *self)
Decreases reference counters.
void gp_gamma_print(const gp_gamma *self)
Prints info about gamma table into the stdout.
const char * gp_correction_type_name(gp_correction_type type)
Returns correction name.
A pixel defintions generated from gen/include/gfxprim_config.py.
#define GP_PIXEL_CHANS_MAX
Maximal number of channels per all defined pixel types.
gp_pixel_type
List of all pixel types.
gp_correction_type
A list of supported correction types.
gp_gamma * gp_gamma_acquire(gp_pixel_type pixel_type, gp_correction_type corr_type, float gamma)
Acquires a gamma tables for a given pixel type, correction type and a gamma value.
@ GP_CORRECTION_SRGB
Standard RGB - gamma = 2.2 linearized near zero.
@ GP_CORRECTION_GAMMA
Classical gamma correction.
uint8_t in_bits
Number of input bits.
float gamma
Gamma for GP_CORRECTION_GAMMA.
unsigned int ref_count
Reference counter.
uint8_t out_bits
Number of output bits.
gp_correction_type type
Correction type.
A correction tables for all pixel channels.
unsigned int ref_count
Reference counter.
gp_gamma_table * lin[4]
Tables to linearize channel values.
gp_gamma_table * enc[4]
Tables to encode the values back.
gp_pixel_type pixel_type
Pixel type the table could be used for.