Encoder Library - Class List

Following is the description of classes presented in the Stream Library.

Encoder:

This derived class overrides EncoderService base class member functions.
The AnyConnect Smarter Camera Platform libraries calls these APIs
to request/push data from/to a camera encoder/decoder.

Private Attributes

Public Methods

Private Member Data Documentation

Following is the detailed documentation of the private variables declared under the Encoder: class.

statusHandler

onReceiveInputSourceStatus statusHandler;

handler

onDataReceiveHandler handler;

Public Member Function Documentation

Following is the detailed documentation of the public methods declared under the Encoder: class.

Encoder

Encoder();

~Encoder

virtual ~Encoder();

getMediaSources

void getMediaSources(const MediaType mediaType, std::vector<MediaSource> &mediaSourceList);

initMediaSource

void initMediaSource(const MediaType mediaType, const MediaSource mediaSource);

setInputSourceStatusCallback

void setInputSourceStatusCallback(onReceiveInputSourceStatus handler);

changeMediaParameters

void changeMediaParameters(const std::string &inputSource, const MediaType mediaType, const MediaSource& mediaSource);

pushEncodedFrame

void pushEncodedFrame(const std::string &inputSource, const MediaType mediaType, void *framePtr, long size, time_t timestamp, void *outFramePtr, long &outSize);

getFrame

void getFrame(const std::string &inputSource, const bool encoded, const MediaType mediaType, void *framePtr, long &size, time_t& timestamp);

setDataReceiveCallback

void setDataReceiveCallback(onDataReceiveHandler handler);

requestIntraFrame

void requestIntraFrame(const std::string &inputSource, const bool encoded);

closeMedia

void closeMedia(const std::string &inputSource, const MediaType mediaType);