2023-04-08 00:56:20 +00:00
|
|
|
#pragma once
|
|
|
|
#include "ThreadPool.h"
|
|
|
|
#include <future>
|
|
|
|
#include "iimagehandler.h"
|
|
|
|
|
|
|
|
class ImageSaveHandler : public IImageHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ImageSaveHandler();
|
|
|
|
virtual ~ImageSaveHandler();
|
2023-05-02 01:50:55 +00:00
|
|
|
virtual void add_image(void* data, int width, int height, int type ,int scannnum,unsigned int fpgaversion);
|
2023-04-08 00:56:20 +00:00
|
|
|
virtual bool done();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ThreadPool pool;
|
|
|
|
std::vector< std::future<int> > results;
|
|
|
|
};
|