Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImageProcessing.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-25 01:21:27 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-25 01:21:27 +1000
commitcb76e4e4448446bd69905de19683087d84ae39cb (patch)
tree0aa0548dae863c727cd32fc2b0d562783c7edb4e /source/core/StarImageProcessing.hpp
parent179f220bb4f1cc3e9e53d760ece6497a6f2044a8 (diff)
parent008bd6d3df469f69eaf667bc3ae357a03894bddb (diff)
Merge branch 'experiments/directives'
Diffstat (limited to 'source/core/StarImageProcessing.hpp')
-rw-r--r--source/core/StarImageProcessing.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/core/StarImageProcessing.hpp b/source/core/StarImageProcessing.hpp
index bcb5936..30640bf 100644
--- a/source/core/StarImageProcessing.hpp
+++ b/source/core/StarImageProcessing.hpp
@@ -136,6 +136,8 @@ typedef Variant<HueShiftImageOperation, SaturationShiftImageOperation, Brightnes
ImageOperation imageOperationFromString(String const& string);
String imageOperationToString(ImageOperation const& operation);
+void parseImageOperations(String const& params, function<void(ImageOperation&&)> outputter);
+
// Each operation is assumed to be separated by '?', with parameters
// separated by ';' or '='
List<ImageOperation> parseImageOperations(String const& params);
@@ -143,10 +145,14 @@ List<ImageOperation> parseImageOperations(String const& params);
// Each operation separated by '?', returns string with leading '?'
String printImageOperations(List<ImageOperation> const& operations);
+void addImageOperationReferences(ImageOperation const& operation, StringList& out);
+
StringList imageOperationReferences(List<ImageOperation> const& operations);
typedef function<Image const*(String const& refName)> ImageReferenceCallback;
+void processImageOperation(ImageOperation const& operation, Image& input, ImageReferenceCallback refCallback = {});
+
Image processImageOperations(List<ImageOperation> const& operations, Image input, ImageReferenceCallback refCallback = {});
}