![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <lcms2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "colorchart.h"
Macros | |
#define | MAX_LINE_LENGTH 512 |
#define | ERROR |
#define | SCALE_X(x) x = (x - x_min) / result->bb_w |
#define | SCALE_Y(y) y = (y - y_min) / result->bb_h |
Typedefs | |
typedef enum parser_state_t | parser_state_t |
Enumerations | |
enum | parser_state_t { BLOCK_NONE = 0 , BLOCK_BOXES , BLOCK_BOX_SHRINK , BLOCK_REF_ROTATION , BLOCK_XLIST , BLOCK_YLIST , BLOCK_EXPECTED } |
Functions | |
void | free_chart (chart_t *chart) |
static char * | parse_string (char **c) |
static double | parse_double (char **c) |
static int | strinc (char *label, size_t buffer_size) |
void | checker_set_color (box_t *box, dt_colorspaces_color_profile_type_t color_space, float c0, float c1, float c2) |
static void | free_labels_list (gpointer data) |
chart_t * | parse_cht (const char *filename) |
int | parse_it8 (const char *filename, chart_t *chart) |
#define ERROR |
#define MAX_LINE_LENGTH 512 |
#define SCALE_X | ( | x | ) | x = (x - x_min) / result->bb_w |
#define SCALE_Y | ( | y | ) | y = (y - y_min) / result->bb_h |
typedef enum parser_state_t parser_state_t |
enum parser_state_t |
void checker_set_color | ( | box_t * | box, |
dt_colorspaces_color_profile_type_t | color_space, | ||
float | c0, | ||
float | c1, | ||
float | c2 | ||
) |
References c1, c2, box_t::color, box_t::color_space, color_space, DT_COLORSPACE_LAB, DT_COLORSPACE_NONE, DT_COLORSPACE_XYZ, dt_Lab_to_XYZ(), dt_XYZ_to_sRGB_clipped(), Lab(), and box_t::rgb.
Referenced by collect_reference_patches_foreach(), collect_source_patches_foreach(), parse_cht(), and parse_it8().
References chart_t::box_table, chart_t::d_table, chart_t::f_list, and chart_t::patch_sets.
Referenced by main(), open_cht(), and parse_cht().
|
static |
Referenced by parse_cht().
chart_t * parse_cht | ( | const char * | filename | ) |
References chart_t::bb_h, chart_t::bb_w, BLOCK_BOX_SHRINK, BLOCK_BOXES, BLOCK_EXPECTED, BLOCK_NONE, BLOCK_REF_ROTATION, BLOCK_XLIST, BLOCK_YLIST, chart_t::box_shrink, chart_t::box_table, c1, c2, checker_set_color(), box_t::color_space, color_space, chart_t::d_table, DT_COLORSPACE_LAB, DT_COLORSPACE_NONE, DT_COLORSPACE_XYZ, ERROR, error(), f(), chart_t::f_list, free_chart(), free_labels_list(), box_t::h, key, MAX, MAX_LINE_LENGTH, MIN, f_line_t::p, box_t::p, parse_double(), parse_string(), chart_t::patch_sets, chart_t::ref_rotation, SCALE_X, SCALE_Y, strinc(), box_t::w, point_t::x, and point_t::y.
Referenced by open_cht().
|
static |
Referenced by parse_cht().
int parse_it8 | ( | const char * | filename, |
chart_t * | chart | ||
) |
References chart_t::box_table, checker_set_color(), color_space, DT_COLORSPACE_LAB, DT_COLORSPACE_NONE, DT_COLORSPACE_XYZ, error(), and key.
Referenced by open_it8().
|
static |
Referenced by parse_cht().
|
static |
Referenced by parse_cht().