40 const char *RawEncoder::getDeviceName()
51 compressedFrame.resize(nbytes + nbytes / 64 + 16 + 3);
52 uLongf compressedBytes = compressedFrame.size();
54 int ret = compress2(compressedFrame.data(), &compressedBytes,
buffer, nbytes, 4);
58 LOGF_ERROR(
"internal error - compression failed: %d", ret);
63 bp->
setBlob(compressedFrame.data());
const char * getDeviceName() const
INDI::DefaultDevice * currentDevice
virtual bool upload(INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false) override
#define LOGF_ERROR(fmt,...)
std::vector< uint8_t > buffer
Namespace to encapsulate INDI client, drivers, and mediator classes.