mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added HyperionPng with similar interface as Hyperion to test frame-capture and handling.
This commit is contained in:
47
include/hyperionpng/HyperionPng.h
Normal file
47
include/hyperionpng/HyperionPng.h
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
#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:
|
||||
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