Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
eaw.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2020-2021 Ralf Brown.
4 Copyright (C) 2022 Martin Baƙinka.
5
6 darktable is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 darktable is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with darktable. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef DT_PIXEL_EAW_H
21#define DT_PIXEL_EAW_H
22
23#include <stdint.h>
24#include <stdlib.h>
25#include "system/simd.h"
26
27typedef void((*eaw_decompose_t)(float *const restrict out, const float *const restrict in, float *const restrict detail,
28 const int scale, const float sharpen, const int32_t width, const int32_t height));
29
30typedef void((*eaw_synthesize_t)(float *const out, const float *const in, const float *const restrict detail,
31 const float *const restrict thrsf, const float *const restrict boostf,
32 const int32_t width, const int32_t height));
33
34void eaw_decompose(float *const restrict out, const float *const restrict in, float *const restrict detail,
35 const int scale, const float sharpen, const int32_t width, const int32_t height) ;
36void eaw_synthesize(float *const restrict out, const float *const restrict in, const float *const restrict detail,
37 const float *const restrict thrsf, const float *const restrict boostf,
38 const int32_t width, const int32_t height);
39
40void eaw_decompose_sse2(float *const restrict out, const float *const restrict in, float *const restrict detail,
41 const int scale, const float sharpen, const int32_t width, const int32_t height);
42void eaw_synthesize_sse2(float *const restrict out, const float *const restrict in, const float *const restrict detail,
43 const float *const restrict thrsf, const float *const restrict boostf,
44 const int32_t width, const int32_t height);
45
46typedef void((*eaw_dn_decompose_t)(float *const restrict out, const float *const restrict in, float *const restrict detail,
47 dt_aligned_pixel_t sum_squared, const int scale, const float inv_sigma2,
48 const int32_t width, const int32_t height));
49
50void eaw_dn_decompose(float *const restrict out, const float *const restrict in, float *const restrict detail,
51 dt_aligned_pixel_t sum_squared, const int scale, const float inv_sigma2,
52 const int32_t width, const int32_t height);
53void eaw_dn_decompose_sse(float *const restrict out, const float *const restrict in, float *const restrict detail,
54 dt_aligned_pixel_t sum_squared, const int scale, const float inv_sigma2,
55 const int32_t width, const int32_t height);
56
57#endif // DT_PIXEL_EAW_H
58
59// clang-format off
60// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
61// vim: shiftwidth=2 expandtab tabstop=2 cindent
62// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
63// clang-format on
64
const dt_colormatrix_t dt_aligned_pixel_t out
void eaw_dn_decompose_sse(float *const restrict out, const float *const restrict in, float *const restrict detail, dt_aligned_pixel_t sum_squared, const int scale, const float inv_sigma2, const int32_t width, const int32_t height)
void eaw_decompose(float *const restrict out, const float *const restrict in, float *const restrict detail, const int scale, const float sharpen, const int32_t width, const int32_t height)
Definition eaw.c:79
void eaw_synthesize_sse2(float *const restrict out, const float *const restrict in, const float *const restrict detail, const float *const restrict thrsf, const float *const restrict boostf, const int32_t width, const int32_t height)
void eaw_synthesize(float *const restrict out, const float *const restrict in, const float *const restrict detail, const float *const restrict thrsf, const float *const restrict boostf, const int32_t width, const int32_t height)
void eaw_decompose_sse2(float *const restrict out, const float *const restrict in, float *const restrict detail, const int scale, const float sharpen, const int32_t width, const int32_t height)
void eaw_dn_decompose(float *const restrict out, const float *const restrict in, float *const restrict detail, dt_aligned_pixel_t sum_squared, const int scale, const float inv_sigma2, const int32_t width, const int32_t height)
Definition eaw.c:242
typedef void((*eaw_decompose_t)(float *const restrict out, const float *const restrict in, float *const restrict detail, const int scale, const float sharpen, const int32_t width, const int32_t height))
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