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) 2016-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 <stddef.h>
22#include <stdint.h>
23#include "common/darktable.h"
24
27struct dt_iop_module_t;
28
34
35typedef struct dt_iop_buffer_dsc_t
36{
38 unsigned int channels;
42 uint32_t filters;
44 uint8_t xtrans[6][6];
45
46 struct
47 {
51
52 struct
53 {
55 dt_aligned_pixel_t coeffs;
57
59 dt_aligned_pixel_t processed_maximum;
60
62 int cst;
63
65
66size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc);
67
68void default_input_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe,
69 struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc);
70
71void default_output_format(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe,
72 struct dt_dev_pixelpipe_iop_t *piece, struct dt_iop_buffer_dsc_t *dsc);
73
74int default_input_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
75int default_output_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
76int default_blend_colorspace(struct dt_iop_module_t *self, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece);
77
78
79// clang-format off
80// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
81// vim: shiftwidth=2 expandtab tabstop=2 cindent
82// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
83// clang-format on
84
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:42
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:60
size_t dt_iop_buffer_dsc_to_bpp(const struct dt_iop_buffer_dsc_t *dsc)
Definition develop/format.c:22
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:78
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:84
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:90
dt_iop_buffer_type_t
Definition develop/format.h:29
@ TYPE_FLOAT
Definition develop/format.h:31
@ TYPE_UNKNOWN
Definition develop/format.h:30
@ TYPE_UINT16
Definition develop/format.h:32
Definition pixelpipe_hb.h:46
Definition pixelpipe_hb.h:127
Definition develop/format.h:36
int cst
Definition develop/format.h:62
dt_aligned_pixel_t coeffs
Definition develop/format.h:55
uint32_t filters
Definition develop/format.h:42
uint16_t raw_black_level
Definition develop/format.h:48
unsigned int channels
Definition develop/format.h:38
struct dt_iop_buffer_dsc_t::@26 temperature
uint8_t xtrans[6][6]
Definition develop/format.h:44
dt_iop_buffer_type_t datatype
Definition develop/format.h:40
struct dt_iop_buffer_dsc_t::@25 rawprepare
int enabled
Definition develop/format.h:54
dt_aligned_pixel_t processed_maximum
Definition develop/format.h:59
uint16_t raw_white_point
Definition develop/format.h:49
Definition imageop.h:182