Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
colorpicker.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2011 Robert Bieber.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2014, 2016 Tobias Ellinghaus.
6 Copyright (C) 2016 Roman Lebedev.
7 Copyright (C) 2019 Edgardo Hoszowski.
8 Copyright (C) 2019-2020 Pascal Obry.
9 Copyright (C) 2020 Diederik Ter Rahe.
10 Copyright (C) 2021 Dan Torop.
11 Copyright (C) 2021 Mark-64.
12 Copyright (C) 2021 Ralf Brown.
13 Copyright (C) 2022 Martin Baƙinka.
14 Copyright (C) 2023 Alynx Zhou.
15
16 darktable is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 darktable is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with darktable. If not, see <http://www.gnu.org/licenses/>.
28*/
29
30#pragma once
31
32#include <gtk/gtk.h>
33#include <inttypes.h>
34
40
48
50
53{
55 // For the primary sample, these are the current sample area,
56 // whether from colorpicker lib or an iop. They are used for showing
57 // the sample in the center view, and sampling in the pixelpipe.
58 // Coordinates are stored canonically in normalized RAW space.
59 // Callers operating in processed/image space need to convert with
60 // dt_dev_coordinates_raw_norm_to_image_norm().
61 float point[2];
64 // NOTE: only applies to live samples
65 gboolean locked;
66
68 // picked color in display profile, as picked from preview pixelpipe
70 // picked color converted display profile -> histogram profile (currently did
71 // nothing because we dropped histogram profile)
73 // picked color converted display profile -> Lab
75 // in scope profile with current statistic
76 int label_rgb[4];
77 // in display profile with current statistic
78 GdkRGBA swatch;
79
92 char backbuf_op[32];
93
99
100
101// clang-format off
102// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
103// vim: shiftwidth=2 expandtab tabstop=2 cindent
104// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
105// clang-format on
dt_lib_colorpicker_statistic_t
Definition colorpicker.h:42
@ DT_LIB_COLORPICKER_STATISTIC_MAX
Definition colorpicker.h:45
@ DT_LIB_COLORPICKER_STATISTIC_N
Definition colorpicker.h:46
@ DT_LIB_COLORPICKER_STATISTIC_MIN
Definition colorpicker.h:44
@ DT_LIB_COLORPICKER_STATISTIC_MEAN
Definition colorpicker.h:43
dt_lib_colorpicker_size_t
Definition colorpicker.h:36
@ DT_LIB_COLORPICKER_SIZE_POINT
Definition colorpicker.h:37
@ DT_LIB_COLORPICKER_SIZE_BOX
Definition colorpicker.h:38
dt_aligned_pixel_t lib_colorpicker_sample_statistics[DT_LIB_COLORPICKER_STATISTIC_N]
Definition colorpicker.h:49
float dt_boundingbox_t[4]
Definition darktable.h:709
float dt_aligned_pixel_t[4]
struct _GtkWidget GtkWidget
Definition splash.h:29
lib_colorpicker_sample_statistics display
Definition colorpicker.h:69
dt_lib_colorpicker_size_t size
Definition colorpicker.h:63
lib_colorpicker_sample_statistics scope
Definition colorpicker.h:72
char backbuf_op[32]
Global histogram stage backing this live sample.
Definition colorpicker.h:92
dt_boundingbox_t box
Definition colorpicker.h:62
lib_colorpicker_sample_statistics lab
Definition colorpicker.h:74