2013-07-26 22:38:34 +02:00
|
|
|
#pragma once
|
|
|
|
|
2013-08-19 20:33:36 +02:00
|
|
|
// stl includes
|
|
|
|
#include <list>
|
2016-07-15 23:08:55 +02:00
|
|
|
#include <map>
|
2013-08-19 20:33:36 +02:00
|
|
|
|
2013-08-14 17:02:09 +02:00
|
|
|
// QT includes
|
|
|
|
#include <QObject>
|
|
|
|
#include <QTimer>
|
2016-09-21 22:01:50 +02:00
|
|
|
#include <QSize>
|
2016-09-25 21:59:31 +02:00
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QJsonValue>
|
|
|
|
#include <QJsonArray>
|
2013-08-14 17:02:09 +02:00
|
|
|
|
2013-07-26 22:38:34 +02:00
|
|
|
// hyperion-utils includes
|
2013-11-11 10:00:37 +01:00
|
|
|
#include <utils/Image.h>
|
2016-07-01 23:20:41 +02:00
|
|
|
#include <utils/ColorRgb.h>
|
|
|
|
#include <utils/Logger.h>
|
2016-08-04 13:10:53 +02:00
|
|
|
#include <utils/Components.h>
|
2013-07-26 22:38:34 +02:00
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
// Hyperion includes
|
2013-07-26 22:38:34 +02:00
|
|
|
#include <hyperion/LedString.h>
|
2013-08-13 11:10:45 +02:00
|
|
|
#include <hyperion/PriorityMuxer.h>
|
2015-12-22 10:09:47 +01:00
|
|
|
#include <hyperion/ColorTransform.h>
|
2016-04-02 00:04:11 +02:00
|
|
|
#include <hyperion/ColorAdjustment.h>
|
2016-03-09 19:36:08 +01:00
|
|
|
#include <hyperion/MessageForwarder.h>
|
2016-09-07 20:10:37 +02:00
|
|
|
#include <hyperion/ComponentRegister.h>
|
2013-08-13 11:10:45 +02:00
|
|
|
|
2013-12-01 14:09:01 +01:00
|
|
|
// Effect engine includes
|
|
|
|
#include <effectengine/EffectDefinition.h>
|
2016-04-24 17:07:31 +02:00
|
|
|
#include <effectengine/ActiveEffectDefinition.h>
|
2016-10-24 23:52:53 +02:00
|
|
|
#include <effectengine/EffectSchema.h>
|
2013-12-01 14:09:01 +01:00
|
|
|
|
2016-08-04 13:10:53 +02:00
|
|
|
// KodiVideoChecker includes
|
|
|
|
#include <kodivideochecker/KODIVideoChecker.h>
|
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
// Forward class declaration
|
2013-12-17 19:50:15 +01:00
|
|
|
class LedDevice;
|
2016-09-08 16:32:42 +02:00
|
|
|
class LinearColorSmoothing;
|
2013-08-23 18:24:10 +02:00
|
|
|
class ColorTransform;
|
2013-11-24 16:10:48 +01:00
|
|
|
class EffectEngine;
|
2013-08-23 18:24:10 +02:00
|
|
|
class HsvTransform;
|
2015-12-22 10:09:47 +01:00
|
|
|
class HslTransform;
|
2013-11-19 21:17:59 +01:00
|
|
|
class RgbChannelTransform;
|
2016-04-02 00:04:11 +02:00
|
|
|
class RgbChannelAdjustment;
|
2013-11-20 09:25:49 +01:00
|
|
|
class MultiColorTransform;
|
2016-04-02 00:04:11 +02:00
|
|
|
class MultiColorAdjustment;
|
2016-08-04 13:10:53 +02:00
|
|
|
class KODIVideoChecker;
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// The main class of Hyperion. This gives other 'users' access to the attached LedDevice through
|
|
|
|
/// the priority muxer.
|
|
|
|
///
|
2013-08-14 17:02:09 +02:00
|
|
|
class Hyperion : public QObject
|
2013-07-26 22:38:34 +02:00
|
|
|
{
|
2013-08-14 17:02:09 +02:00
|
|
|
Q_OBJECT
|
2013-07-26 22:38:34 +02:00
|
|
|
public:
|
2013-09-06 21:26:58 +02:00
|
|
|
/// Type definition of the info structure used by the priority muxer
|
2013-08-19 20:33:36 +02:00
|
|
|
typedef PriorityMuxer::InputInfo InputInfo;
|
2016-07-15 23:08:55 +02:00
|
|
|
typedef std::map<std::string,int> PriorityRegister;
|
2013-08-19 20:33:36 +02:00
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// RGB-Color channel enumeration
|
|
|
|
///
|
2013-11-20 09:25:49 +01:00
|
|
|
enum RgbChannel
|
2013-08-19 19:57:35 +02:00
|
|
|
{
|
2013-08-21 21:50:17 +02:00
|
|
|
RED, GREEN, BLUE, INVALID
|
2013-08-19 19:57:35 +02:00
|
|
|
};
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Enumeration of the possible color (color-channel) transforms
|
|
|
|
///
|
2013-08-19 19:57:35 +02:00
|
|
|
enum Transform
|
|
|
|
{
|
2013-08-21 21:50:17 +02:00
|
|
|
SATURATION_GAIN, VALUE_GAIN, THRESHOLD, GAMMA, BLACKLEVEL, WHITELEVEL
|
2013-08-19 19:57:35 +02:00
|
|
|
};
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2016-10-11 19:51:20 +02:00
|
|
|
/// Destructor; cleans up resources
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2013-07-26 22:38:34 +02:00
|
|
|
~Hyperion();
|
|
|
|
|
2016-10-10 23:08:01 +02:00
|
|
|
///
|
|
|
|
/// free all alocated objects, should be called only from constructor or before restarting hyperion
|
|
|
|
///
|
|
|
|
void freeObjects();
|
2016-06-17 01:25:40 +02:00
|
|
|
|
2016-10-13 21:59:58 +02:00
|
|
|
static Hyperion* initInstance(const QJsonObject& qjsonConfig, const std::string configFile);
|
2016-06-17 01:25:40 +02:00
|
|
|
static Hyperion* getInstance();
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Returns the number of attached leds
|
|
|
|
///
|
2013-08-14 10:54:49 +02:00
|
|
|
unsigned getLedCount() const;
|
2016-09-21 22:01:50 +02:00
|
|
|
|
|
|
|
QSize getLedGridSize() const { return _ledGridSize; }
|
|
|
|
|
2016-05-30 22:39:12 +02:00
|
|
|
///
|
|
|
|
/// Returns the current priority
|
|
|
|
///
|
|
|
|
/// @return The current priority
|
|
|
|
///
|
|
|
|
int getCurrentPriority() const;
|
2016-09-05 17:26:29 +02:00
|
|
|
|
2013-11-29 23:22:49 +01:00
|
|
|
///
|
|
|
|
/// Returns a list of active priorities
|
|
|
|
///
|
|
|
|
/// @return The list with priorities
|
|
|
|
///
|
|
|
|
QList<int> getActivePriorities() const;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Returns the information of a specific priorrity channel
|
|
|
|
///
|
|
|
|
/// @param[in] priority The priority channel
|
|
|
|
///
|
|
|
|
/// @return The information of the given
|
|
|
|
///
|
|
|
|
/// @throw std::runtime_error when the priority channel does not exist
|
|
|
|
///
|
|
|
|
const InputInfo& getPriorityInfo(const int priority) const;
|
|
|
|
|
2016-11-20 18:41:10 +01:00
|
|
|
/// Reload the list of available effects
|
|
|
|
void reloadEffects();
|
|
|
|
|
2013-11-29 23:22:49 +01:00
|
|
|
/// Get the list of available effects
|
|
|
|
/// @return The list of available effects
|
2013-12-01 14:09:01 +01:00
|
|
|
const std::list<EffectDefinition> &getEffects() const;
|
2016-04-24 17:07:31 +02:00
|
|
|
|
|
|
|
/// Get the list of active effects
|
|
|
|
/// @return The list of active effects
|
|
|
|
const std::list<ActiveEffectDefinition> &getActiveEffects();
|
2016-06-14 20:14:06 +02:00
|
|
|
|
2016-10-24 23:52:53 +02:00
|
|
|
/// Get the list of available effect schema files
|
|
|
|
/// @return The list of available effect schema files
|
|
|
|
const std::list<EffectSchema> &getEffectSchemas();
|
|
|
|
|
2016-07-15 23:08:55 +02:00
|
|
|
/// gets the current json config object
|
|
|
|
/// @return json config
|
2016-10-09 22:22:17 +02:00
|
|
|
const QJsonObject& getQJsonConfig() { return _qjsonConfig; };
|
2016-07-15 23:08:55 +02:00
|
|
|
|
|
|
|
/// get filename of configfile
|
|
|
|
/// @return the current config filename
|
2016-06-14 20:14:06 +02:00
|
|
|
std::string getConfigFileName() { return _configFile; };
|
2013-11-29 23:22:49 +01:00
|
|
|
|
2016-07-15 23:08:55 +02:00
|
|
|
/// register a input source to a priority channel
|
|
|
|
/// @param name uniq name of input source
|
|
|
|
/// @param priority priority channel
|
|
|
|
void registerPriority(const std::string name, const int priority);
|
|
|
|
|
|
|
|
/// unregister a input source to a priority channel
|
|
|
|
/// @param name uniq name of input source
|
|
|
|
void unRegisterPriority(const std::string name);
|
|
|
|
|
2016-07-31 22:21:35 +02:00
|
|
|
/// gets current priority register
|
|
|
|
/// @return the priority register
|
2016-07-15 23:08:55 +02:00
|
|
|
const PriorityRegister& getPriorityRegister() { return _priorityRegister; }
|
2016-07-31 22:21:35 +02:00
|
|
|
|
|
|
|
/// enable/disable automatic/priorized source selection
|
2016-10-11 19:51:20 +02:00
|
|
|
/// @param enabled the state
|
2016-07-31 22:21:35 +02:00
|
|
|
void setSourceAutoSelectEnabled(bool enabled);
|
|
|
|
|
|
|
|
/// set current input source to visible
|
|
|
|
/// @param priority the priority channel which should be vidible
|
|
|
|
/// @return true if success, false on error
|
|
|
|
bool setCurrentSourcePriority(int priority );
|
|
|
|
|
|
|
|
/// gets current state of automatic/priorized source selection
|
|
|
|
/// @return the state
|
|
|
|
bool sourceAutoSelectEnabled() { return _sourceAutoSelectEnabled; };
|
2016-08-04 13:10:53 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Enable/Disable components during runtime
|
|
|
|
///
|
|
|
|
/// @param component The component [SMOOTHING, BLACKBORDER, KODICHECKER, FORWARDER, UDPLISTENER, BOBLIGHT_SERVER, GRABBER]
|
|
|
|
/// @param state The state of the component [true | false]
|
|
|
|
///
|
2016-08-11 07:13:55 +02:00
|
|
|
void setComponentState(const hyperion::Components component, const bool state);
|
2016-09-07 20:10:37 +02:00
|
|
|
|
|
|
|
ComponentRegister& getComponentRegister() { return _componentRegister; };
|
|
|
|
|
2016-09-14 13:51:28 +02:00
|
|
|
bool configModified();
|
|
|
|
|
2013-11-29 23:22:49 +01:00
|
|
|
public slots:
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Writes a single color to all the leds for the given time and priority
|
|
|
|
///
|
|
|
|
/// @param[in] priority The priority of the written color
|
|
|
|
/// @param[in] ledColor The color to write to the leds
|
|
|
|
/// @param[in] timeout_ms The time the leds are set to the given color [ms]
|
|
|
|
///
|
2013-12-08 17:45:26 +01:00
|
|
|
void setColor(int priority, const ColorRgb &ledColor, const int timeout_ms, bool clearEffects = true);
|
2013-08-18 13:33:56 +02:00
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Writes the given colors to all leds for the given time and priority
|
|
|
|
///
|
|
|
|
/// @param[in] priority The priority of the written colors
|
|
|
|
/// @param[in] ledColors The colors to write to the leds
|
|
|
|
/// @param[in] timeout_ms The time the leds are set to the given colors [ms]
|
|
|
|
///
|
2016-10-10 18:29:54 +02:00
|
|
|
void setColors(int priority, const std::vector<ColorRgb> &ledColors, const int timeout_ms, bool clearEffects = true, hyperion::Components component=hyperion::COMP_INVALID);
|
2013-08-18 13:33:56 +02:00
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2013-11-22 11:48:10 +01:00
|
|
|
/// Returns the list with unique transform identifiers
|
|
|
|
/// @return The list with transform identifiers
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2013-11-22 11:48:10 +01:00
|
|
|
const std::vector<std::string> & getTransformIds() const;
|
2016-10-10 18:29:54 +02:00
|
|
|
|
2016-04-02 00:04:11 +02:00
|
|
|
///
|
|
|
|
/// Returns the list with unique adjustment identifiers
|
|
|
|
/// @return The list with adjustment identifiers
|
|
|
|
///
|
|
|
|
const std::vector<std::string> & getAdjustmentIds() const;
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2013-11-22 11:48:10 +01:00
|
|
|
/// Returns the ColorTransform with the given identifier
|
|
|
|
/// @return The transform with the given identifier (or nullptr if the identifier does not exist)
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
2013-11-22 11:48:10 +01:00
|
|
|
ColorTransform * getTransform(const std::string& id);
|
2016-10-10 18:29:54 +02:00
|
|
|
|
2016-04-02 00:04:11 +02:00
|
|
|
///
|
|
|
|
/// Returns the ColorAdjustment with the given identifier
|
|
|
|
/// @return The adjustment with the given identifier (or nullptr if the identifier does not exist)
|
|
|
|
///
|
|
|
|
ColorAdjustment * getAdjustment(const std::string& id);
|
2016-10-10 18:29:54 +02:00
|
|
|
|
2016-03-09 19:55:55 +01:00
|
|
|
///
|
|
|
|
/// Returns MessageForwarder Object
|
|
|
|
/// @return instance of message forwarder object
|
|
|
|
///
|
|
|
|
MessageForwarder * getForwarder();
|
2013-08-19 19:57:35 +02:00
|
|
|
|
2013-12-03 22:56:46 +01:00
|
|
|
/// Tell Hyperion that the transforms have changed and the leds need to be updated
|
|
|
|
void transformsUpdated();
|
2013-08-19 19:57:35 +02:00
|
|
|
|
2016-04-02 00:04:11 +02:00
|
|
|
/// Tell Hyperion that the corrections have changed and the leds need to be updated
|
|
|
|
void adjustmentsUpdated();
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Clears the given priority channel. This will switch the led-colors to the colors of the next
|
|
|
|
/// lower priority channel (or off if no more channels are set)
|
|
|
|
///
|
|
|
|
/// @param[in] priority The priority channel
|
|
|
|
///
|
2013-08-18 13:33:56 +02:00
|
|
|
void clear(int priority);
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Clears all priority channels. This will switch the leds off until a new priority is written.
|
|
|
|
///
|
2013-08-18 13:33:56 +02:00
|
|
|
void clearall();
|
2013-07-26 22:38:34 +02:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
/// Run the specified effect on the given priority channel and optionally specify a timeout
|
|
|
|
/// @param effectName Name of the effec to run
|
|
|
|
/// @param priority The priority channel of the effect
|
2016-10-11 19:51:20 +02:00
|
|
|
/// @param timeout The timeout of the effect (after the timout, the effect will be cleared)
|
2016-10-09 22:22:17 +02:00
|
|
|
int setEffect(const QString & effectName, int priority, int timeout = -1);
|
2013-11-24 16:10:48 +01:00
|
|
|
|
2013-12-01 14:09:01 +01:00
|
|
|
/// Run the specified effect on the given priority channel and optionally specify a timeout
|
|
|
|
/// @param effectName Name of the effec to run
|
2013-12-01 16:35:45 +01:00
|
|
|
/// @param args arguments of the effect script
|
2013-12-01 14:09:01 +01:00
|
|
|
/// @param priority The priority channel of the effect
|
2016-10-11 19:51:20 +02:00
|
|
|
/// @param timeout The timeout of the effect (after the timout, the effect will be cleared)
|
2016-10-30 22:59:45 +01:00
|
|
|
int setEffect(const QString & effectName, const QJsonObject & args, int priority, int timeout = -1, QString pythonScript = "");
|
2013-12-01 14:09:01 +01:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
public:
|
2016-06-17 01:25:40 +02:00
|
|
|
static Hyperion *_hyperion;
|
|
|
|
|
2016-09-25 21:59:31 +02:00
|
|
|
static ColorOrder createColorOrder(const QJsonObject & deviceConfig);
|
2015-02-23 16:11:33 +01:00
|
|
|
/**
|
|
|
|
* Construct the 'led-string' with the integration area definition per led and the color
|
|
|
|
* ordering of the RGB channels
|
|
|
|
* @param ledsConfig The configuration of the led areas
|
|
|
|
* @param deviceOrder The default RGB channel ordering
|
|
|
|
* @return The constructed ledstring
|
|
|
|
*/
|
2016-09-25 21:59:31 +02:00
|
|
|
static LedString createLedString(const QJsonValue & ledsConfig, const ColorOrder deviceOrder);
|
|
|
|
static LedString createLedStringClone(const QJsonValue & ledsConfig, const ColorOrder deviceOrder);
|
|
|
|
|
|
|
|
static MultiColorTransform * createLedColorsTransform(const unsigned ledCnt, const QJsonObject & colorTransformConfig);
|
|
|
|
static MultiColorAdjustment * createLedColorsAdjustment(const unsigned ledCnt, const QJsonObject & colorAdjustmentConfig);
|
|
|
|
static ColorTransform * createColorTransform(const QJsonObject & transformConfig);
|
|
|
|
static ColorAdjustment * createColorAdjustment(const QJsonObject & adjustmentConfig);
|
|
|
|
static HsvTransform * createHsvTransform(const QJsonObject & hsvConfig);
|
|
|
|
static HslTransform * createHslTransform(const QJsonObject & hslConfig);
|
|
|
|
static RgbChannelTransform * createRgbChannelTransform(const QJsonObject& colorConfig);
|
|
|
|
static RgbChannelAdjustment * createRgbChannelCorrection(const QJsonObject& colorConfig);
|
|
|
|
static RgbChannelAdjustment * createRgbChannelAdjustment(const QJsonObject& colorConfig, const RgbChannel color);
|
|
|
|
|
|
|
|
static LinearColorSmoothing * createColorSmoothing(const QJsonObject & smoothingConfig, LedDevice* leddevice);
|
|
|
|
static MessageForwarder * createMessageForwarder(const QJsonObject & forwarderConfig);
|
|
|
|
static QSize getLedLayoutGridSize(const QJsonValue& ledsConfig);
|
2016-09-21 22:01:50 +02:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
signals:
|
|
|
|
/// Signal which is emitted when a priority channel is actively cleared
|
|
|
|
/// This signal will not be emitted when a priority channel time out
|
|
|
|
void channelCleared(int priority);
|
|
|
|
|
|
|
|
/// Signal which is emitted when all priority channels are actively cleared
|
|
|
|
/// This signal will not be emitted when a priority channel time out
|
|
|
|
void allChannelsCleared();
|
|
|
|
|
2016-08-11 07:13:55 +02:00
|
|
|
void componentStateChanged(const hyperion::Components component, bool enabled);
|
|
|
|
|
2013-08-14 17:02:09 +02:00
|
|
|
private slots:
|
2013-09-06 21:26:58 +02:00
|
|
|
///
|
|
|
|
/// Updates the priority muxer with the current time and (re)writes the led color with applied
|
|
|
|
/// transforms.
|
|
|
|
///
|
2013-08-14 17:02:09 +02:00
|
|
|
void update();
|
|
|
|
|
2013-07-26 22:38:34 +02:00
|
|
|
private:
|
2016-06-17 01:25:40 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Constructs the Hyperion instance based on the given Json configuration
|
|
|
|
///
|
2016-10-13 21:59:58 +02:00
|
|
|
/// @param[in] qjsonConfig The Json configuration
|
2016-06-17 01:25:40 +02:00
|
|
|
///
|
2016-10-13 21:59:58 +02:00
|
|
|
Hyperion(const QJsonObject& qjsonConfig, const std::string configFile);
|
2016-06-17 01:25:40 +02:00
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
/// The specifiation of the led frame construction and picture integration
|
2013-08-18 13:33:56 +02:00
|
|
|
LedString _ledString;
|
2013-07-26 22:38:34 +02:00
|
|
|
|
2016-08-08 00:17:00 +02:00
|
|
|
/// specifiation of cloned leds
|
|
|
|
LedString _ledStringClone;
|
|
|
|
|
|
|
|
std::vector<ColorOrder> _ledStringColorOrder;
|
2013-09-06 21:26:58 +02:00
|
|
|
/// The priority muxer
|
2013-08-18 13:33:56 +02:00
|
|
|
PriorityMuxer _muxer;
|
2013-07-26 22:38:34 +02:00
|
|
|
|
2016-04-02 00:04:11 +02:00
|
|
|
/// The transformation from raw colors to led colors
|
2013-11-20 09:25:49 +01:00
|
|
|
MultiColorTransform * _raw2ledTransform;
|
2016-10-10 18:29:54 +02:00
|
|
|
|
2016-04-02 00:04:11 +02:00
|
|
|
/// The adjustment from raw colors to led colors
|
|
|
|
MultiColorAdjustment * _raw2ledAdjustment;
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
/// The actual LedDevice
|
2013-10-27 18:04:37 +01:00
|
|
|
LedDevice * _device;
|
2013-08-14 17:02:09 +02:00
|
|
|
|
2016-09-08 16:32:42 +02:00
|
|
|
/// The smoothing LedDevice
|
|
|
|
LinearColorSmoothing * _deviceSmooth;
|
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
/// Effect engine
|
|
|
|
EffectEngine * _effectEngine;
|
2016-03-09 19:55:55 +01:00
|
|
|
|
2016-03-09 19:58:49 +01:00
|
|
|
// proto and json Message forwarder
|
2016-03-09 19:55:55 +01:00
|
|
|
MessageForwarder * _messageForwarder;
|
2013-11-24 16:10:48 +01:00
|
|
|
|
2016-06-14 20:14:06 +02:00
|
|
|
// json configuration
|
2016-10-09 22:22:17 +02:00
|
|
|
const QJsonObject& _qjsonConfig;
|
2016-06-14 20:14:06 +02:00
|
|
|
|
|
|
|
// the name of config file
|
|
|
|
std::string _configFile;
|
|
|
|
|
2013-09-06 21:26:58 +02:00
|
|
|
/// The timer for handling priority channel timeouts
|
2013-08-14 17:02:09 +02:00
|
|
|
QTimer _timer;
|
2016-07-30 13:07:53 +02:00
|
|
|
|
2016-07-01 23:20:41 +02:00
|
|
|
/// buffer for leds
|
|
|
|
std::vector<ColorRgb> _ledBuffer;
|
2016-07-30 13:07:53 +02:00
|
|
|
|
2016-07-01 23:20:41 +02:00
|
|
|
/// Logger instance
|
|
|
|
Logger * _log;
|
2016-07-30 13:07:53 +02:00
|
|
|
|
2016-07-01 23:20:41 +02:00
|
|
|
/// count of hardware leds
|
|
|
|
unsigned _hwLedCount;
|
2016-07-30 13:07:53 +02:00
|
|
|
|
2016-09-07 20:10:37 +02:00
|
|
|
ComponentRegister _componentRegister;
|
|
|
|
|
2016-07-15 23:08:55 +02:00
|
|
|
/// register of input sources and it's prio channel
|
|
|
|
PriorityRegister _priorityRegister;
|
2016-07-30 13:07:53 +02:00
|
|
|
|
2016-10-10 18:29:54 +02:00
|
|
|
/// flag for v4l color correction
|
|
|
|
bool _colorAdjustmentV4Lonly;
|
|
|
|
|
|
|
|
/// flag for v4l color correction
|
|
|
|
bool _colorTransformV4Lonly;
|
|
|
|
|
2016-07-31 22:21:35 +02:00
|
|
|
/// flag for color transform enable
|
2016-07-30 13:07:53 +02:00
|
|
|
bool _transformEnabled;
|
2016-07-31 22:21:35 +02:00
|
|
|
|
|
|
|
/// flag for color adjustment enable
|
2016-07-30 13:07:53 +02:00
|
|
|
bool _adjustmentEnabled;
|
2016-07-31 22:21:35 +02:00
|
|
|
|
|
|
|
/// flag indicates state for autoselection of input source
|
|
|
|
bool _sourceAutoSelectEnabled;
|
|
|
|
|
|
|
|
/// holds the current priority channel that is manualy selected
|
|
|
|
int _currentSourcePriority;
|
2016-09-14 13:51:28 +02:00
|
|
|
|
|
|
|
QByteArray _configHash;
|
2016-09-21 22:01:50 +02:00
|
|
|
|
|
|
|
QSize _ledGridSize;
|
2013-07-26 22:38:34 +02:00
|
|
|
};
|