![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/colorspaces_inline_conversions.h"#include "common/imagebuf.h"#include "develop/blend.h"#include "develop/imageop.h"#include "develop/openmp_maths.h"#include <math.h>
Include dependency graph for blendif_rgb_jzczhz.c:Macros | |
| #define | DT_BLENDIF_RGB_CH 4 |
| #define | DT_BLENDIF_RGB_BCH 3 |
Typedefs | |
| typedef void() | _blend_row_func(const float *const restrict a, const float *const restrict b, const float p, float *const restrict out, const float *const restrict mask, const size_t stride) |
Functions | |
| static float | _blendif_compute_factor (const float value, const unsigned int invert_mask, const float *const restrict parameters) |
| __OMP_DECLARE_SIMD__ (aligned(pixels:16) uniform(parameters, invert_mask, stride, profile)) | |
| __OMP_DECLARE_SIMD__ (aligned(pixels:16) uniform(parameters, invert_mask, stride)) | |
| __OMP_DECLARE_SIMD__ (aligned(pixels, invert_mask:16) uniform(parameters, invert_mask, stride, profile)) | |
| __OMP_DECLARE_SIMD__ (aligned(pixels:16) uniform(stride, blendif, parameters, profile)) | |
| void | dt_develop_blendif_rgb_jzczhz_make_mask (const struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece, const float *const restrict a, const float *const restrict b, float *const restrict mask) |
| __OMP_DECLARE_SIMD__ (aligned(a, b, out:16) uniform(p, stride)) | |
| static _blend_row_func * | _choose_blend_func (const unsigned int blend_mode) |
| __OMP_DECLARE_SIMD__ (aligned(rgb:16) uniform(profile)) | |
| __OMP_DECLARE_SIMD__ (aligned(rgb, JzCzhz:16) uniform(profile)) | |
| __OMP_DECLARE_SIMD__ (aligned(a, b:16) uniform(channel, profile, stride)) | |
| __OMP_DECLARE_SIMD__ (aligned(a, b:16) uniform(stride)) | |
| void | dt_develop_blendif_rgb_jzczhz_blend (const struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece, const float *const restrict a, float *const restrict b, const float *const restrict mask, const dt_dev_pixelpipe_display_mask_t request_mask_display) |
| #define DT_BLENDIF_RGB_BCH 3 |
| #define DT_BLENDIF_RGB_CH 4 |
| typedef void() _blend_row_func(const float *const restrict a, const float *const restrict b, const float p, float *const restrict out, const float *const restrict mask, const size_t stride) |
| __OMP_DECLARE_SIMD__ | ( | aligned(a, b, out:16) uniform(p, stride) | ) |
References DT_BLENDIF_RGB_BCH, DT_BLENDIF_RGB_CH, i, k, and out.
| __OMP_DECLARE_SIMD__ | ( | aligned(a, b:16) uniform(channel, profile, stride) | ) |
References clamp_simd(), DEVELOP_BLENDIF_BLUE_in, DEVELOP_BLENDIF_BLUE_out, DEVELOP_BLENDIF_Cz_in, DEVELOP_BLENDIF_Cz_out, DEVELOP_BLENDIF_GRAY_in, DEVELOP_BLENDIF_GRAY_out, DEVELOP_BLENDIF_GREEN_in, DEVELOP_BLENDIF_GREEN_out, DEVELOP_BLENDIF_Jz_in, DEVELOP_BLENDIF_Jz_out, DEVELOP_BLENDIF_RED_in, DEVELOP_BLENDIF_RED_out, DT_BLENDIF_RGB_BCH, DT_BLENDIF_RGB_CH, DT_DEV_PIXELPIPE_DISPLAY_B, DT_DEV_PIXELPIPE_DISPLAY_G, DT_DEV_PIXELPIPE_DISPLAY_GRAY, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Cz, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_hz, DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Jz, DT_DEV_PIXELPIPE_DISPLAY_OUTPUT, DT_DEV_PIXELPIPE_DISPLAY_R, factor, i, and k.
| __OMP_DECLARE_SIMD__ | ( | aligned(a, b:16) uniform(stride) | ) |
References __OMP_SIMD__, DT_BLENDIF_RGB_BCH, DT_BLENDIF_RGB_CH, and x.
| __OMP_DECLARE_SIMD__ | ( | aligned(pixels, invert_mask:16) uniform(parameters, invert_mask, stride, profile) | ) |
References _blendif_compute_factor(), DEVELOP_BLENDIF_PARAMETER_ITEMS, DT_BLENDIF_RGB_CH, factor, i, JzAzBz, x, and XYZ_D65.
| __OMP_DECLARE_SIMD__ | ( | aligned(pixels:16) uniform(parameters, invert_mask, stride) | ) |
References _blendif_compute_factor(), DT_BLENDIF_RGB_CH, and x.
| __OMP_DECLARE_SIMD__ | ( | aligned(pixels:16) uniform(parameters, invert_mask, stride, profile) | ) |
References _blendif_compute_factor(), DT_BLENDIF_RGB_CH, value, and x.
| __OMP_DECLARE_SIMD__ | ( | aligned(pixels:16) uniform(stride, blendif, parameters, profile) | ) |
| __OMP_DECLARE_SIMD__ | ( | aligned(rgb, JzCzhz:16) uniform(profile) | ) |
References IS_NULL_PTR, JzAzBz, rgb, and XYZ_D65.
| __OMP_DECLARE_SIMD__ | ( | aligned(rgb:16) uniform(profile) | ) |
References IS_NULL_PTR, rgb, and value.
|
inlinestatic |
Referenced by __OMP_DECLARE_SIMD__(), __OMP_DECLARE_SIMD__(), and __OMP_DECLARE_SIMD__().
|
static |
References DEVELOP_BLEND_ADD, DEVELOP_BLEND_AVERAGE, DEVELOP_BLEND_CHROMATICITY, DEVELOP_BLEND_DIFFERENCE, DEVELOP_BLEND_DIFFERENCE2, DEVELOP_BLEND_DIVIDE, DEVELOP_BLEND_DIVIDE_INVERSE, DEVELOP_BLEND_GEOMETRIC_MEAN, DEVELOP_BLEND_HARMONIC_MEAN, DEVELOP_BLEND_LIGHTNESS, DEVELOP_BLEND_MODE_MASK, DEVELOP_BLEND_MULTIPLY, DEVELOP_BLEND_RGB_B, DEVELOP_BLEND_RGB_G, DEVELOP_BLEND_RGB_R, DEVELOP_BLEND_SUBTRACT, and DEVELOP_BLEND_SUBTRACT_INVERSE.
Referenced by dt_develop_blendif_rgb_jzczhz_blend().
| void dt_develop_blendif_rgb_jzczhz_blend | ( | const struct dt_dev_pixelpipe_t * | pipe, |
| const struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const float *const restrict | a, | ||
| float *const restrict | b, | ||
| const float *const restrict | mask, | ||
| const dt_dev_pixelpipe_display_mask_t | request_mask_display | ||
| ) |
References __OMP_PARALLEL_FOR__, _choose_blend_func(), dt_dev_pixelpipe_iop_t::blendop_data, dt_iop_buffer_dsc_t::channels, d, DEVELOP_BLEND_CS_RGB_SCENE, DEVELOP_BLEND_REVERSE, dt_dev_pixelpipe_iop_t::dsc_in, DT_BLENDIF_RGB_CH, DT_DEV_PIXELPIPE_DISPLAY_ANY, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_develop_blendif_init_masking_profile(), dt_iop_image_copy(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_iop_roi_t::height, IS_NULL_PTR, dt_dev_pixelpipe_t::mask_display, p, dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
| void dt_develop_blendif_rgb_jzczhz_make_mask | ( | const struct dt_dev_pixelpipe_t * | pipe, |
| const struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const float *const restrict | a, | ||
| const float *const restrict | b, | ||
| float *const restrict | mask | ||
| ) |
References __OMP_FOR__, __OMP_FOR_SIMD__, __OMP_PARALLEL__, __OMP_PARALLEL_FOR_SIMD__, dt_dev_pixelpipe_iop_t::blendop_data, dt_iop_buffer_dsc_t::channels, clamp_simd(), d, DEVELOP_BLEND_CS_RGB_SCENE, DEVELOP_BLENDIF_GRAY_out, DEVELOP_BLENDIF_PARAMETER_ITEMS, DEVELOP_BLENDIF_RGB_MASK, DEVELOP_BLENDIF_SIZE, DEVELOP_COMBINE_INCL, DEVELOP_COMBINE_INV, DEVELOP_MASK_CONDITIONAL, dt_dev_pixelpipe_iop_t::dsc_in, DT_ALIGNED_ARRAY, DT_BLENDIF_RGB_CH, dt_develop_blendif_init_masking_profile(), dt_develop_blendif_process_parameters(), dt_iop_image_fill(), dt_iop_image_mul_const(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_iop_roi_t::height, IS_NULL_PTR, dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_roi_t::width, x, dt_iop_roi_t::x, and dt_iop_roi_t::y.