summaryrefslogtreecommitdiff
path: root/backend/escl/escl_crop.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-06-09 14:27:53 +0200
committerJörg Frings-Fürst <debian@jff.email>2025-06-09 14:27:53 +0200
commit115d2beab18fae48374bb3dc8603a0c48df58ce1 (patch)
tree7e1920e7f69782aec0d4813963c3601d62a757c1 /backend/escl/escl_crop.c
parenta0fd2a8557d28ec8e7bbf881f78daf7e8e8fbd6b (diff)
parent1f3f1e7d112f051f22fe7fc82739b483cef09b2a (diff)
Merge branch 'feature/upstream' into developdevelop
Diffstat (limited to 'backend/escl/escl_crop.c')
-rw-r--r--backend/escl/escl_crop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/escl/escl_crop.c b/backend/escl/escl_crop.c
index 59284ac..a7e0fa0 100644
--- a/backend/escl/escl_crop.c
+++ b/backend/escl/escl_crop.c
@@ -44,7 +44,7 @@ escl_crop_surface(capabilities_t *scanner,
int real_h = 0;
unsigned char *surface_crop = NULL;
- DBG( 1, "Escl Image Crop\n");
+ DBG( 10, "Escl Image Crop\n");
ratio = (double)w / (double)scanner->caps[scanner->source].width;
scanner->caps[scanner->source].width = w;
if (scanner->caps[scanner->source].pos_x < 0)
@@ -62,18 +62,18 @@ escl_crop_surface(capabilities_t *scanner,
y_off = (int)((double)scanner->caps[scanner->source].pos_y * ratio);
real_h = scanner->caps[scanner->source].height - y_off;
- DBG( 1, "Escl Image Crop [%dx%d|%dx%d]\n", scanner->caps[scanner->source].pos_x, scanner->caps[scanner->source].pos_y,
+ DBG( 10, "Escl Image Crop [%dx%d|%dx%d]\n", scanner->caps[scanner->source].pos_x, scanner->caps[scanner->source].pos_y,
scanner->caps[scanner->source].width, scanner->caps[scanner->source].height);
*width = real_w;
*height = real_h;
- DBG( 1, "Escl Image Crop [%dx%d]\n", *width, *height);
+ DBG( 10, "Escl Image Crop [%dx%d]\n", *width, *height);
if (x_off > 0 || real_w < scanner->caps[scanner->source].width ||
y_off > 0 || real_h < scanner->caps[scanner->source].height) {
surface_crop = (unsigned char *)malloc (sizeof (unsigned char) * real_w
* real_h * bps);
if(!surface_crop) {
- DBG( 1, "Escl Crop : Surface_crop Memory allocation problem\n");
+ DBG( 10, "Escl Crop : Surface_crop Memory allocation problem\n");
free(surface);
surface = NULL;
goto finish;