diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 14:00:20 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 14:00:20 +1000 |
commit | 25b021c0cb8f2748d7676a744e82d796d90dfb8e (patch) | |
tree | a5b06a1eedbb9854b92daae406cd6e652df509a8 /source/core/StarImageProcessing.hpp | |
parent | 7783fc7310e53e8f722356935887f1d44406649d (diff) |
More improvements to directives
Error logging is back where it should be
Diffstat (limited to 'source/core/StarImageProcessing.hpp')
-rw-r--r-- | source/core/StarImageProcessing.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<HueShiftImageOperation, SaturationShiftImageOperation, BrightnessMultiplyImageOperation, FadeToColorImageOperation, +typedef Variant<ErrorImageOperation, HueShiftImageOperation, SaturationShiftImageOperation, BrightnessMultiplyImageOperation, FadeToColorImageOperation, ScanLinesImageOperation, SetColorImageOperation, ColorReplaceImageOperation, AlphaMaskImageOperation, BlendImageOperation, MultiplyImageOperation, BorderImageOperation, ScaleImageOperation, CropImageOperation, FlipImageOperation> ImageOperation; |