Improve thread safety with copy-on-write for metadata #1986

This commit is contained in:
Lovell Fuller
2019-11-27 23:15:56 +00:00
parent 6ee6a226e1
commit bb15cd9067
4 changed files with 29 additions and 18 deletions

View File

@@ -175,12 +175,12 @@ namespace sharp {
/*
Set EXIF Orientation of image.
*/
void SetExifOrientation(VImage image, int const orientation);
VImage SetExifOrientation(VImage image, int const orientation);
/*
Remove EXIF Orientation from image.
*/
void RemoveExifOrientation(VImage image);
VImage RemoveExifOrientation(VImage image);
/*
Does this image have a non-default density?
@@ -195,7 +195,7 @@ namespace sharp {
/*
Set pixels/mm resolution based on a pixels/inch density.
*/
void SetDensity(VImage image, const double density);
VImage SetDensity(VImage image, const double density);
/*
Check the proposed format supports the current dimensions.