Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
focus.h File Reference
+ Include dependency graph for focus.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_focus_cluster_t
 

Macros

#define gbuf(BUF, A, B)   ((BUF)[4 * (width * ((B)) + ((A))) + ch])
 
#define FOCUS_THRS   10
 
#define CHANNEL   1
 

Typedefs

typedef struct dt_focus_cluster_t dt_focus_cluster_t
 

Functions

static uint8_t _to_uint8 (int i)
 
static int _from_uint8 (uint8_t i)
 
static void _dt_focus_cdf22_wtf (uint8_t *buf, const int l, const int width, const int height)
 
static void _dt_focus_update (dt_focus_cluster_t *f, int frows, int fcols, int i, int j, int wd, int ht, int diff)
 
static void dt_focus_create_clusters (dt_focus_cluster_t *focus, int frows, int fcols, uint8_t *buffer, int buffer_width, int buffer_height)
 
static void dt_focus_draw_clusters (cairo_t *cr, int width, int height, int32_t imgid, int buffer_width, int buffer_height, dt_focus_cluster_t *focus, int frows, int fcols, float full_zoom, float full_x, float full_y)
 

Macro Definition Documentation

◆ CHANNEL

#define CHANNEL   1

◆ FOCUS_THRS

#define FOCUS_THRS   10

◆ gbuf

#define gbuf (   BUF,
  A,
  B 
)    ((BUF)[4 * (width * ((B)) + ((A))) + ch])

Typedef Documentation

◆ dt_focus_cluster_t

Function Documentation

◆ _dt_focus_cdf22_wtf()

static void _dt_focus_cdf22_wtf ( uint8_t *  buf,
const int  l,
const int  width,
const int  height 
)
inlinestatic

◆ _dt_focus_update()

static void _dt_focus_update ( dt_focus_cluster_t f,
int  frows,
int  fcols,
int  i,
int  j,
int  wd,
int  ht,
int  diff 
)
static

References f(), FOCUS_THRS, and thrs.

Referenced by dt_focus_create_clusters().

◆ _from_uint8()

static int _from_uint8 ( uint8_t  i)
inlinestatic

◆ _to_uint8()

static uint8_t _to_uint8 ( int  i)
inlinestatic

Referenced by _dt_focus_cdf22_wtf().

◆ dt_focus_create_clusters()

static void dt_focus_create_clusters ( dt_focus_cluster_t focus,
int  frows,
int  fcols,
uint8_t *  buffer,
int  buffer_width,
int  buffer_height 
)
static

◆ dt_focus_draw_clusters()