TwiceAsNice  2019-02-18
Public Member Functions | Private Member Functions | Private Attributes | List of all members
INDI::RawEncoder Class Reference

The RawEncoder class sends the image as-is (lossless) to the client. More...

#include <rawencoder.h>

Inheritance diagram for INDI::RawEncoder:
Inheritance graph
Collaboration diagram for INDI::RawEncoder:
Collaboration graph

Public Member Functions

 RawEncoder ()
 
 ~RawEncoder ()
 
virtual bool upload (IBLOB *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 (CCD *activeCCD)
 
virtual bool setPixelFormat (INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
 
virtual bool setSize (uint16_t width, uint16_t height)
 
const char * getName ()
 

Private Member Functions

const char * getDeviceName ()
 

Private Attributes

uint8_tcompressedFrame = nullptr
 

Additional Inherited Members

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

Detailed Description

The RawEncoder class sends the image as-is (lossless) to the client.

It supports compression via zlib (.stream.z)

Constructor & Destructor Documentation

◆ RawEncoder()

INDI::RawEncoder::RawEncoder ( )

◆ ~RawEncoder()

INDI::RawEncoder::~RawEncoder ( )

Member Function Documentation

◆ getDeviceName()

const char * INDI::RawEncoder::getDeviceName ( )
private

◆ upload()

bool INDI::RawEncoder::upload ( IBLOB bp,
const uint8_t buffer,
uint32_t  nbytes,
bool  isCompressed = false 
)
overridevirtual

Member Data Documentation

◆ compressedFrame

uint8_t* INDI::RawEncoder::compressedFrame = nullptr
private

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