![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/box_filters.h"#include "common/darktable.h"#include "common/guided_filter.h"#include "control/control.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/imageop_gui.h"#include "gui/gtk.h"#include "develop/tiling.h"#include "iop/iop_api.h"#include <float.h>#include <gtk/gtk.h>#include <math.h>#include <stdlib.h>#include <string.h>
Include dependency graph for hazeremoval.c:Data Structures | |
| struct | dt_iop_hazeremoval_params_t |
| struct | dt_iop_hazeremoval_gui_data_t |
| struct | dt_iop_hazeremoval_global_data_t |
| struct | tile |
| struct | rgb_image |
| struct | const_rgb_image |
Typedefs | |
| typedef float | rgb_pixel[3] |
| typedef struct dt_iop_hazeremoval_params_t | dt_iop_hazeremoval_params_t |
| typedef dt_iop_hazeremoval_params_t | dt_iop_hazeremoval_data_t |
| typedef struct dt_iop_hazeremoval_gui_data_t | dt_iop_hazeremoval_gui_data_t |
| typedef struct dt_iop_hazeremoval_global_data_t | dt_iop_hazeremoval_global_data_t |
| typedef struct tile | tile |
| typedef struct rgb_image | rgb_image |
| typedef struct const_rgb_image | const_rgb_image |
| typedef struct const_rgb_image const_rgb_image |
| typedef struct dt_iop_hazeremoval_global_data_t dt_iop_hazeremoval_global_data_t |
| typedef struct dt_iop_hazeremoval_gui_data_t dt_iop_hazeremoval_gui_data_t |
| typedef struct dt_iop_hazeremoval_params_t dt_iop_hazeremoval_params_t |
| typedef float rgb_pixel[3] |
| const char * aliases | ( | ) |
|
static |
References copy_gray_image(), dark_channel(), gray_image::data, const_rgb_image::data, free_gray_image(), height, const_rgb_image::height, new_gray_image(), quick_select(), size, const_rgb_image::stride, w1, width, and const_rgb_image::width.
Referenced by process().
| void cleanup_global | ( | dt_iop_module_so_t * | self | ) |
References dt_iop_module_so_t::data, dt_opencl_free_kernel(), dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_max_x, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_max_y, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_min_x, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_min_y, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_dehaze, and dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_transision_map.
| void cleanup_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.
|
static |
References gray_image::data, const_rgb_image::data, dt_box_min(), gray_image::height, const_rgb_image::height, m, size, const_rgb_image::stride, gray_image::width, and const_rgb_image::width.
Referenced by ambient_light().
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
References IOP_CS_RGB.
| int default_group | ( | ) |
References IOP_GROUP_REPAIR.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
| int flags | ( | ) |
References IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_cleanup | ( | dt_iop_module_t * | self | ) |
References IOP_GUI_FREE.
| void gui_init | ( | dt_iop_module_t * | self | ) |
References dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_digits(), and IOP_GUI_ALLOC.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
| void init_global | ( | dt_iop_module_so_t * | self | ) |
References dt_iop_module_so_t::data, dt_opencl_create_kernel(), dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_max_x, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_max_y, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_min_x, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_box_min_y, dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_dehaze, and dt_iop_hazeremoval_global_data_t::kernel_hazeremoval_transision_map.
| 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.
| const char * name | ( | ) |
|
static |
References pointer_swap_f().
Referenced by quick_select().
|
inlinestatic |
Referenced by partition(), and quick_select().
| void process | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | ivoid, | ||
| void *const | ovoid, | ||
| const dt_iop_roi_t *const | roi_in, | ||
| const dt_iop_roi_t *const | roi_out | ||
| ) |
References ambient_light(), dt_dev_pixelpipe_iop_t::colors, gray_image::data, dt_dev_pixelpipe_iop_t::data, rgb_image::data, const_rgb_image::data, dt_iop_module_t::dev, dt_iop_hazeremoval_params_t::distance, dt_box_min(), dt_control_log(), dt_dev_hash(), DT_DEV_PIXELPIPE_DISPLAY_MASK, DT_DEV_PIXELPIPE_FULL, DT_DEV_PIXELPIPE_PREVIEW, dt_dev_sync_pixelpipe_hash(), DT_DEV_TRANSFORM_DIR_BACK_INCL, dt_iop_alpha_copy(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), eps, free_gray_image(), dt_develop_t::gui_attached, dt_iop_module_t::gui_data, dt_iop_module_t::gui_lock, guided_filter(), height, gray_image::height, dt_iop_roi_t::height, dt_iop_module_t::iop_order, new_gray_image(), dt_dev_pixelpipe_iop_t::pipe, size, strength(), dt_iop_hazeremoval_params_t::strength, rgb_image::stride, const_rgb_image::stride, transition_map(), w1, w2, width, gray_image::width, and dt_iop_roi_t::width.
| void quick_select | ( | float * | first, |
| float * | nth, | ||
| float * | last | ||
| ) |
References partition(), and pointer_swap_f().
Referenced by ambient_light().
|
static |
References gray_image::data, const_rgb_image::data, dt_box_max(), gray_image::height, const_rgb_image::height, m, size, strength(), const_rgb_image::stride, gray_image::width, and const_rgb_image::width.
Referenced by process().