From 25b021c0cb8f2748d7676a744e82d796d90dfb8e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 25 Jun 2023 14:00:20 +1000 Subject: More improvements to directives Error logging is back where it should be --- source/core/StarImageProcessing.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/core/StarImageProcessing.hpp') diff --git a/source/core/StarImageProcessing.hpp b/source/core/StarImageProcessing.hpp index 30640bf..ed560af 100644 --- a/source/core/StarImageProcessing.hpp +++ b/source/core/StarImageProcessing.hpp @@ -18,6 +18,10 @@ Image scaleBicubic(Image const& srcImage, Vec2F const& scale); StringList colorDirectivesFromConfig(JsonArray const& directives); String paletteSwapDirectivesFromConfig(Json const& swaps); +struct ErrorImageOperation { + std::exception_ptr exception; +}; + struct HueShiftImageOperation { // Specify hue shift angle as -360 to 360 rather than -1 to 1 static HueShiftImageOperation hueShiftDegrees(float degrees); @@ -129,7 +133,7 @@ struct FlipImageOperation { Mode mode; }; -typedef Variant ImageOperation; -- cgit v1.2.3