Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
profile_types.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010 Henrik Andersson.
4 Copyright (C) 2010-2012, 2017 johannes hanika.
5 Copyright (C) 2010 José Carlos García Sogo.
6 Copyright (C) 2011 Bruce Guenter.
7 Copyright (C) 2011 Robert Bieber.
8 Copyright (C) 2012, 2014 Pascal de Bruijn.
9 Copyright (C) 2012 Richard Wonka.
10 Copyright (C) 2013-2017 Tobias Ellinghaus.
11 Copyright (C) 2014, 2019-2022 Pascal Obry.
12 Copyright (C) 2014-2016 Roman Lebedev.
13 Copyright (C) 2014 Ulrich Pegelow.
14 Copyright (C) 2015-2016 Pedro Côrte-Real.
15 Copyright (C) 2018-2019 Edgardo Hoszowski.
16 Copyright (C) 2019 Philippe Weyland.
17 Copyright (C) 2020, 2022-2025 Aurélien PIERRE.
18 Copyright (C) 2020 Dan Torop.
19 Copyright (C) 2021 Hubert Kowalski.
20 Copyright (C) 2021 Miloš Komarčević.
21 Copyright (C) 2021 Ralf Brown.
22 Copyright (C) 2021 Sakari Kapanen.
23 Copyright (C) 2022 Martin Bařinka.
24 Copyright (C) 2023, 2025 Alynx Zhou.
25
26 darktable is free software: you can redistribute it and/or modify
27 it under the terms of the GNU General Public License as published by
28 the Free Software Foundation, either version 3 of the License, or
29 (at your option) any later version.
30
31 darktable is distributed in the hope that it will be useful,
32 but WITHOUT ANY WARRANTY; without even the implied warranty of
33 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 GNU General Public License for more details.
35
36 You should have received a copy of the GNU General Public License
37 along with darktable. If not, see <http://www.gnu.org/licenses/>.
38*/
39
40#ifndef DT_COLORPROFILES_PROFILE_TYPES_H
41#define DT_COLORPROFILES_PROFILE_TYPES_H
42
70#include <glib.h>
71
72#ifdef __cplusplus
73extern "C" {
74#endif
75
85#define DT_IOP_COLOR_ICC_LEN 512
86
87
113
135
245
261
314
331
351
369
387{
388 // Remap unused colorspaces to valid ones
389 if(colorspace == DT_COLORSPACE_DISPLAY2)
391 else
393}
394
419
420#ifdef __cplusplus
421}
422#endif
423
424#endif /* DT_COLORPROFILES_PROFILE_TYPES_H */
_lib_location_type_t type
Definition location.c:1
static dt_colorspaces_color_profile_type_t sanitize_colorspaces(dt_colorspaces_color_profile_type_t colorspace)
Coerce an integer read back from storage into a colour space this build still has.
dt_iop_color_intent_t
ICC rendering intent, as stored in iop params and in conf.
@ DT_INTENT_ABSOLUTE_COLORIMETRIC
@ DT_INTENT_RELATIVE_COLORIMETRIC
@ DT_INTENT_PERCEPTUAL
@ DT_INTENT_SATURATION
@ DT_INTENT_LAST
Count of real intents, and the codebase's "unset" marker – never a user choice.
dt_colorspaces_color_profile_type_t
@ DT_COLORSPACE_ADOBERGB
@ DT_COLORSPACE_PROPHOTO_RGB
@ DT_COLORSPACE_EMBEDDED_MATRIX
@ DT_COLORSPACE_EMBEDDED_ICC
Image-derived profiles: enum 9..14, NOT registered in the list.
@ DT_COLORSPACE_FILE
A user ICC file on disk; the only type whose filename is meaningful.
@ DT_COLORSPACE_DISPLAY
The monitor profile – the one list entry that mutates after init.
@ DT_COLORSPACE_SRGB
sRGB – registered TWICE, and the two entries are not interchangeable.
@ DT_COLORSPACE_INFRARED
@ DT_COLORSPACE_EXPORT
Category placeholders: "whatever the export/softproof/work setting currently says".
@ DT_COLORSPACE_LAB
@ DT_COLORSPACE_REC709
@ DT_COLORSPACE_HLG_P3
@ DT_COLORSPACE_PQ_P3
@ DT_COLORSPACE_PQ_REC2020
@ DT_COLORSPACE_DISPLAY2
Dead value, kept only because old params and conf keys contain it.
@ DT_COLORSPACE_NONE
No profile / "take it from the image settings". Never matches a list entry.
@ DT_COLORSPACE_HLG_REC2020
@ DT_COLORSPACE_WORK
@ DT_COLORSPACE_LAST
Count, not a colour space. The last usable value is DT_COLORSPACE_LAST - 1.
@ DT_COLORSPACE_ENHANCED_MATRIX
@ DT_COLORSPACE_LIN_REC2020
@ DT_COLORSPACE_DISPLAY_P3
@ DT_COLORSPACE_STANDARD_MATRIX
@ DT_COLORSPACE_XYZ
@ DT_COLORSPACE_BRG
@ DT_COLORSPACE_VENDOR_MATRIX
@ DT_COLORSPACE_SOFTPROOF
@ DT_COLORSPACE_ITUR_BT1886
@ DT_COLORSPACE_LIN_REC709
@ DT_COLORSPACE_ALTERNATE_MATRIX
dt_colorspaces_profile_type_t
Which of the five user-visible profile SLOTS a notification concerns.
@ DT_COLORSPACES_PROFILE_TYPE_DISPLAY
@ DT_COLORSPACES_PROFILE_TYPE_EXPORT
@ DT_COLORSPACES_PROFILE_TYPE_SOFTPROOF
@ DT_COLORSPACES_PROFILE_TYPE_INPUT
@ DT_COLORSPACES_PROFILE_TYPE_WORK
dt_colorspaces_profile_role_t
Which use a profile is eligible for – the mandatory filter on every lookup and enumeration.
@ DT_PROFILE_ROLE_OUTPUT
Listed in the output/export-profile combo (colorout, export).
@ DT_PROFILE_ROLE_INPUT
Listed in the input-profile combo (colorin).
@ DT_PROFILE_ROLE_WORKING
Listed in the working-profile combo (colorin).
@ DT_PROFILE_ROLE_MONITOR
Eligible for the monitor-profile menu.
@ DT_PROFILE_ROLE_ANY
All four roles, in registration order.
dt_colorspaces_cicp_transfer_characteristics_t
CICP transfer characteristics, as tagged in AVIF/HEIF/JPEG XL containers.
@ DT_CICP_TRANSFER_CHARACTERISTICS_UNSPECIFIED
@ DT_CICP_TRANSFER_CHARACTERISTICS_LINEAR
@ DT_CICP_TRANSFER_CHARACTERISTICS_HLG
@ DT_CICP_TRANSFER_CHARACTERISTICS_REC2020_12B
@ DT_CICP_TRANSFER_CHARACTERISTICS_REC709
@ DT_CICP_TRANSFER_CHARACTERISTICS_PQ
@ DT_CICP_TRANSFER_CHARACTERISTICS_REC2020_10B
@ DT_CICP_TRANSFER_CHARACTERISTICS_REC601
@ DT_CICP_TRANSFER_CHARACTERISTICS_SRGB
dt_colorspaces_color_mode_t
What the output transform is being asked to show: the picture, or a proof of it.
@ DT_PROFILE_GAMUTCHECK
@ DT_PROFILE_SOFTPROOF
@ DT_PROFILE_NORMAL
static gboolean dt_colorspaces_is_raw_matrix_profile_type(const dt_colorspaces_color_profile_type_t type)
Is this one of the four camera-matrix profile kinds?
dt_colorspaces_cicp_color_primaries_t
CICP colour primaries, as tagged in AVIF/HEIF/JPEG XL containers.
@ DT_CICP_COLOR_PRIMARIES_REC2020
@ DT_CICP_COLOR_PRIMARIES_UNSPECIFIED
@ DT_CICP_COLOR_PRIMARIES_P3
@ DT_CICP_COLOR_PRIMARIES_REC709
@ DT_CICP_COLOR_PRIMARIES_XYZ
dt_colorspaces_cicp_matrix_coefficients_t
CICP matrix coefficients, as tagged in AVIF/HEIF/JPEG XL containers.
@ DT_CICP_MATRIX_COEFFICIENTS_REC601
@ DT_CICP_MATRIX_COEFFICIENTS_REC2020_NCL
@ DT_CICP_MATRIX_COEFFICIENTS_UNSPECIFIED
@ DT_CICP_MATRIX_COEFFICIENTS_IDENTITY
@ DT_CICP_MATRIX_COEFFICIENTS_SYCC
@ DT_CICP_MATRIX_COEFFICIENTS_REC709
@ DT_CICP_MATRIX_COEFFICIENTS_CHROMA_DERIVED_NCL
#define MIN(a, b)
Definition thinplate.c:32