mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
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:
@@ -21,6 +21,8 @@ class Hyperion : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static LedString createLedString(const Json::Value& ledsConfig);
|
||||
|
||||
Hyperion(const Json::Value& jsonConfig);
|
||||
|
||||
~Hyperion();
|
||||
|
@@ -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;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user