Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
module.h File Reference

Private drawlayer module types and lightweight shared helpers. More...

#include "iop/drawlayer/runtime.h"
#include <math.h>
+ Include dependency graph for iop/drawlayer/module.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_iop_drawlayer_data_t
 

Macros

#define DRAWLAYER_WORKER_RING_CAPACITY   65536
 
#define DRAWLAYER_COMPARE_ANALYTIC_TIMINGS   1
 

Typedefs

typedef enum drawlayer_mapping_profile_t drawlayer_mapping_profile_t
 
typedef enum drawlayer_input_map_flag_t drawlayer_input_map_flag_t
 
typedef enum drawlayer_preview_bg_mode_t drawlayer_preview_bg_mode_t
 
typedef enum drawlayer_pick_source_t drawlayer_pick_source_t
 
typedef dt_drawlayer_cache_patch_t drawlayer_patch_t
 
typedef struct dt_iop_drawlayer_data_t dt_iop_drawlayer_data_t
 

Enumerations

enum  drawlayer_mapping_profile_t {
  DRAWLAYER_PROFILE_LINEAR = 0 ,
  DRAWLAYER_PROFILE_QUADRATIC = 1 ,
  DRAWLAYER_PROFILE_SQRT = 2 ,
  DRAWLAYER_PROFILE_INV_LINEAR = 3 ,
  DRAWLAYER_PROFILE_INV_SQRT = 4 ,
  DRAWLAYER_PROFILE_INV_QUADRATIC = 5
}
 
enum  drawlayer_input_map_flag_t {
  DRAWLAYER_INPUT_MAP_PRESSURE_SIZE = 1u << 0 ,
  DRAWLAYER_INPUT_MAP_PRESSURE_OPACITY = 1u << 1 ,
  DRAWLAYER_INPUT_MAP_PRESSURE_FLOW = 1u << 2 ,
  DRAWLAYER_INPUT_MAP_PRESSURE_SOFTNESS = 1u << 3 ,
  DRAWLAYER_INPUT_MAP_TILT_SIZE = 1u << 4 ,
  DRAWLAYER_INPUT_MAP_TILT_OPACITY = 1u << 5 ,
  DRAWLAYER_INPUT_MAP_TILT_FLOW = 1u << 6 ,
  DRAWLAYER_INPUT_MAP_TILT_SOFTNESS = 1u << 7 ,
  DRAWLAYER_INPUT_MAP_ACCEL_SIZE = 1u << 8 ,
  DRAWLAYER_INPUT_MAP_ACCEL_OPACITY = 1u << 9 ,
  DRAWLAYER_INPUT_MAP_ACCEL_FLOW = 1u << 10 ,
  DRAWLAYER_INPUT_MAP_ACCEL_SOFTNESS = 1u << 11
}
 
enum  drawlayer_preview_bg_mode_t {
  DRAWLAYER_PREVIEW_BG_IMAGE = 0 ,
  DRAWLAYER_PREVIEW_BG_WHITE = 1 ,
  DRAWLAYER_PREVIEW_BG_GREY = 2 ,
  DRAWLAYER_PREVIEW_BG_BLACK = 3
}
 
enum  drawlayer_pick_source_t {
  DRAWLAYER_PICK_SOURCE_INPUT = 0 ,
  DRAWLAYER_PICK_SOURCE_OUTPUT = 1
}
 

Functions

static float _clamp01 (const float value)
 
static float _mapping_profile_value (const drawlayer_mapping_profile_t profile, const float x)
 

Detailed Description

Private drawlayer module types and lightweight shared helpers.

Macro Definition Documentation

◆ DRAWLAYER_COMPARE_ANALYTIC_TIMINGS

#define DRAWLAYER_COMPARE_ANALYTIC_TIMINGS   1

◆ DRAWLAYER_WORKER_RING_CAPACITY

#define DRAWLAYER_WORKER_RING_CAPACITY   65536

Typedef Documentation

◆ drawlayer_input_map_flag_t

◆ drawlayer_mapping_profile_t

◆ drawlayer_patch_t

◆ drawlayer_pick_source_t

◆ drawlayer_preview_bg_mode_t

◆ dt_iop_drawlayer_data_t

Enumeration Type Documentation

◆ drawlayer_input_map_flag_t

Enumerator
DRAWLAYER_INPUT_MAP_PRESSURE_SIZE 
DRAWLAYER_INPUT_MAP_PRESSURE_OPACITY 
DRAWLAYER_INPUT_MAP_PRESSURE_FLOW 
DRAWLAYER_INPUT_MAP_PRESSURE_SOFTNESS 
DRAWLAYER_INPUT_MAP_TILT_SIZE 
DRAWLAYER_INPUT_MAP_TILT_OPACITY 
DRAWLAYER_INPUT_MAP_TILT_FLOW 
DRAWLAYER_INPUT_MAP_TILT_SOFTNESS 
DRAWLAYER_INPUT_MAP_ACCEL_SIZE 
DRAWLAYER_INPUT_MAP_ACCEL_OPACITY 
DRAWLAYER_INPUT_MAP_ACCEL_FLOW 
DRAWLAYER_INPUT_MAP_ACCEL_SOFTNESS 

◆ drawlayer_mapping_profile_t

Enumerator
DRAWLAYER_PROFILE_LINEAR 
DRAWLAYER_PROFILE_QUADRATIC 
DRAWLAYER_PROFILE_SQRT 
DRAWLAYER_PROFILE_INV_LINEAR 
DRAWLAYER_PROFILE_INV_SQRT 
DRAWLAYER_PROFILE_INV_QUADRATIC 

◆ drawlayer_pick_source_t

Enumerator
DRAWLAYER_PICK_SOURCE_INPUT 
DRAWLAYER_PICK_SOURCE_OUTPUT 

◆ drawlayer_preview_bg_mode_t

Enumerator
DRAWLAYER_PREVIEW_BG_IMAGE 
DRAWLAYER_PREVIEW_BG_WHITE 
DRAWLAYER_PREVIEW_BG_GREY 
DRAWLAYER_PREVIEW_BG_BLACK 

Function Documentation

◆ _clamp01()

static float _clamp01 ( const float  value)
inlinestatic

References value.

Referenced by _mapping_profile_value().

◆ _mapping_profile_value()