Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
colorout.c File Reference
#include "develop/imageop_gui.h"
#include "system/macros.h"
#include "system/openmp.h"
#include "system/target_clones.h"
#include "system/mem_alloc.h"
#include "common/logging.h"
#include "common/module_versioning.h"
#include "colorprofiles/colorspaces.h"
#include "colorprofiles/conversion.h"
#include "math/matrices.h"
#include "common/imagebuf.h"
#include "develop/iop_profile.h"
#include "common/opencl.h"
#include "common/conf.h"
#include "control/user_message.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "iop/iop_api.h"
#include <assert.h>
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "imageio/imageio_profile.h"
+ Include dependency graph for colorout.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_colorout_data_t
 
struct  dt_iop_colorout_global_data_t
 
struct  dt_iop_colorout_params_t
 
struct  dt_iop_colorout_gui_data_t
 

Macros

#define DT_IOP_COLOR_ICC_LEN   512
 
#define DT_IOP_COLOR_ICC_LEN_V4   100
 

Typedefs

typedef struct dt_iop_colorout_data_t dt_iop_colorout_data_t
 
typedef struct dt_iop_colorout_global_data_t dt_iop_colorout_global_data_t
 
typedef struct dt_iop_colorout_params_t dt_iop_colorout_params_t
 
typedef struct dt_iop_colorout_gui_data_t dt_iop_colorout_gui_data_t
 

Functions

const char * name ()
 
const char ** description (struct dt_iop_module_t *self)
 
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)
 
static dt_iop_colorspace_type_t _colorout_input_format_cst (dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe)
 
static dt_iop_colorspace_type_t _colorout_output_format_cst (dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe)
 
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)
 
int legacy_params (dt_iop_module_t *self, const void *const old_params, const int old_version, void *new_params, const int new_version)
 
void init_global (dt_iop_module_so_t *module)
 
void cleanup_global (dt_iop_module_so_t *module)
 
int process_cl (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out)
 
__DT_CLONE_TARGETS__ int process (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid)
 
