From 5eaea74d46e086d967bca8cc76628a6f2242818e Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 30 Dec 2019 19:57:55 +0900 Subject: [PATCH] [SDK][INCLUDE] Improve gdipluseffects.h (#2196) CORE-16585 --- sdk/include/psdk/gdipluseffects.h | 76 +++++++++++++++++++++---------- 1 file changed, 53 insertions(+), 23 deletions(-) diff --git a/sdk/include/psdk/gdipluseffects.h b/sdk/include/psdk/gdipluseffects.h index ee6085d7c0d..1b5354605d0 100644 --- a/sdk/include/psdk/gdipluseffects.h +++ b/sdk/include/psdk/gdipluseffects.h @@ -19,59 +19,87 @@ #ifndef _GDIPLUSEFFECTS_H #define _GDIPLUSEFFECTS_H -typedef struct +typedef enum CurveAdjustments { - float radius; + AdjustExposure = 0, + AdjustDensity = 1, + AdjustContrast = 2, + AdjustHighlight = 3, + AdjustShadow = 4, + AdjustMidtone = 5, + AdjustWhiteSaturation = 6, + AdjustBlackSaturation = 7 +} CurveAdjustments; + +typedef enum CurveChannel +{ + CurveChannelAll = 0, + CurveChannelRed = 1, + CurveChannelGreen = 2, + CurveChannelBlue = 3 +} CurveChannel; + +typedef struct BlurParams +{ + REAL radius; BOOL expandEdge; } BlurParams; -typedef struct +typedef struct BrightnessContrastParams { INT brightnessLevel; INT contrastLevel; } BrightnessContrastParams; -typedef struct +typedef struct ColorBalanceParams { INT cyanRed; INT magentaGreen; INT yellowBlue; } ColorBalanceParams; -typedef struct +typedef struct ColorCurveParams { CurveAdjustments adjustment; CurveChannel channel; INT adjustValue; } ColorCurveParams; -typedef struct +typedef struct ColorLUTParams +{ + ColorChannelLUT lutB; + ColorChannelLUT lutG; + ColorChannelLUT lutR; + ColorChannelLUT lutA; +} ColorLUTParams; + +typedef struct HueSaturationLightnessParams { INT hueLevel; INT saturationLevel; INT lightnessLevel; } HueSaturationLightnessParams; -typedef struct +typedef struct LevelsParams { INT highlight; INT midtone; INT shadow; } LevelsParams; -typedef struct +typedef struct RedEyeCorrectionParams { UINT numberOfAreas; RECT *areas; } RedEyeCorrectionParams; -typedef struct +typedef struct SharpenParams { REAL radius; REAL amount; } SharpenParams; -typedef struct +typedef struct TintParams { INT hue; INT amount; @@ -80,16 +108,18 @@ typedef struct class Effect { public: - Effect(VOID) + Effect() { } - VOID *GetAuxData(VOID) const + VOID * + GetAuxData() const { return NULL; } - INT GetAuxDataSize(VOID) + INT + GetAuxDataSize() { return 0; } @@ -109,7 +139,7 @@ class Effect class Blur : public Effect { public: - Blur(VOID) + Blur() { } @@ -129,7 +159,7 @@ class Blur : public Effect class BrightnessContrast : public Effect { public: - BrightnessContrast(VOID) + BrightnessContrast() { } @@ -149,7 +179,7 @@ class BrightnessContrast : public Effect class ColorBalance : public Effect { public: - ColorBalance(VOID) + ColorBalance() { } @@ -169,7 +199,7 @@ class ColorBalance : public Effect class ColorCurve : public Effect { public: - ColorCurve(VOID) + ColorCurve() { } @@ -189,7 +219,7 @@ class ColorCurve : public Effect class ColorMatrixEffect : public Effect { public: - ColorMatrixEffect(VOID) + ColorMatrixEffect() { } @@ -209,7 +239,7 @@ class ColorMatrixEffect : public Effect class HueSaturationLightness : public Effect { public: - HueSaturationLightness(VOID) + HueSaturationLightness() { } @@ -229,7 +259,7 @@ class HueSaturationLightness : public Effect class Levels : public Effect { public: - Levels(VOID) + Levels() { } @@ -249,7 +279,7 @@ class Levels : public Effect class RedEyeCorrection : public Effect { public: - RedEyeCorrection(VOID) + RedEyeCorrection() { } @@ -269,7 +299,7 @@ class RedEyeCorrection : public Effect class Sharpen { public: - Sharpen(VOID) + Sharpen() { } @@ -289,7 +319,7 @@ class Sharpen class Tint : Effect { public: - Tint(VOID) + Tint() { }