26 #include <deflect/Stream.h>
28 #include <ospray/SDK/fb/PixelOp.h>
43 struct Instance :
public ::ospray::PixelOp::Instance
51 std::
string toString() const final {
return "DeflectPixelOp"; }
54 void operator()(
unsigned char* pixels) { _mm_free(pixels); }
56 using Pixels = std::unique_ptr<unsigned char, PixelsDeleter>;
60 std::vector<Pixels> _pixels;
62 unsigned char* _copyPixels(::ospray::Tile& tile, const ::ospray::vec2i& tileSize);
82 std::unique_ptr<deflect::Stream> _deflectStream;
83 std::map<pthread_t, std::shared_future<
bool>> _finishFutures;
::ospray::PixelOp::Instance * createInstance(::ospray::FrameBuffer *fb, PixelOp::Instance *prev) final
This class represents a frame buffer for an engine specific code. It provides an API for utilizing an...
void operator()(unsigned char *pixels)
Instance(::ospray::FrameBuffer *fb_, DeflectPixelOp &parent)
std::string toString() const final
void postAccum(::ospray::Tile &tile) final
std::unique_ptr< unsigned char, PixelsDeleter > Pixels