Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
overexposed.c File Reference
#include "develop/imageop_gui.h"
#include <stdlib.h>
#include <cairo.h>
#include "common/opencl.h"
#include "develop/iop_profile.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "develop/tiling.h"
#include "iop/iop_api.h"
+ Include dependency graph for overexposed.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_overexposed_global_data_t
 
struct  dt_iop_overexposed_t
 
struct  dt_iop_overexposed_data_t
 

Typedefs

typedef enum dt_iop_overexposed_colorscheme_t dt_iop_overexposed_colorscheme_t
 
typedef struct dt_iop_overexposed_global_data_t dt_iop_overexposed_global_data_t
 
typedef struct dt_iop_overexposed_t dt_iop_overexposed_t
 
typedef struct dt_iop_overexposed_data_t dt_iop_overexposed_data_t
 

Enumerations

enum  dt_iop_overexposed_colorscheme_t {
  DT_IOP_OVEREXPOSED_BLACKWHITE = 0 ,
  DT_IOP_OVEREXPOSED_REDBLUE = 1 ,
  DT_IOP_OVEREXPOSED_PURPLEGREEN = 2
}
 

Functions

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)
 
int legacy_params (dt_iop_module_t *self, const void *const old_params, const int old_version, void *new_params, const int new_version)
 
__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)
 
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 init_global (dt_iop_module_so_t *module)
 
void cleanup_global (dt_iop_module_so_t *module)
 
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 __attribute__((unused)), dt_dev_pixelpipe_t *pipe __attribute__((unused)), const dt_dev_pixelpipe_iop_t *piece __attribute__((unused)))
 
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)
 

Variables

static const float DT_ALIGNED_ARRAY dt_iop_overexposed_colors [][2][4]
 

Typedef Documentation

◆ dt_iop_overexposed_colorscheme_t

◆ dt_iop_overexposed_data_t

◆ dt_iop_overexposed_global_data_t

◆ dt_iop_overexposed_t

Enumeration Type Documentation

◆ dt_iop_overexposed_colorscheme_t

Enumerator
DT_IOP_OVEREXPOSED_BLACKWHITE 
DT_IOP_OVEREXPOSED_REDBLUE 
DT_IOP_OVEREXPOSED_PURPLEGREEN 

Definition at line 73 of file overexposed.c.

Function Documentation

◆ cleanup_global()

◆ cleanup_pipe()

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

Definition at line 428 of file overexposed.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 131 of file overexposed.c.

References IOP_CS_RGB.

◆ default_group()

int default_group ( )

Definition at line 121 of file overexposed.c.

References IOP_GROUP_TECHNICAL.

◆ flags()

int flags ( )

◆ init()

void init ( dt_iop_module_t *  module)

Definition at line 434 of file overexposed.c.

References dt_iop_set_cache_bypass(), and TRUE.

◆ 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 
)

Definition at line 422 of file overexposed.c.

References dt_calloc_align(), and piece.

◆ 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 
)

Definition at line 137 of file overexposed.c.

◆ name()

const char * name ( )

Definition at line 116 of file overexposed.c.

◆ process()

◆ process_cl()

◆ runtime_data_hash()

gboolean runtime_data_hash ( struct 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 415 of file overexposed.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 
)
Todo:
: check if that's sufficiently large

Definition at line 371 of file overexposed.c.

Variable Documentation

◆ dt_iop_overexposed_colors

const float DT_ALIGNED_ARRAY dt_iop_overexposed_colors[][2][4]
static
Initial value:
= { {
{ 0.0f, 0.0f, 0.0f, 1.0f },
{ 1.0f, 1.0f, 1.0f, 1.0f }
},
{
{ 1.0f, 0.0f, 0.0f, 1.0f },
{ 0.0f, 0.0f, 1.0f, 1.0f }
},
{
{ 0.371f, 0.434f, 0.934f, 1.0f },
{ 0.512f, 0.934f, 0.371f, 1.0f }
} }

Definition at line 80 of file overexposed.c.

Referenced by process(), and process_cl().