Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gamma.c File Reference
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "common/colorspaces_inline_conversions.h"
#include "control/control.h"
#include "develop/develop.h"
#include "gui/gtk.h"
#include "iop/iop_api.h"
+ Include dependency graph for gamma.c:

Data Structures

struct  dt_iop_gamma_params_t
 

Typedefs

typedef struct dt_iop_gamma_params_t dt_iop_gamma_params_t
 

Functions

const char * name ()
 
int default_group ()
 
int flags ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
static void _write_pixel (const float *const restrict in, uint8_t *const restrict out, const float *const restrict mask_color, const float alpha)
 
static void _normalize_color (float *const restrict pixel, const float norm)
 
static void _XYZ_to_REC_709_normalized (const float *const restrict XYZ, float *const restrict sRGB, const float norm)
 
static void _channel_display_monochrome (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize, const float alpha)
 
static void _channel_display_false_color (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize, const float alpha, dt_dev_pixelpipe_display_mask_t channel)
 
static void _mask_display (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize, const float alpha)
 
static void _copy_output (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize)
 
void process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const i, void *const o, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out)
 
void init (dt_iop_module_t *module)
 

Typedef Documentation

◆ dt_iop_gamma_params_t

Function Documentation

◆ _channel_display_false_color()

◆ _channel_display_monochrome()

static void _channel_display_monochrome ( const float *const restrict  in,
uint8_t *const restrict  out,
const size_t  buffsize,
const float  alpha 
)
static

References _write_pixel().

Referenced by _channel_display_false_color(), and process().

◆ _copy_output()

static void _copy_output ( const float *const restrict  in,
uint8_t *const restrict  out,
const size_t  buffsize 
)
static

Referenced by process().

◆ _mask_display()

static void _mask_display ( const float *const restrict  in,
uint8_t *const restrict  out,
const size_t  buffsize,
const float  alpha 
)
static

References _write_pixel().

Referenced by process().

◆ _normalize_color()

static void _normalize_color ( float *const restrict  pixel,
const float  norm 
)
static

◆ _write_pixel()

static void _write_pixel ( const float *const restrict  in,
uint8_t *const restrict  out,
const float *const restrict  mask_color,
const float  alpha 
)
inlinestatic

◆ _XYZ_to_REC_709_normalized()

static void _XYZ_to_REC_709_normalized ( const float *const restrict  XYZ,
float *const restrict  sRGB,
const float  norm 
)
inlinestatic

◆ default_colorspace()

int default_colorspace ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

References IOP_CS_RGB.

◆ default_group()

int default_group ( )

References IOP_GROUP_TECHNICAL.

◆ flags()

◆ init()

void init ( dt_iop_module_t module)

◆ name()

const char * name ( )

◆ process()