MT_colorEditor.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // This file is part of HDRip.
  2. //
  3. // HDRip is free software: you can redistribute it and/or modify it
  4. // under the terms of the GNU General Public License as published by
  5. // the Free Software Foundation, either version 3 of the License, or
  6. // (at your option) any later version.
  7. //
  8. // HDRip is distributed in the hope that it will be useful, but
  9. // WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with HDRip. If not, see <https://www.gnu.org/licenses/>.
  15. //
  16. // HDRip project
  17. // Author : Rémi Synave
  18. // Contact : remi.synave@univ-littoral.fr
  19. #ifndef MT_COLOREDITOR__HPP
  20. #define MT_COLOREDITOR__HPP
  21. #include "Colorspace.hpp"
  22. class MT_colorEditor
  23. {
  24. public:
  25. /* This class will be used in different context for colorEditor parallelization. */
  26. /* Generic members. Not all of them will always be used. */
  27. float* data;
  28. unsigned int length;
  29. unsigned int colorspace;
  30. bool linear;
  31. float lMin, lMax;
  32. float cMin, cMax;
  33. float hMin, hMax;
  34. float tolerance;
  35. float edit_hue;
  36. float edit_exposure;
  37. float edit_contrast;
  38. float edit_saturation;
  39. bool mask;
  40. MT_colorEditor(float* d = NULL, unsigned int l = 0, unsigned int co = Colorspace::RGB, bool lin = false, float lMi = 0.0f, float lMa = 0.0f, float cMi = 0.0f, float cMa = 0.0f, float hMi = 0.0f, float hMa = 0.0f, float t = 0.0f, float eh = 0.0f, float ee = 0.0f, float ec = 0.0f, float es = 0.0f, bool m = false) :data(d), length(l), colorspace(co), linear(lin), lMin(lMi), lMax(lMa), cMin(cMi), cMax(cMa), hMin(hMi), hMax(hMa), tolerance(t), edit_hue(eh), edit_exposure(ee), edit_contrast(ec), edit_saturation(es), mask(m) {};
  41. };
  42. #endif