Added simple test for image2led map.

Added test executable for creating png from frame grabber.
Added test-device for exporting color values of leds to text file.
Updated configuration to match new color transform.
Finished first version of the Hyperion structure (IT WORKS [1% CPU]!)
This commit is contained in:
T. van der Zwan
2013-08-15 19:11:02 +00:00
parent 2c6b48a54d
commit 4031a33f04
21 changed files with 504 additions and 5921 deletions

View File

@@ -21,6 +21,8 @@ class Hyperion : public QObject
{
Q_OBJECT
public:
static LedString createLedString(const Json::Value& ledsConfig);
Hyperion(const Json::Value& jsonConfig);
~Hyperion();

View File

@@ -1,49 +0,0 @@
#pragma once
// Utils includes
#include <utils/RgbImage.h>
// Forward class declaration
class pngwriter;
/**
* @brief The HyperionPng class implements the same interface
*/
class HyperionPng
{
public:
HyperionPng();
~HyperionPng();
void setInputSize(const unsigned width, const unsigned height);
RgbImage& image();
void commit();
void operator() (const RgbImage& inputImage);
private:
void writeImage(const RgbImage& inputImage);
private:
RgbImage* mBuffer;
unsigned mFrameCnt;
unsigned mWriteFrequency;
pngwriter *mWriter;
unsigned long mFileIndex;
HyperionPng(const HyperionPng&)
{
// empty
}
HyperionPng& operator=(const HyperionPng&)
{
return *this;
}
};