mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Update MultiColorCorrection.h
Former-commit-id: 82dee880f9614e813758b2d5c7e08c3a33aa6d4d
This commit is contained in:
parent
257532df74
commit
0ba143cd20
@ -10,7 +10,7 @@
|
|||||||
#include <hyperion/ColorCorrection.h>
|
#include <hyperion/ColorCorrection.h>
|
||||||
|
|
||||||
///
|
///
|
||||||
/// The LedColorTransform is responsible for performing color transformation from 'raw' colors
|
/// The LedColorCorrection is responsible for performing color correction from 'raw' colors
|
||||||
/// received as input to colors mapped to match the color-properties of the leds.
|
/// received as input to colors mapped to match the color-properties of the leds.
|
||||||
///
|
///
|
||||||
class MultiColorCorrection
|
class MultiColorCorrection
|
||||||
@ -20,9 +20,9 @@ public:
|
|||||||
~MultiColorCorrection();
|
~MultiColorCorrection();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new ColorTransform to this MultiColorTransform
|
* Adds a new ColorCorrection to this MultiColorCorrection
|
||||||
*
|
*
|
||||||
* @param transform The new ColorTransform (ownership is transfered)
|
* @param Correction The new ColorCorrection (ownership is transfered)
|
||||||
*/
|
*/
|
||||||
void addCorrection(ColorCorrection * correction);
|
void addCorrection(ColorCorrection * correction);
|
||||||
|
|
||||||
@ -31,17 +31,17 @@ public:
|
|||||||
bool verifyCorrections() const;
|
bool verifyCorrections() const;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Returns the identifier of all the unique ColorTransform
|
/// Returns the identifier of all the unique ColorCorrection
|
||||||
///
|
///
|
||||||
/// @return The list with unique id's of the ColorTransforms
|
/// @return The list with unique id's of the ColorCorrections
|
||||||
const std::vector<std::string> & getCorrectionIds();
|
const std::vector<std::string> & getCorrectionIds();
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Returns the pointer to the ColorTransform with the given id
|
/// Returns the pointer to the ColorCorrection with the given id
|
||||||
///
|
///
|
||||||
/// @param id The identifier of the ColorTransform
|
/// @param id The identifier of the ColorCorrection
|
||||||
///
|
///
|
||||||
/// @return The ColorTransform with the given id (or nullptr if it does not exist)
|
/// @return The ColorCorrection with the given id (or nullptr if it does not exist)
|
||||||
///
|
///
|
||||||
ColorCorrection* getCorrection(const std::string& id);
|
ColorCorrection* getCorrection(const std::string& id);
|
||||||
|
|
||||||
@ -55,12 +55,12 @@ public:
|
|||||||
std::vector<ColorRgb> applyCorrection(const std::vector<ColorRgb>& rawColors);
|
std::vector<ColorRgb> applyCorrection(const std::vector<ColorRgb>& rawColors);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// List with transform ids
|
/// List with Correction ids
|
||||||
std::vector<std::string> _correctionIds;
|
std::vector<std::string> _correctionIds;
|
||||||
|
|
||||||
/// List with unique ColorTransforms
|
/// List with unique ColorCorrections
|
||||||
std::vector<ColorCorrection*> _correction;
|
std::vector<ColorCorrection*> _correction;
|
||||||
|
|
||||||
/// List with a pointer to the ColorTransform for each individual led
|
/// List with a pointer to the ColorCorrection for each individual led
|
||||||
std::vector<ColorCorrection*> _ledCorrections;
|
std::vector<ColorCorrection*> _ledCorrections;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user