![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <assert.h>
#include <stdlib.h>
#include "common/colorspaces_inline_conversions.h"
#include "common/darktable.h"
#include "common/histogram.h"
#include "develop/imageop.h"
Macros | |
#define | S(V, params) ((params->mul) * ((float)V)) |
#define | P(V, params) (CLAMP((V), 0, (params->bins_count - 1))) |
#define | PU(V, params) (MIN((V), (params->bins_count - 1))) |
#define | PS(V, params) (P(S(V, params), params)) |
Functions | |
static void | histogram_helper_cs_RAW_helper_process_pixel_float (const dt_dev_histogram_collection_params_t *const histogram_params, const float *pixel, uint32_t *histogram) |
static void | histogram_helper_cs_RAW (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
static void | histogram_helper_cs_RAW_helper_process_pixel_uint16 (const dt_dev_histogram_collection_params_t *const histogram_params, const uint16_t *pixel, uint32_t *histogram) |
void | dt_histogram_helper_cs_RAW_uint16 (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
static void | __attribute__ ((__unused__)) |
static void | histogram_helper_cs_rgb (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
static void | histogram_helper_cs_rgb_compensated (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
static void | histogram_helper_cs_Lab (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
static void | histogram_helper_cs_Lab_LCh (const dt_dev_histogram_collection_params_t *const histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info) |
void | dt_histogram_worker (dt_dev_histogram_collection_params_t *const histogram_params, dt_dev_histogram_stats_t *histogram_stats, const void *const pixel, uint32_t **histogram, const dt_worker Worker, const dt_iop_order_iccprofile_info_t *const profile_info) |
void | dt_histogram_helper (dt_dev_histogram_collection_params_t *histogram_params, dt_dev_histogram_stats_t *histogram_stats, const dt_iop_colorspace_type_t cst, const dt_iop_colorspace_type_t cst_to, const void *pixel, uint32_t **histogram, const int compensate_middle_grey, const dt_iop_order_iccprofile_info_t *const profile_info) |
void | dt_histogram_max_helper (const dt_dev_histogram_stats_t *const histogram_stats, const dt_iop_colorspace_type_t cst, const dt_iop_colorspace_type_t cst_to, uint32_t **histogram, uint32_t *histogram_max) |
#define P | ( | V, | |
params | |||
) | (CLAMP((V), 0, (params->bins_count - 1))) |
#define PU | ( | V, | |
params | |||
) | (MIN((V), (params->bins_count - 1))) |
#define S | ( | V, | |
params | |||
) | ((params->mul) * ((float)V)) |
void dt_histogram_helper | ( | dt_dev_histogram_collection_params_t * | histogram_params, |
dt_dev_histogram_stats_t * | histogram_stats, | ||
const dt_iop_colorspace_type_t | cst, | ||
const dt_iop_colorspace_type_t | cst_to, | ||
const void * | pixel, | ||
uint32_t ** | histogram, | ||
const int | compensate_middle_grey, | ||
const dt_iop_order_iccprofile_info_t *const | profile_info | ||
) |
References dt_dev_histogram_stats_t::ch, dt_histogram_worker(), histogram_helper_cs_Lab(), histogram_helper_cs_Lab_LCh(), histogram_helper_cs_RAW(), histogram_helper_cs_rgb(), histogram_helper_cs_rgb_compensated(), IOP_CS_LAB, IOP_CS_LCH, IOP_CS_RAW, and IOP_CS_RGB.
Referenced by histogram_collect().
|
inline |
void dt_histogram_max_helper | ( | const dt_dev_histogram_stats_t *const | histogram_stats, |
const dt_iop_colorspace_type_t | cst, | ||
const dt_iop_colorspace_type_t | cst_to, | ||
uint32_t ** | histogram, | ||
uint32_t * | histogram_max | ||
) |
References dt_dev_histogram_stats_t::bins_count, IOP_CS_LAB, IOP_CS_LCH, IOP_CS_RAW, and IOP_CS_RGB.
Referenced by histogram_collect().
void dt_histogram_worker | ( | dt_dev_histogram_collection_params_t *const | histogram_params, |
dt_dev_histogram_stats_t * | histogram_stats, | ||
const void *const | pixel, | ||
uint32_t ** | histogram, | ||
const dt_worker | Worker, | ||
const dt_iop_order_iccprofile_info_t *const | profile_info | ||
) |
References dt_dev_histogram_collection_params_t::bins_count, dt_dev_histogram_stats_t::bins_count, dt_histogram_roi_t::crop_height, dt_histogram_roi_t::crop_width, dt_histogram_roi_t::crop_x, dt_histogram_roi_t::crop_y, double(), dt_histogram_roi_t::height, dt_dev_histogram_collection_params_t::mul, omp_get_max_threads, omp_get_thread_num, dt_dev_histogram_stats_t::pixels, dt_dev_histogram_collection_params_t::roi, and dt_histogram_roi_t::width.
Referenced by _deflicker_prepare_histogram(), and dt_histogram_helper().
|
inlinestatic |
|
inlinestatic |
References dt_histogram_roi_t::crop_width, dt_histogram_roi_t::crop_x, dt_dev_histogram_collection_params_t::roi, and dt_histogram_roi_t::width.
Referenced by dt_histogram_helper().
|
inlinestatic |
|
inlinestatic |
References PS.
Referenced by histogram_helper_cs_RAW().
|
inlinestatic |
References PU.
Referenced by dt_histogram_helper_cs_RAW_uint16().
|
inlinestatic |
|
inlinestatic |