Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
lut3d.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 darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef DT_PIXEL_LUT3D_H
20#define DT_PIXEL_LUT3D_H
21
22#include <stdint.h>
23#include <stdlib.h>
24
31
45void dt_lut3d_apply(const float *in, float *out, size_t pixel_nb, const float *clut, uint16_t level,
46 float normalization, dt_lut3d_interpolation_t interpolation);
47
48void dt_lut3d_tetrahedral_interp(const float *in, float *out, size_t pixel_nb, const float *clut,
49 uint16_t level, float normalization);
50void dt_lut3d_trilinear_interp(const float *in, float *out, size_t pixel_nb, const float *clut,
51 uint16_t level, float normalization);
52void dt_lut3d_pyramid_interp(const float *in, float *out, size_t pixel_nb, const float *clut,
53 uint16_t level, float normalization);
54#endif // DT_PIXEL_LUT3D_H
const dt_colormatrix_t dt_aligned_pixel_t out
dt_lut3d_interpolation_t
Definition lut3d.h:26
@ DT_LUT3D_INTERP_PYRAMID
Definition lut3d.h:29
@ DT_LUT3D_INTERP_TETRAHEDRAL
Definition lut3d.h:27
@ DT_LUT3D_INTERP_TRILINEAR
Definition lut3d.h:28
void dt_lut3d_trilinear_interp(const float *in, float *out, size_t pixel_nb, const float *clut, uint16_t level, float normalization)
void dt_lut3d_pyramid_interp(const float *in, float *out, size_t pixel_nb, const float *clut, uint16_t level, float normalization)
void dt_lut3d_apply(const float *in, float *out, size_t pixel_nb, const float *clut, uint16_t level, float normalization, dt_lut3d_interpolation_t interpolation)
Apply one interpolation model over a packed RGB CLUT.
void dt_lut3d_tetrahedral_interp(const float *in, float *out, size_t pixel_nb, const float *clut, uint16_t level, float normalization)