Skip to content

Commit 190010d

Browse files
jenshannoschwalmTurboGit
authored andcommitted
Verbosity of dt_print_pipe()
1. If roi_in and roi_out are both provided we report the roi_ount only if the rois differ for better log reading 2. minor formatting improvements for colorspace conversions
1 parent 472180b commit 190010d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/develop/pixelpipe_hb.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void dt_print_pipe_ext(const char *title,
131131
roi_in->x, roi_in->y, roi_in->width, roi_in->height, roi_in->scale);
132132
if(roi_out)
133133
{
134-
snprintf(roo, sizeof(roo),
134+
if(!roi_in || memcmp(roi_in, roi_out, sizeof(dt_iop_roi_t)))
135+
snprintf(roo, sizeof(roo),
135136
" --> (%4i/%4i) %4ix%4i scale=%.4f ",
136137
roi_out->x, roi_out->y, roi_out->width, roi_out->height, roi_out->scale);
137138
}
@@ -1249,7 +1250,7 @@ static gboolean _pixelpipe_process_on_CPU(dt_dev_pixelpipe_t *pipe,
12491250
{
12501251
dt_print_pipe(DT_DEBUG_PIPE,
12511252
"transform colorspace",
1252-
pipe, module, DT_DEVICE_CPU, roi_in, NULL, " %s -> %s `%s'",
1253+
pipe, module, DT_DEVICE_CPU, roi_in, NULL, "%s -> %s `%s'",
12531254
dt_iop_colorspace_to_name(cst_from),
12541255
dt_iop_colorspace_to_name(cst_to),
12551256
work_profile
@@ -1972,7 +1973,7 @@ static gboolean _dev_pixelpipe_process_rec(dt_dev_pixelpipe_t *pipe,
19721973
if(cst_from != cst_to)
19731974
dt_print_pipe(DT_DEBUG_PIPE,
19741975
"transform colorspace",
1975-
pipe, module, pipe->devid, &roi_in, NULL, " %s -> %s `%s'",
1976+
pipe, module, pipe->devid, &roi_in, NULL, "%s -> %s `%s'",
19761977
dt_iop_colorspace_to_name(cst_from),
19771978
dt_iop_colorspace_to_name(cst_to),
19781979
work_profile ? dt_colorspaces_get_name(work_profile->type, work_profile->filename) : "no work profile");
@@ -2312,7 +2313,7 @@ static gboolean _dev_pixelpipe_process_rec(dt_dev_pixelpipe_t *pipe,
23122313
if(cst_from != cst_to)
23132314
dt_print_pipe(DT_DEBUG_PIPE,
23142315
"transform colorspace",
2315-
pipe, module, pipe->devid, &roi_in, NULL, " %s -> %s",
2316+
pipe, module, pipe->devid, &roi_in, NULL, "%s -> %s",
23162317
dt_iop_colorspace_to_name(cst_from),
23172318
dt_iop_colorspace_to_name(cst_to));
23182319
dt_ioppr_transform_image_colorspace

0 commit comments

Comments
 (0)