![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <assert.h>#include <math.h>#include <stdlib.h>#include <string.h>#include "common/colorspaces_inline_conversions.h"#include "common/opencl.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) |
| 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) |
| 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 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.
|
static |
References _channel_display_monochrome(), _normalize_color(), _write_pixel(), _XYZ_to_REC_709_normalized(), DT_DEV_PIXELPIPE_DISPLAY_a, DT_DEV_PIXELPIPE_DISPLAY_ANY, DT_DEV_PIXELPIPE_DISPLAY_b, DT_DEV_PIXELPIPE_DISPLAY_B, DT_DEV_PIXELPIPE_DISPLAY_G, DT_DEV_PIXELPIPE_DISPLAY_GRAY, DT_DEV_PIXELPIPE_DISPLAY_HSL_H, DT_DEV_PIXELPIPE_DISPLAY_HSL_l, DT_DEV_PIXELPIPE_DISPLAY_HSL_S, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Cz, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_hz, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Jz, DT_DEV_PIXELPIPE_DISPLAY_L, DT_DEV_PIXELPIPE_DISPLAY_LCH_C, DT_DEV_PIXELPIPE_DISPLAY_LCH_h, DT_DEV_PIXELPIPE_DISPLAY_OUTPUT, DT_DEV_PIXELPIPE_DISPLAY_R, dt_Lab_to_XYZ(), JzAzBz, JzCzhz, out, value, and XYZ_D65.
Referenced by process().
|
static |
References _write_pixel(), and out.
Referenced by _channel_display_false_color(), and process().
|
static |
|
static |
References _write_pixel(), and out.
Referenced by process().
|
static |
References factor, for_each_channel, and x.
Referenced by _channel_display_false_color(), and _XYZ_to_REC_709_normalized().
|
inlinestatic |
Referenced by _channel_display_false_color(), _channel_display_monochrome(), and _mask_display().
|
inlinestatic |
References _normalize_color(), dt_XYZ_to_Rec709_D50(), sRGB, and XYZ.
Referenced by _channel_display_false_color().
| 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 | ||
| ) |
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
References IOP_CS_RGB.
| int default_group | ( | ) |
References IOP_GROUP_TECHNICAL.
| int flags | ( | ) |
| 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 | ||
| ) |
References dt_dev_pixelpipe_iop_t::data, and dt_dev_pixelpipe_iop_t::data_size.
| 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 | ||
| ) |
| const char * name | ( | ) |
| 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 | ||
| ) |
| 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 | ||
| ) |
References _channel_display_false_color(), _channel_display_monochrome(), _copy_output(), _mask_display(), dt_conf_is_equal(), DT_DEV_PIXELPIPE_DISPLAY_ANY, DT_DEV_PIXELPIPE_DISPLAY_CHANNEL, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_iop_roi_t::height, i, dt_dev_pixelpipe_t::mask_display, dt_dev_pixelpipe_iop_t::roi_out, and dt_iop_roi_t::width.