void commit_params (struct dt_iop_module_t *self, dt_iop_params_t *p1, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
gboolean runtime_data_hash (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
 
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 init (dt_iop_module_t *module)
 
void gui_init (dt_iop_module_t *self)
 

Variables

dt_iop_colorout_gui_data_t dummy
 

Macro Definition Documentation

◆ DT_IOP_COLOR_ICC_LEN

#define DT_IOP_COLOR_ICC_LEN   512

Definition at line 90 of file colorout.c.

◆ DT_IOP_COLOR_ICC_LEN_V4

#define DT_IOP_COLOR_ICC_LEN_V4   100

Typedef Documentation

◆ dt_iop_colorout_data_t

◆ dt_iop_colorout_global_data_t

◆ dt_iop_colorout_gui_data_t

◆ dt_iop_colorout_params_t

Function Documentation

◆ _colorout_input_format_cst()

◆ _colorout_output_format_cst()

static dt_iop_colorspace_type_t _colorout_output_format_cst ( dt_iop_module_t self,
const dt_dev_pixelpipe_t pipe 
)
static

Definition at line 176 of file colorout.c.

References _colorout_input_format_cst(), IOP_CS_LAB, and IOP_CS_RGB_DISPLAY.

Referenced by output_format().

◆ cleanup_global()

◆ cleanup_pipe()

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

◆ commit_params()

void commit_params ( struct dt_iop_module_t self,
dt_iop_params_t p1,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

Definition at line 391 of file colorout.c.

References d, dt_dev_pixelpipe_iop_t::data, dt_iop_module_t::dev, dt_dev_pixelpipe_t::dev, dt_colorprofiles_settings_t::display_filename, dt_colorprofiles_settings_t::display_intent, dt_colorprofiles_settings_t::display_type, dt_colorprofiles_get_settings(), DT_COLORSPACE_ADOBERGB, DT_COLORSPACE_LAB, DT_COLORSPACE_NONE, DT_COLORSPACE_SRGB, dt_colorspaces_conversion_identity(), dt_colorspaces_conversion_is_matrix(), dt_colorspaces_free_conversion(), dt_colorspaces_free_image_profile(), dt_colorspaces_get_name(), dt_colorspaces_prepare_conversion(), dt_colorspaces_profile_exists(), dt_conf_get_bool(), dt_control_log(), DT_CONVERSION_FORCE_LCMS2, DT_CONVERSION_GAMUTCHECK, DT_CONVERSION_TARGET_CURVES, DT_DEBUG_DEV, DT_DEV_PIXELPIPE_EXPORT, DT_DEV_PIXELPIPE_FULL, DT_DEV_PIXELPIPE_THUMBNAIL, dt_image_get_embedded_output_profile(), DT_INTENT_LAST, DT_INTENT_PERCEPTUAL, dt_iop_set_cache_bypass(), dt_ioppr_get_pipe_input_profile_info(), dt_ioppr_get_pipe_work_profile_info(), dt_ioppr_get_work_profile_type(), dt_ioppr_set_pipe_output_profile_info(), dt_print(), DT_PROFILE_GAMUTCHECK, DT_PROFILE_NORMAL, DT_PROFILE_ROLE_ANY, DT_PROFILE_ROLE_MONITOR, DT_PROFILE_ROLE_OUTPUT, dt_colorspaces_endpoint_t::filename, dt_iop_order_iccprofile_info_t::filename, flags(), dt_dev_pixelpipe_t::icc_filename, dt_dev_pixelpipe_t::icc_intent, dt_dev_pixelpipe_t::icc_type, dt_image_t::id, dt_develop_t::image_storage, dt_iop_order_iccprofile_info_t::intent, IS_NULL_PTR, dt_colorprofiles_settings_t::mode, p, dt_dev_pixelpipe_iop_t::process_cl_ready, dt_colorspaces_endpoint_t::resolved, dt_colorprofiles_settings_t::softproof_filename, dt_colorprofiles_settings_t::softproof_type, dt_colorspaces_endpoint_t::type, dt_iop_order_iccprofile_info_t::type, and dt_dev_pixelpipe_t::type.

◆ default_colorspace()

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

Definition at line 156 of file colorout.c.

References IOP_CS_RGB.

◆ default_group()

int default_group ( )

Definition at line 146 of file colorout.c.

References IOP_GROUP_TECHNICAL.

◆ description()

const char ** description ( struct dt_iop_module_t self)

Definition at line 135 of file colorout.c.

References dt_iop_set_description().

◆ flags()

int flags ( )

Definition at line 151 of file colorout.c.

References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_NO_HISTORY_STACK, and IOP_FLAGS_ONE_INSTANCE.

Referenced by commit_params().

◆ gui_init()

void gui_init ( dt_iop_module_t self)

Definition at line 640 of file colorout.c.

References dt_iop_module_t::gui, IOP_GUI_ALLOC, TRUE, and dt_iop_module_gui_t::widget.

◆ init()

void init ( dt_iop_module_t module)

Definition at line 627 of file colorout.c.

References dt_iop_default_init().

◆ init_global()

void init_global ( dt_iop_module_so_t module)

◆ init_pipe()

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

◆ input_format()

◆ legacy_params()

int legacy_params ( dt_iop_module_t self,
const void *const  old_params,
const int  old_version,
void new_params,
const int  new_version 
)

◆ name()

const char * name ( )

Definition at line 129 of file colorout.c.

◆ output_format()

◆ process()

◆ process_cl()

◆ runtime_data_hash()

gboolean runtime_data_hash ( struct dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
const dt_dev_pixelpipe_iop_t piece 
)

Definition at line 599 of file colorout.c.

References TRUE, and void().

Variable Documentation

◆ dummy

Definition at line 638 of file colorout.c.

Referenced by dt_thumbtable_new().