Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
rawoverexposed.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 "caches/pixelpipe_cache_alloc.h"
#include "common/image.h"
#include "common/imagebuf.h"
#include "caches/mipmap_cache.h"
#include "common/opencl.h"
#include "control/user_message.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "develop/pixelpipe.h"
#include "develop/tiling.h"
#include "iop/iop_api.h"
#include <glib/gi18n.h>
#include <gtk/gtktypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for rawoverexposed.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_rawoverexposed_t
 
struct  dt_iop_rawoverexposed_data_t
 
struct  dt_iop_rawoverexposed_global_data_t
 

Typedefs

typedef struct dt_iop_rawoverexposed_t dt_iop_rawoverexposed_t
 
typedef struct dt_iop_rawoverexposed_data_t dt_iop_rawoverexposed_data_t
 
typedef struct dt_iop_rawoverexposed_global_data_t dt_iop_rawoverexposed_global_data_t
 

Functions

static const float dt_iop_rawoverexposed_colors[][4] __attribute__ ((aligned(64)))
 
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)
 
static __DT_CLONE_TARGETS__ void process_common_setup (const dt_iop_module_t *self, const dt_dev_pixelpipe_iop_t *piece, unsigned int threshold[4])
 
__DT_CLONE_TARGETS__ int process (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)
 
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)
 
void tiling_callback (struct dt_iop_module_t *self, const struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece, struct dt_develop_tiling_t *tiling)
 
void commit_params (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 (dt_iop_module_t *self __attribute__((unused)), dt_dev_pixelpipe_t *pipe __attribute__((unused)), const dt_dev_pixelpipe_iop_t *piece __attribute__((unused)))
 
void init_global (dt_iop_module_so_t *module)
 
void cleanup_global (dt_iop_module_so_t *module)
 
void init_pipe (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void cleanup_pipe (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void init (dt_iop_module_t *module)
 

Typedef Documentation

◆ dt_iop_rawoverexposed_data_t

◆ dt_iop_rawoverexposed_global_data_t

◆ dt_iop_rawoverexposed_t

Function Documentation

◆ __attribute__()

static const float dt_iop_rawoverexposed_colors[][4] __attribute__ ( (aligned(64))  )
static

◆ cleanup_global()

◆ cleanup_pipe()

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

Definition at line 505 of file rawoverexposed.c.

References dt_free_align, and piece.

◆ commit_params()

◆ 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 112 of file rawoverexposed.c.

References IOP_CS_RGB.

◆ default_group()

int default_group ( )

Definition at line 102 of file rawoverexposed.c.

References IOP_GROUP_TECHNICAL.

◆ flags()

◆ init()

void init ( dt_iop_module_t *  module)

Definition at line 511 of file rawoverexposed.c.

References dt_iop_set_cache_bypass(), and TRUE.

◆ init_global()

◆ init_pipe()

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

Definition at line 499 of file rawoverexposed.c.

References dt_calloc_align(), and piece.

◆ name()

const char * name ( )

Definition at line 97 of file rawoverexposed.c.

◆ process()

◆ process_cl()

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 
)

Definition at line 264 of file rawoverexposed.c.

References __OMP_PARALLEL_FOR_SIMD__, dt_mipmap_buffer_t::buf, color, d, dt_iop_module_t::dev, dt_dev_pixelpipe_t::devid, dt_image_t::dsc, dt_control_log(), DT_DEBUG_OPENCL, dt_dev_distort_backtransform_plus(), DT_DEV_RAWOVEREXPOSED_MODE_FALSECOLOR, DT_DEV_RAWOVEREXPOSED_MODE_MARK_CFA, DT_DEV_RAWOVEREXPOSED_MODE_MARK_SOLID, DT_DEV_TRANSFORM_DIR_BACK_INCL, DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_FULL, dt_opencl_alloc_device_buffer(), dt_opencl_copy_host_to_device(), dt_opencl_copy_host_to_device_constant(), dt_opencl_enqueue_copy_image(), dt_opencl_enqueue_kernel_2d(), dt_opencl_release_mem_object(), dt_opencl_set_kernel_arg(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align_cache, dt_pixelpipe_cache_free_align, dt_print(), error(), FALSE, dt_image_t::filename, dt_iop_buffer_dsc_t::filters, dt_iop_module_t::global_data, height, dt_mipmap_buffer_t::height, dt_iop_roi_t::height, i, dt_image_t::id, dt_develop_t::image_storage, dt_iop_module_t::iop_order, IS_NULL_PTR, kernel(), dt_iop_rawoverexposed_global_data_t::kernel_rawoverexposed_falsecolor, dt_iop_rawoverexposed_global_data_t::kernel_rawoverexposed_mark_cfa, dt_iop_rawoverexposed_global_data_t::kernel_rawoverexposed_mark_solid, piece, pipe, process_common_setup(), ROUNDUPDHT, ROUNDUPDWD, dt_iop_roi_t::scale, threshold, TRUE, dt_dev_pixelpipe_t::type, width, dt_mipmap_buffer_t::width, dt_iop_roi_t::width, dt_iop_roi_t::x, dt_iop_buffer_dsc_t::xtrans, and dt_iop_roi_t::y.

◆ process_common_setup()

static __DT_CLONE_TARGETS__ void process_common_setup ( const dt_iop_module_t *  self,
const dt_dev_pixelpipe_iop_t *  piece,
unsigned int  threshold[4] 
)
static

◆ runtime_data_hash()

gboolean runtime_data_hash ( dt_iop_module_t *self   __attribute__(unused),
dt_dev_pixelpipe_t *pipe   __attribute__(unused),
const dt_dev_pixelpipe_iop_t *piece   __attribute__(unused) 
)

Definition at line 472 of file rawoverexposed.c.

References TRUE.

◆ tiling_callback()

void tiling_callback ( struct dt_iop_module_t *  self,
const struct dt_dev_pixelpipe_t *  pipe,
const struct dt_dev_pixelpipe_iop_t *  piece,
struct dt_develop_tiling_t *  tiling 
)