Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_filmicrgb.c File Reference
#include <limits.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <math.h>
#include <cmocka.h>
#include "../util/assert.h"
#include "../util/tracing.h"
#include "../util/testimg.h"
#include "iop/filmicrgb.c"
+ Include dependency graph for test_filmicrgb.c:

Macros

#define E   1e-6f
 

Functions

void __wrap_dt_iop_color_picker_reset (dt_iop_module_t *module, gboolean update)
 
static void test_name (void **state)
 
static void test_default_group (void **state)
 
static void test_clamp_simd (void **state)
 
static void test_pixel_rgb_norm_power (void **state)
 
static void test_get_pixel_norm (void **state)
 
static void test_log_tonemapping_v2 (void **state)
 
static void test_filmic_spline (void **state)
 
static float saturation_gui_to_internal (float saturation_percent)
 
static void test_filmic_desaturate_v1 (void **state)
 
static void test_linear_saturation (void **state)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ E

#define E   1e-6f

Function Documentation

◆ __wrap_dt_iop_color_picker_reset()

void __wrap_dt_iop_color_picker_reset ( dt_iop_module_t module,
gboolean  update 
)

References update().

◆ main()

int main ( int  argc,
char *  argv[] 
)
Todo:
: test if file with replaced ext exists
Todo:
: add a callback to set the bpp without going through the config
Todo:
: have a parameter in command line to get the export presets

References E, test_clamp_simd(), test_default_group(), test_filmic_desaturate_v1(), test_filmic_spline(), test_get_pixel_norm(), test_linear_saturation(), test_log_tonemapping_v2(), test_name(), test_pixel_rgb_norm_power(), and TR_DEBUG.

◆ saturation_gui_to_internal()

static float saturation_gui_to_internal ( float  saturation_percent)
static
Todo:
: there is a flaw in conversion of saturation from gui value to

References TR_BUG.

Referenced by test_filmic_desaturate_v1().

◆ test_clamp_simd()

static void test_clamp_simd ( void **  state)
static

References assert_float_equal, clamp_simd(), and E.

Referenced by main().

◆ test_default_group()

static void test_default_group ( void **  state)
static

References default_group(), IOP_GROUP_TECHNICAL, and IOP_GROUP_TONES.

Referenced by main().

◆ test_filmic_desaturate_v1()

◆ test_filmic_spline()

static void test_filmic_spline ( void **  state)
static
Todo:
: write tests for the method test_filmic_spline

References TR_NOTE.

Referenced by main().

◆ test_get_pixel_norm()

static void test_get_pixel_norm ( void **  state)
static

◆ test_linear_saturation()

◆ test_log_tonemapping_v2()

◆ test_name()

static void test_name ( void **  state)
static

References name.

Referenced by main().

◆ test_pixel_rgb_norm_power()