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

Go to the source code of this file.

Data Structures

struct  Testimg
 

Macros

#define TESTIMG_STD_DYN_RANGE_EV   15
 
#define TESTIMG_STD_WIDTH   (TESTIMG_STD_DYN_RANGE_EV + 1)
 
#define TESTIMG_STD_HEIGHT   (TESTIMG_STD_DYN_RANGE_EV + 1)
 
#define for_testimg_pixels_p_xy(ti)
 
#define for_testimg_pixels_p_yx(ti)
 
#define testimg_print   testimg_print_by_pixel
 

Typedefs

typedef struct Testimg Testimg
 

Functions

Testimgtestimg_alloc (const int width, const int height)
 
void testimg_free (Testimg *const ti)
 
float * get_pixel (const Testimg *const ti, const int x, const int y)
 
void testimg_print_chan (const Testimg *const ti, const int chan_idx)
 
void testimg_print_by_chan (const Testimg *const ti)
 
void testimg_print_by_pixel (const Testimg *const ti)
 
Testimgtestimg_to_log (Testimg *ti)
 
float testimg_val_to_log (const float val)
 
Testimgtestimg_to_exp (Testimg *ti)
 
float testimg_val_to_exp (const float val)
 
Testimgtestimg_gen_all_grey (const int width, const int height, const float value)
 
Testimgtestimg_gen_all_black (const int width, const int height)
 
Testimgtestimg_gen_all_white (const int width, const int height)
 
Testimgtestimg_gen_grey_space (const int width)
 
Testimgtestimg_gen_single_color_space (const int width, const int color_index)
 
Testimgtestimg_gen_three_color_space (const int width)
 
Testimgtestimg_gen_rgb_space (const int width)
 
Testimgtestimg_gen_grey_max_dr ()
 
Testimgtestimg_gen_grey_max_dr_neg ()
 
Testimgtestimg_gen_grey_with_rgb_clipping (const int width)
 

Macro Definition Documentation

◆ for_testimg_pixels_p_xy

#define for_testimg_pixels_p_xy (   ti)
Value:
for (int x=0, y=0; x<ti->width; x+=1, y=0)\
for (float *p=get_pixel(ti, x, y); y<ti->height; y+=1, p=get_pixel(ti, x, y))
float * get_pixel(const Testimg *const ti, const int x, const int y)
Definition testimg.h:57

◆ for_testimg_pixels_p_yx

#define for_testimg_pixels_p_yx (   ti)
Value:
for (int y=0, x=0; y<ti->height; y+=1, x=0)\
for (float *p=get_pixel(ti, x, y); x<ti->width; x+=1, p=get_pixel(ti, x, y))

◆ testimg_print

#define testimg_print   testimg_print_by_pixel

◆ TESTIMG_STD_DYN_RANGE_EV

#define TESTIMG_STD_DYN_RANGE_EV   15

◆ TESTIMG_STD_HEIGHT

#define TESTIMG_STD_HEIGHT   (TESTIMG_STD_DYN_RANGE_EV + 1)

◆ TESTIMG_STD_WIDTH

#define TESTIMG_STD_WIDTH   (TESTIMG_STD_DYN_RANGE_EV + 1)

Typedef Documentation

◆ Testimg

typedef struct Testimg Testimg

Function Documentation

◆ get_pixel()

float * get_pixel ( const Testimg *const  ti,
const int  x,
const int  y 
)
inline

◆ testimg_alloc()

◆ testimg_free()

◆ testimg_gen_all_black()

Testimg * testimg_gen_all_black ( const int  width,
const int  height 
)

◆ testimg_gen_all_grey()

Testimg * testimg_gen_all_grey ( const int  width,
const int  height,
const float  value 
)

◆ testimg_gen_all_white()

Testimg * testimg_gen_all_white ( const int  width,
const int  height 
)

◆ testimg_gen_grey_max_dr()

◆ testimg_gen_grey_max_dr_neg()

◆ testimg_gen_grey_space()

◆ testimg_gen_grey_with_rgb_clipping()

Testimg * testimg_gen_grey_with_rgb_clipping ( const int  width)

◆ testimg_gen_rgb_space()

◆ testimg_gen_single_color_space()

Testimg * testimg_gen_single_color_space ( const int  width,
const int  color_index 
)

◆ testimg_gen_three_color_space()

Testimg * testimg_gen_three_color_space ( const int  width)

◆ testimg_print_by_chan()

void testimg_print_by_chan ( const Testimg *const  ti)

◆ testimg_print_by_pixel()

void testimg_print_by_pixel ( const Testimg *const  ti)

◆ testimg_print_chan()

void testimg_print_chan ( const Testimg *const  ti,
const int  chan_idx 
)

◆ testimg_to_exp()

Testimg * testimg_to_exp ( Testimg ti)

◆ testimg_to_log()

Testimg * testimg_to_log ( Testimg ti)

◆ testimg_val_to_exp()

◆ testimg_val_to_log()

float testimg_val_to_log ( const float  val)