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
- Encoder
- ~Encoder
- getMediaSources
- initMediaSource
- setInputSourceStatusCallback
- changeMediaParameters
- pushEncodedFrame
- getFrame
- setDataReceiveCallback
- requestIntraFrame
- closeMedia
Private Member Data Documentation
Following is the detailed documentation of the private variables declared under the Encoder: class.
onReceiveInputSourceStatus statusHandler;
onDataReceiveHandler handler;
Public Member Function Documentation
Following is the detailed documentation of the public methods declared under the Encoder: class.
Encoder();
virtual ~Encoder();
void getMediaSources(const MediaType mediaType, std::vector<MediaSource> &mediaSourceList);
void initMediaSource(const MediaType mediaType, const MediaSource mediaSource);
void setInputSourceStatusCallback(onReceiveInputSourceStatus handler);
void changeMediaParameters(const std::string &inputSource, const MediaType mediaType, const MediaSource& mediaSource);
void pushEncodedFrame(const std::string &inputSource, const MediaType mediaType, void *framePtr, long size, time_t timestamp, void *outFramePtr, long &outSize);
void getFrame(const std::string &inputSource, const bool encoded, const MediaType mediaType, void *framePtr, long &size, time_t& timestamp);
void setDataReceiveCallback(onDataReceiveHandler handler);
void requestIntraFrame(const std::string &inputSource, const bool encoded);
void closeMedia(const std::string &inputSource, const MediaType mediaType);
Updated over 2 years ago