![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "colorprofiles/colorspaces.h"#include "caches/pixelpipe_cache_alloc.h"#include "develop/iop_profile.h"#include "math/matrices.h"#include "develop/imageop.h"#include "develop/pixelpipe.h"#include "develop/develop.h"#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "system/target_clones.h"#include "common/times.h"
Include dependency graph for develop/iop_profile.c:Go to the source code of this file.
| void dt_ioppr_get_export_profile_type | ( | struct dt_develop_t * | dev, |
| dt_colorspaces_color_profile_type_t * | profile_type, | ||
| const char ** | profile_filename | ||
| ) |
returns the current setting of the export profile on colorout iop
Definition at line 306 of file develop/iop_profile.c.
References DT_COLORSPACE_NONE, dt_iop_get_modules_so(), dt_develop_t::iop, and L.
| __DT_CLONE_TARGETS__ dt_iop_order_iccprofile_info_t * dt_ioppr_get_iop_work_profile_info | ( | struct dt_iop_module_t * | module, |
| GList * | iop_list | ||
| ) |
returns the profile info from dev profiles info list that matches (profile_type, profile_filename) NULL if not found adds the profile info from (profile_type, profile_filename) to the dev profiles info list if not already exists returns the generated profile or the existing one returns a reference to the work profile info as set on colorin iop only if module is between colorin and colorout, otherwise returns NULL work profile must not be cleanup()
Definition at line 71 of file develop/iop_profile.c.
References DT_COLORSPACE_NONE, dt_colorspaces_add_profile(), DT_INTENT_PERCEPTUAL, dt_ioppr_get_work_profile_type(), FALSE, L, TRUE, and type.
Referenced by _area_draw_callback(), _brush_pipeline_color_from_display(), _draw_color_picker(), _get_current_work_profile_key(), _signal_profile_user_changed(), _update_gradient_slider_pickers(), _working_rgb_to_display_rgb(), autoset(), color_picker_apply(), dt_develop_blendif_init_masking_profile(), gui_changed(), process(), process(), process_cl(), process_fusion(), and process_lut().
| dt_iop_order_iccprofile_info_t * dt_ioppr_get_pipe_current_profile_info | ( | struct dt_iop_module_t * | module, |
| const struct dt_dev_pixelpipe_t * | pipe | ||
| ) |
Get the relevant RGB -> XYZ profile at the position of current module
Definition at line 238 of file develop/iop_profile.c.
References dt_ioppr_get_iop_order(), dt_ioppr_get_pipe_input_profile_info(), dt_ioppr_get_pipe_output_profile_info(), dt_ioppr_get_pipe_work_profile_info(), and L.
Referenced by _auto_set_exposure(), _auto_set_illuminant(), _pipe_rgb_to_dt_ucs_hsb(), _pipe_rgb_to_Ych(), _pipe_rgb_to_Ych(), _refresh_preview_cursor_sample(), _sample_picker_buffer(), _update_gradient_slider_pickers(), _work_rgb_to_display_rgb(), autoset(), color_picker_apply(), commit_params(), commit_params(), dt_develop_blendif_init_masking_profile(), pipe_RGB_to_Ych(), process(), process(), and process_cl().
| dt_iop_order_iccprofile_info_t * dt_ioppr_get_pipe_input_profile_info | ( | const struct dt_dev_pixelpipe_t * | pipe | ) |
Definition at line 228 of file develop/iop_profile.c.
References dt_dev_pixelpipe_t::input_profile_info.
Referenced by _ioporder_runtime_band_profile_info(), commit_params(), dt_ioppr_get_pipe_current_profile_info(), and process().
| dt_iop_order_iccprofile_info_t * dt_ioppr_get_pipe_output_profile_info | ( | const struct dt_dev_pixelpipe_t * | pipe | ) |
Definition at line 233 of file develop/iop_profile.c.
References dt_dev_pixelpipe_t::output_profile_info.
Referenced by _area_draw_callback(), _brush_pipeline_color_from_display(), _channelmixerrgb_update_primaries_colors(), _channelmixerrgb_update_simple_colors(), _draw_color_picker(), _draw_curve(), _filmic_get_output_profile(), _ioporder_runtime_band_profile_info(), _refresh_slider_gradients(), _render_preview_surface(), _update_gui_lut_cache(), _update_gui_lut_cache(), _update_point_slider_colors(), _update_RGB_colors(), _work_rgb_to_display_rgb(), _working_rgb_to_display_rgb(), dt_ioppr_get_pipe_current_profile_info(), and gui_post_expose().
| dt_iop_order_iccprofile_info_t * dt_ioppr_get_pipe_work_profile_info | ( | const struct dt_dev_pixelpipe_t * | pipe | ) |
returns the active work/input/output profile on the pipe
Definition at line 223 of file develop/iop_profile.c.
References dt_dev_pixelpipe_t::work_profile_info.
Referenced by _channelmixerrgb_update_primaries_colors(), _channelmixerrgb_update_simple_colors(), _generate_curve_lut(), _ioporder_runtime_band_profile_info(), _refresh_module_histogram(), _refresh_preview_module_histogram_for_hash(), _render_preview_surface(), _retouch_blur(), _update_point_slider_colors(), _update_RGB_colors(), color_picker_apply(), commit_params(), dt_develop_blend_process_cl(), dt_develop_blendif_lab_blend(), dt_ioppr_get_pipe_current_profile_info(), pixelpipe_process_on_CPU(), pixelpipe_process_on_GPU(), process(), process(), process(), process_cl(), rt_adjust_levels(), and rt_process_stats().
| void dt_ioppr_get_work_profile_type | ( | struct dt_develop_t * | dev, |
| dt_colorspaces_color_profile_type_t * | profile_type, | ||
| const char ** | profile_filename | ||
| ) |
returns the current setting of the work profile on colorin iop
Definition at line 259 of file develop/iop_profile.c.
References DT_COLORSPACE_NONE, dt_iop_get_modules_so(), dt_develop_t::iop, and L.
Referenced by commit_params(), and dt_ioppr_get_iop_work_profile_info().
| dt_iop_order_iccprofile_info_t * dt_ioppr_set_pipe_input_profile_info | ( | struct dt_develop_t * | dev, |
| struct dt_dev_pixelpipe_t * | pipe, | ||
| const dt_colorspaces_color_profile_type_t | type, | ||
| const char * | filename, | ||
| const int | intent, | ||
| const dt_colormatrix_t | matrix_in | ||
| ) |
Definition at line 133 of file develop/iop_profile.c.
References dt_alloc_align(), DT_COLORSPACE_ALTERNATE_MATRIX, DT_COLORSPACE_EMBEDDED_ICC, DT_COLORSPACE_LIN_REC2020, dt_colorspaces_add_profile(), dt_ioppr_init_profile_info(), dt_dev_pixelpipe_t::input_profile_info, IS_NULL_PTR, L, mat3SSEinv(), dt_dev_pixelpipe_t::owned_input_profile_info, transpose_3xSSE(), dt_iop_order_iccprofile_info_t::type, and type.
Referenced by commit_params().
| dt_iop_order_iccprofile_info_t * dt_ioppr_set_pipe_output_profile_info | ( | struct dt_develop_t * | dev, |
| struct dt_dev_pixelpipe_t * | pipe, | ||
| const dt_colorspaces_color_profile_type_t | type, | ||
| const char * | filename, | ||
| const int | intent | ||
| ) |
Definition at line 197 of file develop/iop_profile.c.
References DT_COLORSPACE_DISPLAY, DT_COLORSPACE_SRGB, dt_colorspaces_add_profile(), IS_NULL_PTR, L, dt_dev_pixelpipe_t::output_profile_info, and type.
Referenced by commit_params().
| dt_iop_order_iccprofile_info_t * dt_ioppr_set_pipe_work_profile_info | ( | struct dt_develop_t * | dev, |
| struct dt_dev_pixelpipe_t * | pipe, | ||
| const dt_colorspaces_color_profile_type_t | type, | ||
| const char * | filename, | ||
| const int | intent | ||
| ) |
set the work profile (type, filename) on the pipe, should be called on process*() if matrix cannot be generated it default to linear rec 2020 returns the actual profile that has been set
Definition at line 114 of file develop/iop_profile.c.
References DT_COLORSPACE_LIN_REC2020, dt_colorspaces_add_profile(), IS_NULL_PTR, L, type, and dt_dev_pixelpipe_t::work_profile_info.
Referenced by commit_params().