Ensure decoding remains sequential for all ops #3725

This commit is contained in:
Lovell Fuller
2023-07-12 11:35:59 +01:00
parent 16ea04fe80
commit bcd865cc96
4 changed files with 46 additions and 30 deletions

View File

@@ -370,6 +370,11 @@ namespace sharp {
std::pair<double, double> ResolveShrink(int width, int height, int targetWidth, int targetHeight,
Canvas canvas, bool swap, bool withoutEnlargement, bool withoutReduction);
/*
Ensure decoding remains sequential.
*/
VImage StaySequential(VImage image, VipsAccess access, bool condition = TRUE);
} // namespace sharp
#endif // SRC_COMMON_H_