![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"
#include "common/imageio_rawspeed.h"
#include "common/opencl.h"
#include "common/imagebuf.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "develop/tiling.h"
#include "common/image_cache.h"
#include "gui/gtk.h"
#include "gui/presets.h"
#include "iop/iop_api.h"
#include "common/dng_opcode.h"
#include <gtk/gtk.h>
#include <stdint.h>
#include <stdlib.h>
Data Structures | |
struct | dt_iop_rawprepare_params_t |
struct | dt_iop_rawprepare_gui_data_t |
struct | dt_iop_rawprepare_data_t |
struct | dt_iop_rawprepare_global_data_t |
Typedefs | |
typedef enum dt_iop_rawprepare_flat_field_t | dt_iop_rawprepare_flat_field_t |
typedef struct dt_iop_rawprepare_params_t | dt_iop_rawprepare_params_t |
typedef struct dt_iop_rawprepare_gui_data_t | dt_iop_rawprepare_gui_data_t |
typedef struct dt_iop_rawprepare_data_t | dt_iop_rawprepare_data_t |
typedef struct dt_iop_rawprepare_global_data_t | dt_iop_rawprepare_global_data_t |
Enumerations | |
enum | dt_iop_rawprepare_flat_field_t { FLAT_FIELD_OFF = 0 , FLAT_FIELD_EMBEDDED = 1 } |
Variables | |
const gchar * | black_label [] |
typedef struct dt_iop_rawprepare_data_t dt_iop_rawprepare_data_t |
typedef struct dt_iop_rawprepare_global_data_t dt_iop_rawprepare_global_data_t |
typedef struct dt_iop_rawprepare_gui_data_t dt_iop_rawprepare_gui_data_t |
typedef struct dt_iop_rawprepare_params_t dt_iop_rawprepare_params_t |
|
static |
References dt_image_t::buf_dsc, dt_dev_pixelpipe_t::dsc, dt_dev_pixelpipe_t::image, and dt_iop_buffer_dsc_t::xtrans.
Referenced by process().
|
static |
References dt_iop_roi_t::x, dt_iop_rawprepare_data_t::x, dt_iop_roi_t::y, and dt_iop_rawprepare_data_t::y.
Referenced by process().
gboolean check_gain_maps | ( | dt_iop_module_t * | self, |
dt_dng_gain_map_t ** | gainmaps_out | ||
) |
References dt_iop_module_t::dev, dt_image_t::dng_gain_maps, FALSE, dt_image_t::height, dt_develop_t::image_storage, TRUE, and dt_image_t::width.
Referenced by commit_params(), gui_update(), and reload_defaults().
void cleanup_global | ( | dt_iop_module_so_t * | self | ) |
void cleanup_pipe | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References dt_dev_pixelpipe_iop_t::data.
void commit_params | ( | dt_iop_module_t * | self, |
dt_iop_params_t * | params, | ||
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References dt_iop_rawprepare_data_t::apply_gainmaps, check_gain_maps(), darktable, dt_dev_pixelpipe_iop_t::data, dt_iop_rawprepare_data_t::div, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEV_DETAIL_MASK_RAWPREPARE, DT_DEV_DETAIL_MASK_REQUIRED, DT_IMAGE_HDR, dt_image_is_rawprepare_supported(), DT_SIGNAL_METADATA_UPDATE, dt_dev_pixelpipe_iop_t::enabled, FALSE, FLAT_FIELD_EMBEDDED, dt_iop_rawprepare_data_t::gainmaps, dt_iop_rawprepare_data_t::height, dt_image_t::id, dt_dev_pixelpipe_t::image, image_is_normalized(), image_set_rawcrops(), dt_dev_pixelpipe_iop_t::pipe, dt_dev_pixelpipe_iop_t::process_tiling_ready, dt_iop_rawprepare_data_t::raw_black_level, dt_iop_rawprepare_data_t::raw_white_point, dt_iop_rawprepare_data_t::rawprepare, darktable_t::signals, dt_iop_rawprepare_data_t::sub, dt_iop_rawprepare_data_t::width, dt_iop_rawprepare_data_t::x, and dt_iop_rawprepare_data_t::y.
|
static |
References dt_dev_pixelpipe_iop_t::iscale, and dt_iop_roi_t::scale.
Referenced by process().
int default_colorspace | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References IOP_CS_RAW.
int default_group | ( | ) |
References IOP_GROUP_TECHNICAL.
const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
int distort_backtransform | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
float *const restrict | points, | ||
size_t | points_count | ||
) |
void distort_mask | ( | struct dt_iop_module_t * | self, |
struct dt_dev_pixelpipe_iop_t * | piece, | ||
const float *const | in, | ||
float *const | out, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
References dt_iop_copy_image_roi(), and TRUE.
int distort_transform | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
float *const restrict | points, | ||
size_t | points_count | ||
) |
int flags | ( | ) |
void gui_changed | ( | dt_iop_module_t * | self, |
GtkWidget * | w, | ||
void * | previous | ||
) |
void gui_init | ( | dt_iop_module_t * | self | ) |
void gui_update | ( | dt_iop_module_t * | self | ) |
|
static |
References dt_image_t::buf_dsc, dt_iop_buffer_dsc_t::channels, dt_iop_buffer_dsc_t::datatype, DT_IMAGE_HDR, f(), dt_image_t::flags, dt_image_t::raw_white_point, and TYPE_FLOAT.
Referenced by commit_params(), and reload_defaults().
|
static |
void init_global | ( | dt_iop_module_so_t * | self | ) |
References dt_iop_module_so_t::data, dt_opencl_create_kernel(), dt_iop_rawprepare_global_data_t::kernel_rawprepare_1f, dt_iop_rawprepare_global_data_t::kernel_rawprepare_1f_gainmap, dt_iop_rawprepare_global_data_t::kernel_rawprepare_1f_unnormalized, dt_iop_rawprepare_global_data_t::kernel_rawprepare_1f_unnormalized_gainmap, and dt_iop_rawprepare_global_data_t::kernel_rawprepare_4f.
void init_pipe | ( | 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 init_presets | ( | dt_iop_module_so_t * | self | ) |
int legacy_params | ( | dt_iop_module_t * | self, |
const void *const | old_params, | ||
const int | old_version, | ||
void * | new_params, | ||
const int | new_version | ||
) |
References FLAT_FIELD_OFF, height, width, and dt_iop_rawprepare_params_t::y.
void modify_roi_in | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const dt_iop_roi_t *const | roi_out, | ||
dt_iop_roi_t * | roi_in | ||
) |
void modify_roi_out | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
dt_iop_roi_t * | roi_out, | ||
const dt_iop_roi_t *const | roi_in | ||
) |
const char * name | ( | ) |
int operation_tags | ( | ) |
References IOP_TAG_DISTORT.
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 | ||
) |
References dt_dev_pixelpipe_iop_t::data, default_output_format(), dt_iop_buffer_dsc_t::raw_black_level, dt_iop_rawprepare_data_t::raw_black_level, dt_iop_buffer_dsc_t::raw_white_point, dt_iop_rawprepare_data_t::raw_white_point, dt_iop_buffer_dsc_t::rawprepare, and dt_iop_rawprepare_data_t::rawprepare.
Referenced by _sample_all(), _transform_from_to_rgb_lab_lcms2(), _transform_rgb_to_rgb_lcms2(), and commit_params().
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 adjust_xtrans_filters(), dt_iop_rawprepare_data_t::apply_gainmaps, BL(), dt_image_t::buf_dsc, dt_dev_pixelpipe_iop_t::buf_in, dt_iop_buffer_dsc_t::channels, dt_dev_pixelpipe_iop_t::colors, compute_proper_crop(), dt_dev_pixelpipe_iop_t::data, dt_iop_buffer_dsc_t::datatype, dt_iop_module_t::dev, dt_iop_rawprepare_data_t::div, dt_dev_pixelpipe_iop_t::dsc_in, DT_DEV_DETAIL_MASK_RAWPREPARE, dt_dev_write_rawdetail_mask(), dt_rawspeed_crop_dcraw_filters(), f(), dt_iop_buffer_dsc_t::filters, dt_iop_rawprepare_data_t::gainmaps, dt_iop_roi_t::height, dt_develop_t::image_storage, dt_dng_gain_map_t::map_gain, dt_dng_gain_map_t::map_origin_h, dt_dng_gain_map_t::map_origin_v, dt_dng_gain_map_t::map_points_h, dt_dng_gain_map_t::map_points_v, dt_dng_gain_map_t::map_spacing_h, dt_dng_gain_map_t::map_spacing_v, MIN, dt_dev_pixelpipe_iop_t::pipe, dt_iop_rawprepare_data_t::sub, TYPE_FLOAT, TYPE_UINT16, dt_iop_roi_t::width, dt_iop_roi_t::x, dt_iop_rawprepare_data_t::x, dt_iop_roi_t::y, and dt_iop_rawprepare_data_t::y.
void reload_defaults | ( | dt_iop_module_t * | self | ) |
References check_gain_maps(), dt_image_t::crop_height, dt_image_t::crop_width, dt_image_t::crop_x, dt_image_t::crop_y, dt_iop_module_t::default_enabled, dt_iop_module_t::default_params, dt_iop_module_t::dev, dt_image_is_rawprepare_supported(), FLAT_FIELD_EMBEDDED, FLAT_FIELD_OFF, dt_iop_module_t::hide_enable_button, image_is_normalized(), dt_develop_t::image_storage, dt_image_t::raw_black_level_separate, dt_image_t::raw_white_point, dt_iop_module_t::widget, and dt_iop_rawprepare_params_t::x.
const gchar* black_label[] |
Referenced by gui_init().