Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
histogram.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2014-2020 darktable developers.
4
5 darktable is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 darktable is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <stdint.h>
22
23#include "develop/imageop.h"
24#include "develop/pixelpipe.h"
25#include "common/iop_profile.h"
26
27/*
28 * histogram region of interest
29 *
30 * image is located in (0, 0) .. (width, height)
31 * but only (crop_x,crop_y) .. (width-crop_width,height-crop_height)
32 * will be sampled
33 */
38
40 const void *pixel, uint32_t *histogram, int j,
41 const dt_iop_order_iccprofile_info_t *const profile_info);
42
43typedef void((*dt_worker)(const dt_dev_histogram_collection_params_t *const histogram_params,
44 const void *pixel, uint32_t *histogram, int j,
45 const dt_iop_order_iccprofile_info_t *const profile_info));
46
48 dt_dev_histogram_stats_t *histogram_stats, const void *const pixel,
49 uint32_t **histogram, const dt_worker Worker,
50 const dt_iop_order_iccprofile_info_t *const profile_info);
51
53 dt_dev_histogram_stats_t *histogram_stats, const dt_iop_colorspace_type_t cst,
54 const dt_iop_colorspace_type_t cst_to, const void *pixel, uint32_t **histogram,
55 const int compensate_middle_grey, const dt_iop_order_iccprofile_info_t *const profile_info);
56
57void dt_histogram_max_helper(const dt_dev_histogram_stats_t *const histogram_stats,
59 uint32_t **histogram, uint32_t *histogram_max);
60
61// clang-format off
62// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
63// vim: shiftwidth=2 expandtab tabstop=2 cindent
64// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
65// clang-format on
66
dt_iop_colorspace_type_t
Definition color_conversion.h:24
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)
Definition common/histogram.c:396
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)
Definition common/histogram.c:308
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)
Definition common/histogram.c:365
void dt_histogram_helper_cs_RAW_uint16(const dt_dev_histogram_collection_params_t *histogram_params, const void *pixel, uint32_t *histogram, int j, const dt_iop_order_iccprofile_info_t *const profile_info)
Definition common/histogram.c:68
typedef void((*dt_worker)(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))
Definition pixelpipe.h:49
Definition pixelpipe.h:60
Definition histogram.h:35
int width
Definition histogram.h:36
int crop_x
Definition histogram.h:36
int height
Definition histogram.h:36
int crop_height
Definition histogram.h:36
int crop_y
Definition histogram.h:36
int crop_width
Definition histogram.h:36
Definition iop_profile.h:41