hyperion.ng
Classes | Enumerations | Functions
hyperion Namespace Reference

Provide utility methods for Hyperion class. More...

Classes

struct  BlackBorder
 Result structure of the detected blackborder. More...
 
class  BlackBorderDetector
 The BlackBorderDetector performs detection of black-borders on a single image. More...
 
class  BlackBorderProcessor
 The BlackBorder processor is a wrapper around the black-border detector for keeping track of detected borders and count of the type and size of detected borders. More...
 
class  ImageToLedsMap
 The ImageToLedsMap holds a mapping of indices into an image to leds. More...
 

Enumerations

enum  Components {
  COMP_INVALID, COMP_ALL, COMP_SMOOTHING, COMP_BLACKBORDER,
  COMP_FORWARDER, COMP_UDPLISTENER, COMP_BOBLIGHTSERVER, COMP_GRABBER,
  COMP_V4L, COMP_COLOR, COMP_IMAGE, COMP_EFFECT,
  COMP_LEDDEVICE, COMP_FLATBUFSERVER, COMP_PROTOSERVER
}
 Enumeration of components in Hyperion.
 

Functions

const char * componentToString (Components c)
 
const char * componentToIdString (Components c)
 
Components stringToComponent (QString component)
 
void handleInitialEffect (Hyperion *hyperion, const QJsonObject &FGEffectConfig)
 
ColorOrder createColorOrder (const QJsonObject &deviceConfig)
 
RgbTransformcreateRgbTransform (const QJsonObject &colorConfig)
 
RgbChannelAdjustmentcreateRgbChannelAdjustment (const QJsonObject &colorConfig, const QString channelName, const int defaultR, const int defaultG, const int defaultB)
 
ColorAdjustmentcreateColorAdjustment (const QJsonObject &adjustmentConfig)
 
MultiColorAdjustmentcreateLedColorsAdjustment (const unsigned ledCnt, const QJsonObject &colorConfig)
 
LedString createLedString (const QJsonArray &ledConfigArray, const ColorOrder deviceOrder)
 Construct the 'led-string' with the integration area definition per led and the color ordering of the RGB channels. More...
 
LedString createLedStringClone (const QJsonArray &ledConfigArray, const ColorOrder deviceOrder)
 
QSize getLedLayoutGridSize (const QJsonArray &ledConfigArray)
 

Detailed Description

Provide utility methods for Hyperion class.

Function Documentation

§ createLedString()

LedString hyperion::createLedString ( const QJsonArray &  ledConfigArray,
const ColorOrder  deviceOrder 
)

Construct the 'led-string' with the integration area definition per led and the color ordering of the RGB channels.

Parameters
ledsConfigThe configuration of the led areas
deviceOrderThe default RGB channel ordering
Returns
The constructed ledstring