Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | List of all members
INDI::MJPEGEncoder Class Reference

The MJPEGEncoder class encodes frames in JPEG format before transmitting them to the client. More...

#include <mjpegencoder.h>

Inheritance diagram for INDI::MJPEGEncoder:
INDI::EncoderInterface

Public Member Functions

 MJPEGEncoder ()
 
 ~MJPEGEncoder ()
 
virtual bool upload (INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false) override
 
- Public Member Functions inherited from INDI::EncoderInterface
 EncoderInterface ()=default
 
virtual ~EncoderInterface ()=default
 
virtual void init (INDI::DefaultDevice *mainDevice)
 
virtual bool setPixelFormat (INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
 
virtual bool setSize (uint16_t width, uint16_t height)
 
const char * getName ()
 

Additional Inherited Members

- Protected Attributes inherited from INDI::EncoderInterface
INDI::DefaultDevicecurrentDevice
 
const char * name
 
INDI_PIXEL_FORMAT pixelFormat
 
uint8_t pixelDepth = 8
 
uint16_t rawWidth
 
uint16_t rawHeight
 

Detailed Description

The MJPEGEncoder class encodes frames in JPEG format before transmitting them to the client.

The quality is now hard-coded at 70 when encoding the JPEG image. Further compression is not supported.

Definition at line 34 of file mjpegencoder.h.

Constructor & Destructor Documentation

◆ MJPEGEncoder()

INDI::MJPEGEncoder::MJPEGEncoder ( )

Definition at line 52 of file mjpegencoder.cpp.

◆ ~MJPEGEncoder()

INDI::MJPEGEncoder::~MJPEGEncoder ( )

Definition at line 57 of file mjpegencoder.cpp.

Member Function Documentation

◆ upload()

bool INDI::MJPEGEncoder::upload ( INDI::WidgetViewBlob bp,
const uint8_t *  buffer,
uint32_t  nbytes,
bool  isCompressed = false 
)
overridevirtual

Implements INDI::EncoderInterface.

Definition at line 67 of file mjpegencoder.cpp.


The documentation for this class was generated from the following files: