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
static const dt_aligned_pixel_simd_t value
Testimg * testimg_gen_all_black(const int width, const int height)
void testimg_print_chan(const Testimg *const ti, const int chan_idx)
void testimg_free(Testimg *const ti)
Testimg * testimg_gen_grey_max_dr_neg()
float testimg_val_to_log(const float val)
Testimg * testimg_to_log(Testimg *ti)
Testimg * testimg_gen_all_white(const int width, const int height)
Testimg * testimg_gen_three_color_space(const int width)
Testimg * testimg_gen_grey_space(const int width)
void testimg_print_by_chan(const Testimg *const ti)
Testimg * testimg_gen_grey_with_rgb_clipping(const int width)
float * get_pixel(const Testimg *const ti, const int x, const int y)
Testimg * testimg_alloc(const int width, const int height)
void testimg_print_by_pixel(const Testimg *const ti)
Testimg * testimg_gen_grey_max_dr()
Testimg * testimg_gen_rgb_space(const int width)
Testimg * testimg_to_exp(Testimg *ti)
float testimg_val_to_exp(const float val)
Testimg * testimg_gen_single_color_space(const int width, const int color_index)
Testimg * testimg_gen_all_grey(const int width, const int height, const float value)