mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2fb2fc9dd7
* Imported Oklab reference implementation * Add Okhsv conversions * Fixed formatting error * Add saturation and value gain to schemas * Add english translation for saturation, value gain * Created OkhsvTransform * Make OkhsvTransform configurable * Apply OkhvsTransform * Clamped values during transform * Precalculate isIdentity in OkhsvTransform * Skip OkhsvTransform if it is the identity function * Added changelog message * Allow for full desaturation * Imported recommended changes by LordGrey * Fixed typo in constant * Fixed anti-pattern in ok_color.h * Correct indentions * Correct remote-control * Limited maximum gain settings to practical range * Renane valueGain to brightnessGain for clarity and understanding Co-authored-by: LordGrey <lordgrey.emmel@gmail.com>
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#ifndef COLORADJUSTMENT_H
|
|
#define COLORADJUSTMENT_H
|
|
|
|
// STL includes
|
|
#include <QString>
|
|
|
|
// Utils includes
|
|
#include <utils/RgbChannelAdjustment.h>
|
|
#include <utils/RgbTransform.h>
|
|
#include <utils/OkhsvTransform.h>
|
|
|
|
class ColorAdjustment
|
|
{
|
|
public:
|
|
/// Unique identifier for this color transform
|
|
QString _id;
|
|
|
|
/// The BLACK (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbBlackAdjustment;
|
|
/// The WHITE (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbWhiteAdjustment;
|
|
/// The RED (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbRedAdjustment;
|
|
/// The GREEN (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbGreenAdjustment;
|
|
/// The BLUE (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbBlueAdjustment;
|
|
/// The CYAN (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbCyanAdjustment;
|
|
/// The MAGENTA (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbMagentaAdjustment;
|
|
/// The YELLOW (RGB-Channel) adjustment
|
|
RgbChannelAdjustment _rgbYellowAdjustment;
|
|
|
|
RgbTransform _rgbTransform;
|
|
OkhsvTransform _okhsvTransform;
|
|
};
|
|
|
|
#endif // COLORADJUSTMENT_H
|