mirror of
https://github.com/lovell/sharp.git
synced 2026-02-16 03:16:16 +01:00
Ensure decoding remains sequential for all ops #3725
This commit is contained in:
@@ -1035,4 +1035,13 @@ namespace sharp {
|
||||
return std::make_pair(hshrink, vshrink);
|
||||
}
|
||||
|
||||
/*
|
||||
Ensure decoding remains sequential.
|
||||
*/
|
||||
VImage StaySequential(VImage image, VipsAccess access, bool condition) {
|
||||
if (access == VIPS_ACCESS_SEQUENTIAL && condition) {
|
||||
return image.copy_memory();
|
||||
}
|
||||
return image;
|
||||
}
|
||||
} // namespace sharp
|
||||
|
||||
Reference in New Issue
Block a user