Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Protected Attributes | List of all members
INDI::EncoderInterface Class Referenceabstract

The EncoderInterface class is the base class for video streaming encoders. More...

#include <encoderinterface.h>

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

Public Member Functions

 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)
 
virtual bool upload (INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false)=0
 
const char * getName ()
 

Protected Attributes

INDI::DefaultDevicecurrentDevice
 
const char * name
 
INDI_PIXEL_FORMAT pixelFormat
 
uint8_t pixelDepth = 8
 
uint16_t rawWidth
 
uint16_t rawHeight
 

Detailed Description

The EncoderInterface class is the base class for video streaming encoders.

Definition at line 44 of file encoderinterface.h.

Constructor & Destructor Documentation

◆ EncoderInterface()

INDI::EncoderInterface::EncoderInterface ( )
default

◆ ~EncoderInterface()

virtual INDI::EncoderInterface::~EncoderInterface ( )
virtualdefault

Member Function Documentation

◆ getName()

const char * INDI::EncoderInterface::getName ( )

Definition at line 36 of file encoderinterface.cpp.

◆ init()

void INDI::EncoderInterface::init ( INDI::DefaultDevice mainDevice)
virtual

Definition at line 41 of file encoderinterface.cpp.

◆ setPixelFormat()

bool INDI::EncoderInterface::setPixelFormat ( INDI_PIXEL_FORMAT  pixelFormat,
uint8_t  pixelDepth 
)
virtual

Definition at line 53 of file encoderinterface.cpp.

◆ setSize()

bool INDI::EncoderInterface::setSize ( uint16_t  width,
uint16_t  height 
)
virtual

Definition at line 46 of file encoderinterface.cpp.

◆ upload()

virtual bool INDI::EncoderInterface::upload ( INDI::WidgetViewBlob bp,
const uint8_t *  buffer,
uint32_t  nbytes,
bool  isCompressed = false 
)
pure virtual

Implemented in INDI::RawEncoder, and INDI::MJPEGEncoder.

Member Data Documentation

◆ currentDevice

INDI::DefaultDevice* INDI::EncoderInterface::currentDevice
protected

Definition at line 61 of file encoderinterface.h.

◆ name

const char* INDI::EncoderInterface::name
protected

Definition at line 62 of file encoderinterface.h.

◆ pixelDepth

uint8_t INDI::EncoderInterface::pixelDepth = 8
protected

Definition at line 64 of file encoderinterface.h.

◆ pixelFormat

INDI_PIXEL_FORMAT INDI::EncoderInterface::pixelFormat
protected

Definition at line 63 of file encoderinterface.h.

◆ rawHeight

uint16_t INDI::EncoderInterface::rawHeight
protected

Definition at line 65 of file encoderinterface.h.

◆ rawWidth

uint16_t INDI::EncoderInterface::rawWidth
protected

Definition at line 65 of file encoderinterface.h.


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