Simplify StaySequential operation (#4074)

This commit is contained in:
Kleis Auke Wolthuizen
2024-04-19 15:47:49 +02:00
committed by GitHub
parent 36e60bf040
commit aa8bc19362
4 changed files with 20 additions and 21 deletions

View File

@@ -155,7 +155,7 @@ namespace sharp {
return image.conv(blur);
} else {
// Slower, accurate Gaussian blur
return StaySequential(image, VIPS_ACCESS_SEQUENTIAL).gaussblur(sigma);
return StaySequential(image).gaussblur(sigma);
}
}
@@ -386,7 +386,7 @@ namespace sharp {
pages.reserve(nPages);
// Split the image into cropped frames
image = StaySequential(image, VIPS_ACCESS_SEQUENTIAL);
image = StaySequential(image);
for (int i = 0; i < nPages; i++) {
pages.push_back(
image.extract_area(left, *pageHeight * i + top, width, height));