Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
testimg.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "tracing.h"
#include "testimg.h"
+ Include dependency graph for testimg.c:

Macros

#define E   1e-6f
 

Functions

Testimgtestimg_alloc (const int width, const int height)
 
void testimg_free (Testimg *const ti)
 
void testimg_print_chan (const Testimg *const ti, 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

◆ E

#define E   1e-6f

Function Documentation

◆ 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,
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)