41#define TESTIMG_STD_DYN_RANGE_EV 15
44#define TESTIMG_STD_WIDTH (TESTIMG_STD_DYN_RANGE_EV + 1)
45#define TESTIMG_STD_HEIGHT (TESTIMG_STD_DYN_RANGE_EV + 1)
66#define for_testimg_pixels_p_xy(ti) \
67 for (int x=0, y=0; x<ti->width; x+=1, y=0)\
68 for (float *p=get_pixel(ti, x, y); y<ti->height; y+=1, p=get_pixel(ti, x, y))
71#define for_testimg_pixels_p_yx(ti) \
72 for (int y=0, x=0; y<ti->height; y+=1, x=0)\
73 for (float *p=get_pixel(ti, x, y); x<ti->width; x+=1, p=get_pixel(ti, x, y))
90#define testimg_print testimg_print_by_pixel
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
static const dt_aligned_pixel_simd_t value
Definition darktable.h:501
static const float x
Definition iop_profile.h:239
int width
Definition testimg.h:29
const char * name
Definition testimg.h:32
float * pixels
Definition testimg.h:31
int height
Definition testimg.h:30
Testimg * testimg_gen_all_black(const int width, const int height)
Definition testimg.c:144
void testimg_print_chan(const Testimg *const ti, const int chan_idx)
Definition testimg.c:51
void testimg_free(Testimg *const ti)
Definition testimg.c:45
Testimg * testimg_gen_grey_max_dr_neg()
Definition testimg.c:249
float testimg_val_to_log(const float val)
Definition testimg.c:109
Testimg * testimg_to_log(Testimg *ti)
Definition testimg.c:97
Testimg * testimg_gen_all_white(const int width, const int height)
Definition testimg.c:151
Testimg * testimg_gen_three_color_space(const int width)
Definition testimg.c:186
Testimg * testimg_gen_grey_space(const int width)
Definition testimg.c:158
void testimg_print_by_chan(const Testimg *const ti)
Definition testimg.c:67
Testimg * testimg_gen_grey_with_rgb_clipping(const int width)
Definition testimg.c:270
float * get_pixel(const Testimg *const ti, const int x, const int y)
Definition testimg.h:59
Testimg * testimg_alloc(const int width, const int height)
Definition testimg.c:35
void testimg_print_by_pixel(const Testimg *const ti)
Definition testimg.c:77
Testimg * testimg_gen_grey_max_dr()
Definition testimg.c:223
Testimg * testimg_gen_rgb_space(const int width)
Definition testimg.c:200
Testimg * testimg_to_exp(Testimg *ti)
Definition testimg.c:114
float testimg_val_to_exp(const float val)
Definition testimg.c:126
Testimg * testimg_gen_single_color_space(const int width, const int color_index)
Definition testimg.c:172
Testimg * testimg_gen_all_grey(const int width, const int height, const float value)
Definition testimg.c:131