mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			473 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			473 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
#include <QString>
 | 
						|
 | 
						|
#include <utils/ColorRgb.h>
 | 
						|
#include <utils/ColorRgbw.h>
 | 
						|
 | 
						|
namespace RGBW {
 | 
						|
 | 
						|
	enum class WhiteAlgorithm {
 | 
						|
		INVALID,
 | 
						|
		SUBTRACT_MINIMUM,
 | 
						|
		SUB_MIN_WARM_ADJUST,
 | 
						|
		SUB_MIN_COOL_ADJUST,
 | 
						|
		WHITE_OFF,
 | 
						|
        COLD_WHITE,
 | 
						|
        NEUTRAL_WHITE,
 | 
						|
        AUTO,
 | 
						|
        AUTO_MAX,
 | 
						|
        AUTO_ACCURATE
 | 
						|
	};
 | 
						|
 | 
						|
	WhiteAlgorithm stringToWhiteAlgorithm(const QString& str);
 | 
						|
	void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, WhiteAlgorithm algorithm);
 | 
						|
}
 |