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
 This module converts float32 RGBA pixels to uint8 BGRA pixels, for GUI pipelines only (darkroom main preview and navigation thumbnail). It self-disables for export pipelines. More...
 

Typedefs

typedef struct dt_iop_gamma_params_t dt_iop_gamma_params_t
 This module converts float32 RGBA pixels to uint8 BGRA pixels, for GUI pipelines only (darkroom main preview and navigation thumbnail). It self-disables for export pipelines.
 

Functions

const char * name ()
 
int default_group ()
 
int flags ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
 
void input_format (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
 
void output_format (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
 
 __OMP_DECLARE_SIMD__ (aligned(in, out, mask_color:16) uniform(mask_color, alpha))
 
 __OMP_DECLARE_SIMD__ (aligned(pixel:16) uniform(norm))
 
 __OMP_DECLARE_SIMD__ (aligned(XYZ, sRGB:16) uniform(norm))
 
static __DT_CLONE_TARGETS__ void _channel_display_monochrome (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize, const float alpha)
 
static __DT_CLONE_TARGETS__ 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 __DT_CLONE_TARGETS__ void _mask_display (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize, const float alpha)
 
static __DT_CLONE_TARGETS__ void _copy_output (const float *const restrict in, uint8_t *const restrict out, const size_t buffsize)
 
int process (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, const void *const i, void *const o)
 
void init (dt_iop_module_t *module)
 
void init_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void cleanup_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void commit_params (dt_iop_module_t *self, dt_iop_params_t *params, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 

Typedef Documentation

◆ dt_iop_gamma_params_t

This module converts float32 RGBA pixels to uint8 BGRA pixels, for GUI pipelines only (darkroom main preview and navigation thumbnail). It self-disables for export pipelines.

Function Documentation

◆ __OMP_DECLARE_SIMD__() [1/3]

__OMP_DECLARE_SIMD__ ( aligned(in, out, mask_color:16) uniform(mask_color, alpha)  )

References out, and value.

◆ __OMP_DECLARE_SIMD__() [2/3]

__OMP_DECLARE_SIMD__ ( aligned(pixel:16) uniform(norm)  )

References factor, for_each_channel, and x.

◆ __OMP_DECLARE_SIMD__() [3/3]

__OMP_DECLARE_SIMD__ ( aligned(XYZ, sRGB:16) uniform(norm)  )

References dt_XYZ_to_Rec709_D50(), sRGB, and XYZ.

◆ _channel_display_false_color()

◆ _channel_display_monochrome()

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

◆ _copy_output()

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

References __OMP_PARALLEL_FOR_SIMD__, and out.

Referenced by process().

◆ _mask_display()

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

References __OMP_PARALLEL_FOR_SIMD__, and out.

Referenced by process().

◆ cleanup_pipe()

void cleanup_pipe ( struct dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

◆ commit_params()

◆ default_colorspace()

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

References IOP_CS_RGB_DISPLAY.

◆ default_group()

int default_group ( )

References IOP_GROUP_TECHNICAL.

◆ flags()

◆ init()

void init ( dt_iop_module_t module)

◆ init_pipe()

◆ input_format()

◆ name()

const char * name ( )

◆ output_format()

◆ process()