Verified Commit fa8c14bf authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

quickpreview: Add some headroom when sizing the preview

Since quick preview does only integer scaling, it may be
preferable to do slight upscaling when presenting the debayered
image rather than downscaling by almost 2x, so we can save some
parent ab5c75d4
Pipeline #69666 passed with stages
in 4 minutes and 32 seconds
......@@ -446,8 +446,8 @@ quick_preview_size(uint32_t *dst_width, uint32_t *dst_height, uint32_t *skip,
colors_y = tmp;
uint32_t scale_x = colors_x / preview_width;
uint32_t scale_y = colors_y / preview_height;
uint32_t scale_x = colors_x / (preview_width * 0.75);
uint32_t scale_y = colors_y / (preview_height * 0.75);
if (scale_x > 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment