Skip to content

Commit

Permalink
Revert "Pixelpipe: remove the non-scale == 1 path for base buffer init"
Browse files Browse the repository at this point in the history
This reverts commit 23c7033.
  • Loading branch information
aurelienpierre committed Jul 14, 2024
1 parent 9a766eb commit 613da45
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/develop/pixelpipe_hb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,17 @@ static int _init_base_buffer(dt_dev_pixelpipe_t *pipe, dt_develop_t *dev, void *
return 1;
}
}
else if(bpp == 16)
{
// dt_iop_clip_and_zoom() expects 4 * float 32 only
roi_in->x /= roi_out->scale;
roi_in->y /= roi_out->scale;
roi_in->width = pipe->iwidth;
roi_in->height = pipe->iheight;
roi_in->scale = 1.0f;
dt_iop_clip_and_zoom(*output, pipe->input, roi_out, roi_in, roi_out->width, pipe->iwidth);
return 0;
}
else
{
fprintf(stdout,
Expand Down

0 comments on commit 613da45

Please sign in to comment.