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 size_t bpp;
56 uint32_t filters;
58 uint8_t xtrans[6][6];
59
60 struct
61 {
65
66 struct
67 {
69 dt_aligned_pixel_t coeffs;
71
73 dt_aligned_pixel_t processed_maximum;
74
76 int cst;
77
79
81size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc);
82
83void default_input_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
86void default_output_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe,
87 struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc);
88
89int default_blend_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece);
90
91
92// clang-format off
93// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
94// vim: shiftwidth=2 expandtab tabstop=2 cindent
95// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
96// 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:56
int default_blend_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece)
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:74
void dt_iop_buffer_dsc_update_bpp(struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:27
size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:51
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:95
Definition pixelpipe_hb.h:216
Definition develop/format.h:48
struct dt_iop_buffer_dsc_t::@16 rawprepare
int cst
Definition develop/format.h:76
dt_aligned_pixel_t coeffs
Definition develop/format.h:69
uint32_t filters
Definition develop/format.h:56
uint16_t raw_black_level
Definition develop/format.h:62
unsigned int channels
Definition develop/format.h:50
size_t bpp
Definition develop/format.h:54
uint8_t xtrans[6][6]
Definition develop/format.h:58
struct dt_iop_buffer_dsc_t::@17 temperature
dt_iop_buffer_type_t datatype
Definition develop/format.h:52
int enabled
Definition develop/format.h:68
dt_aligned_pixel_t processed_maximum
Definition develop/format.h:73
uint16_t raw_white_point
Definition develop/format.h:63
Definition imageop.h:216