Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
masks_detail.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel,
3 Copyright (C) 2026 Aurélien PIERRE.
4
5 Ansel 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 Ansel 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 Ansel. If not, see <http://www.gnu.org/licenses/>.
17*/
18
38#ifndef DT_DEVELOP_MASKS_DETAIL_H
39#define DT_DEVELOP_MASKS_DETAIL_H
40
41#include <glib.h>
42
43#include "system/simd.h" // dt_aligned_pixel_t
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
51void dt_masks_extend_border(float *const mask, const int width, const int height, const int border);
52
54void dt_masks_blur_9x9_coeff(float *coeffs, const float sigma);
55
57void dt_masks_blur_9x9(float *const src, float *const out, const int width, const int height,
58 const float sigma);
59
62void dt_masks_calc_rawdetail_mask(float *const src, float *const out, float *const tmp,
63 const int width, const int height, const dt_aligned_pixel_t wb);
64
67void dt_masks_calc_detail_mask(float *const src, float *const out, float *const tmp, const int width,
68 const int height, const float threshold, const gboolean detail);
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif // DT_DEVELOP_MASKS_DETAIL_H
75
76// clang-format off
77// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
78// vim: shiftwidth=2 expandtab tabstop=2 cindent
79// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
80// clang-format on
const float threshold
const dt_colormatrix_t dt_aligned_pixel_t out
void dt_masks_blur_9x9(float *const src, float *const out, const int width, const int height, const float sigma)
void dt_masks_calc_detail_mask(float *const src, float *const out, float *const tmp, const int width, const int height, const float threshold, const gboolean detail)
void dt_masks_blur_9x9_coeff(float *coeffs, const float sigma)
Definition detail.c:165
void dt_masks_calc_rawdetail_mask(float *const src, float *const out, float *const tmp, const int width, const int height, const dt_aligned_pixel_t wb)
void dt_masks_extend_border(float *const mask, const int width, const int height, const int border)
uint32_t width
Definition mipmap_cache.c:0
uint32_t height
Definition mipmap_cache.c:1
DT_ALIGNED_PIXEL float dt_aligned_pixel_t[4]
Definition simd.h:53
const float sigma