Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
develop/format.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010-2011 Henrik Andersson.
4 Copyright (C) 2010 johannes hanika.
5 Copyright (C) 2010 Pascal de Bruijn.
6 Copyright (C) 2012 Richard Wonka.
7 Copyright (C) 2013-2014 Jérémy Rosen.
8 Copyright (C) 2014-2015, 2020 Pascal Obry.
9 Copyright (C) 2015-2016 Tobias Ellinghaus.
10 Copyright (C) 2016 Roman Lebedev.
11 Copyright (C) 2018 Edgardo Hoszowski.
12 Copyright (C) 2020 Aurélien PIERRE.
13 Copyright (C) 2021 Ralf Brown.
14 Copyright (C) 2022 Martin Bařinka.
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 <stddef.h>
33#include <stdint.h>
34#include "common/darktable.h"
35
38struct dt_iop_module_t;
39
46
47typedef struct dt_iop_buffer_dsc_t
48{
50 unsigned int channels;
54 uint32_t filters;
56 uint8_t xtrans[6][6];
57
58 struct
59 {
63
64 struct
65 {
67 dt_aligned_pixel_t coeffs;
69
71 dt_aligned_pixel_t processed_maximum;
72
74 int cst;
75
77
78size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc);
79
80void default_input_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe,
81 struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc);
82
83void default_output_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe,
84 struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc);
85
86int default_input_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
87int default_output_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
88int default_blend_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
89
90
91// clang-format off
92// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
93// vim: shiftwidth=2 expandtab tabstop=2 cindent
94// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
95// clang-format on
void default_input_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:50
void default_output_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:68
size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:27
int default_input_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece)
Definition develop/format.c:86
int default_output_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece)
Definition develop/format.c:92
int default_blend_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece)
Definition develop/format.c:98
dt_iop_buffer_type_t
Definition develop/format.h:40
@ TYPE_FLOAT
Definition develop/format.h:42
@ TYPE_UNKNOWN
Definition develop/format.h:41
@ TYPE_UINT8
Definition develop/format.h:44
@ TYPE_UINT16
Definition develop/format.h:43
Definition pixelpipe_hb.h:58
Definition pixelpipe_hb.h:179
Definition develop/format.h:48
int cst
Definition develop/format.h:74
dt_aligned_pixel_t coeffs
Definition develop/format.h:67
uint32_t filters
Definition develop/format.h:54
struct dt_iop_buffer_dsc_t::@29 rawprepare
uint16_t raw_black_level
Definition develop/format.h:60
struct dt_iop_buffer_dsc_t::@30 temperature
unsigned int channels
Definition develop/format.h:50
uint8_t xtrans[6][6]
Definition develop/format.h:56
dt_iop_buffer_type_t datatype
Definition develop/format.h:52
int enabled
Definition develop/format.h:66
dt_aligned_pixel_t processed_maximum
Definition develop/format.h:71
uint16_t raw_white_point
Definition develop/format.h:61
Definition imageop.h:217