40const 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());
71 bp->
setBlob((
const_cast<uint8_t *
>(buffer)));
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,...)
Namespace to encapsulate INDI client, drivers, and mediator classes.
WidgetView< IBLOB > WidgetViewBlob