Build format-specific input options in a single function

This commit is contained in:
Lovell Fuller
2025-06-17 10:15:40 +01:00
parent 76995deefa
commit e286e2bff9
3 changed files with 45 additions and 90 deletions

View File

@@ -221,14 +221,9 @@ namespace sharp {
ImageType DetermineImageType(char const *file);
/*
Does this image type support multiple pages?
Format-specific options builder
*/
bool ImageTypeSupportsPage(ImageType imageType);
/*
Does this image type support removal of safety limits?
*/
bool ImageTypeSupportsUnlimited(ImageType imageType);
vips::VOption* GetOptionsForImageType(ImageType imageType, InputDescriptor *descriptor);
/*
Open an image from the given InputDescriptor (filesystem, compressed buffer, raw pixel data)