]> git.sesse.net Git - kdenlive/blobdiff - src/colortools.h
HSV color plane generalized
[kdenlive] / src / colortools.h
index f1e29bd6880b838d18e0a28aca98b42ee7c3029b..2bd84b1619c2f855cadd47f08266c84305c1e6f7 100644 (file)
@@ -27,6 +27,8 @@ public:
 
     enum ColorsRGB { COL_R, COL_G, COL_B, COL_A, COL_Luma, COL_RGB };
 
+    enum ComponentsHSV { COM_H, COM_S, COM_V };
+
     /**
       @brief Draws a UV plane with given Y value.
       scaling defines how far to zoom in (or out). Lower value = zoom in.
@@ -71,10 +73,11 @@ public:
     static QImage hsvHueShiftPlane(const QSize &size, const uint &S, const uint &V, const int &MIN, const int &MAX);
 
     /**
-      Basic HSV saturation plane.
+      Basic HSV plane with two components varying on the x and y axis.
+      If both components are the same, then the y axis will be considered.
       MIN/MAX give the minimum/maximum saturation, usually 0..255.
       */
-    static QImage hsvSaturationPlane(const QSize &size, const uint &V, const int &MIN, const int &MAX);
+    static QImage hsvCurvePlane(const QSize &size, const QColor &baseColor, const ComponentsHSV &xVariant, const ComponentsHSV &yVariant);
 
 signals:
     void signalYuvWheelCalculationFinished();