Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions src/common/iop_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,16 +1183,15 @@ gchar *dt_ioppr_get_location_tooltip(const char *subdir, const char *for_name)
}

__DT_CLONE_TARGETS__
void dt_ioppr_transform_image_colorspace
(struct dt_iop_module_t *self,
const float *const image_in,
float *const image_out,
const int width,
const int height,
const int cst_from,
const int cst_to,
int *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info)
void dt_ioppr_transform_image_colorspace(struct dt_iop_module_t *self,
const float *const image_in,
float *const image_out,
const int width,
const int height,
const dt_iop_colorspace_type_t cst_from,
const dt_iop_colorspace_type_t cst_to,
dt_iop_colorspace_type_t *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info)
{
const gboolean inplace = image_in == image_out;

Expand Down Expand Up @@ -1473,17 +1472,16 @@ void dt_ioppr_free_iccprofile_params_cl(dt_colorspaces_iccprofile_info_cl_t **_p
*_dev_profile_lut = NULL;
}

gboolean dt_ioppr_transform_image_colorspace_cl
(struct dt_iop_module_t *self,
const int devid,
cl_mem dev_img_in,
cl_mem dev_img_out,
const int width,
const int height,
const int cst_from,
const int cst_to,
int *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info)
gboolean dt_ioppr_transform_image_colorspace_cl(struct dt_iop_module_t *self,
const int devid,
cl_mem dev_img_in,
cl_mem dev_img_out,
const int width,
const int height,
const dt_iop_colorspace_type_t cst_from,
const dt_iop_colorspace_type_t cst_to,
dt_iop_colorspace_type_t *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info)
{
cl_int err = CL_SUCCESS;

Expand Down
12 changes: 6 additions & 6 deletions src/common/iop_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ void dt_ioppr_transform_image_colorspace
float *const image_out,
const int width,
const int height,
const int cst_from,
const int cst_to,
int *converted_cst,
const dt_iop_colorspace_type_t cst_from,
const dt_iop_colorspace_type_t cst_to,
dt_iop_colorspace_type_t *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info);

void dt_ioppr_transform_image_colorspace_rgb
Expand Down Expand Up @@ -222,9 +222,9 @@ gboolean dt_ioppr_transform_image_colorspace_cl
cl_mem dev_img_out,
const int width,
const int height,
const int cst_from,
const int cst_to,
int *converted_cst,
const dt_iop_colorspace_type_t cst_from,
const dt_iop_colorspace_type_t cst_to,
dt_iop_colorspace_type_t *converted_cst,
const dt_iop_order_iccprofile_info_t *const profile_info);

gboolean dt_ioppr_transform_image_colorspace_rgb_cl
Expand Down
Loading
Loading