43 const char *getDeviceName();
44 int jpeg_compress_8u_gray (
const uint8_t * src, uint16_t width, uint16_t height,
int stride,
int scale, uint8_t * dest,
45 int * destsize,
int quality);
46 int jpeg_compress_8u_rgb (
const uint8_t * src, uint16_t width, uint16_t height,
int stride,
int scale, uint8_t * dest,
47 int * destsize,
int quality);
48 uint8_t *jpegBuffer =
nullptr;
49 uint16_t jpegBufferSize = 1;
51 static const int SCALE_WIDTH = 640;
The EncoderInterface class is the base class for video streaming encoders.
The MJPEGEncoder class encodes frames in JPEG format before transmitting them to the client.
virtual bool upload(INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false) override
std::vector< uint8_t > buffer
Namespace to encapsulate INDI client, drivers, and mediator classes.