Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
masks_debug.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
42#ifndef DT_DEVELOP_MASKS_DEBUG_H
43#define DT_DEVELOP_MASKS_DEBUG_H
44
45#include <glib.h>
46
47struct dt_develop_t;
48struct dt_masks_form_t;
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
61
71
81float *dt_masks_debug_rasterise(struct dt_develop_t *dev, struct dt_masks_form_t *form,
82 int width, int height);
83
89gboolean dt_masks_debug_write_png(struct dt_develop_t *dev, struct dt_masks_form_t *form,
90 const dt_masks_debug_request_t *request, const char *path);
91
101gboolean dt_masks_debug_write_outline_csv(struct dt_develop_t *dev, struct dt_masks_form_t *form,
102 const char *path);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif // DT_DEVELOP_MASKS_DEBUG_H
109
110// clang-format off
111// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
112// vim: shiftwidth=2 expandtab tabstop=2 cindent
113// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
114// clang-format on
gboolean dt_masks_debug_write_png(struct dt_develop_t *dev, struct dt_masks_form_t *form, const dt_masks_debug_request_t *request, const char *path)
Render form per request and write it to path as a PNG.
Definition masks_gui.c:5910
dt_masks_debug_backdrop_t
What the overlay is drawn on top of.
Definition masks_debug.h:56
@ DT_MASKS_DEBUG_BACKDROP_TRANSPARENT
Definition masks_debug.h:57
@ DT_MASKS_DEBUG_BACKDROP_RASTER
Definition masks_debug.h:59
@ DT_MASKS_DEBUG_BACKDROP_BLACK
Definition masks_debug.h:58
gboolean dt_masks_debug_write_outline_csv(struct dt_develop_t *dev, struct dt_masks_form_t *form, const char *path)
Write the shape's outline buffers to path as CSV: index, centreline, border.
Definition masks_debug.c:87
float * dt_masks_debug_rasterise(struct dt_develop_t *dev, struct dt_masks_form_t *form, int width, int height)
Rasterise form into a freshly allocated width*height float buffer, 0..1.
Definition masks_debug.c:37
uint32_t width
Definition mipmap_cache.c:0
uint32_t height
Definition mipmap_cache.c:1
What to render. Zeroed means: raster only, at full image resolution, on black.
Definition masks_debug.h:64
dt_masks_debug_backdrop_t backdrop
Definition masks_debug.h:67